# Universe Search

You can search for public datasets and models on [Roboflow Universe](https://universe.roboflow.com) from the command line.

## Search Universe

```bash
roboflow universe search "hard hats"
```

```bash
roboflow universe search "hard hats" --json
```

### Options

| Flag      | Description                             |
| --------- | --------------------------------------- |
| `--type`  | Filter by `dataset` or `model`          |
| `--limit` | Maximum number of results (default: 12) |

### Examples

Search for datasets only:

```bash
roboflow universe search "safety vest" --type dataset
```

Limit results:

```bash
roboflow universe search "license plates" --type model --limit 5
```

## JSON Output

Use `--json` for structured output that's safe to pipe:

```bash
roboflow universe search "hard hats" --json | jq '.[].name'
roboflow universe search "cars" --type dataset --limit 3 --json
```

Exit codes: 0 = success, 1 = error, 2 = auth error.
