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

# Query commands - Omni CLI

> Reference for the omni query command group: run and monitor queries.

Run and monitor query execution. See the [Query API documentation](/api/queries) for more information.

```bash theme={null}
omni query <command>
```

| Command | Description                     |
| ------- | ------------------------------- |
| `run`   | Execute a semantic query        |
| `wait`  | Wait for query jobs to complete |

```bash wrap theme={null}
# Run a semantic query
omni query run --body '{"modelId":"MODEL_ID","query":{"fields":["view_name/field_name"],"limit":100}}'

# View help for wait command, including arguments and flag details
omni query wait --help
```

<Note>
  Every command in this group also accepts the [global flags](/developers/cli/reference/global-flags), including `--token`, `--profile`, `--format`, and `--compact`.
</Note>
