> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nohead.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Search

> nohead search.

Every command also takes the [global options](https://docs.nohead.io/cli/commands/global-options.md), such as `--json`.

## `nohead search`

Search records: in one collection with --collection, else across the project.

```bash theme={null}
nohead search [options] [query]
```

| Argument | |
| - | - |
| `[query]` | Words to search for. |

| Option | |
| - | - |
| `--collection <c>` | Search one collection (slug or ID) |
| `--filter <expression>` | Filter on a filterable field or "published\_at exists", as in records list; repeatable. |
| `--sort <sort>` | created\_at, updated\_at, published\_at or a sortable field; - for descending. |
| `--limit <n>` | Results (1-100) Default: `20`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.