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

# Search in the CLI

> Use `entire search` to find checkpoints, sessions, and commits from your terminal.

Use the CLI when you are already in a repository and want fast search results from the terminal.

## Run a Search

Run `entire search` from an Entire-enabled Git repository:

```shell theme={null}
entire search "auth token refresh"
```

Run without arguments to open interactive search:

```shell theme={null}
entire search
```

## Search Scope

By default, CLI search is scoped to the current repository.

Search another repository:

```shell theme={null}
entire search "auth token refresh" --repo entirehq/entiredb
```

Search all repositories you can access:

```shell theme={null}
entire search "auth token refresh" --all-repos
```

You can also use an inline repo filter:

```shell theme={null}
entire search "repo:* auth token refresh"
```

## Filter Results

Filter by author, branch, or date:

```shell theme={null}
entire search "retry logic" author:alex branch:main date:month
```

Use JSON output for scripts, automation, or agent instructions:

```shell theme={null}
entire search "auth token refresh" --json
```

For exact syntax and flags, see the [`search` command reference](/cli-reference/search).

## Continue with

<CardGroup cols={2}>
  <Card title="Search from Your Agent" icon="bot" href="/guides/search/semantic-search/search-from-your-agent">
    Let an agent search history with the `search` Skill.
  </Card>

  <Card title="Search Command Reference" icon="terminal" href="/cli-reference/search">
    See every `entire search` flag.
  </Card>
</CardGroup>
