> ## 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.

# Command groups - Omni CLI

> How Omni CLI commands map to the API, and where to find each command group.

<Tip>
  View the current OpenAPI spec using the [API Explorer](/api/api-explorer#openapi-specification) in your instance.
</Tip>

## How CLI commands map to the API

Most CLI commands are auto-generated from the Omni OpenAPI spec. For the Omni CLI, this means:

* **API tags become command groups**. For example, the `documents` API tag corresponds to the `omni documents` command group.

* **Path parameters become positional arguments**, such as `documentId` in the following example:

  ```bash wrap theme={null}
  # API endpoint
  POST /api/documents/<documentId>/duplicate

  # CLI
  omni documents duplicate <documentid>
  ```

* **Query parameters become flags**, such as `userId` in the following example:

  ```bash wrap theme={null}
  # API endpoint
  POST /api/documents/<documentId>/duplicate?userId=<userId>

  # CLI
  omni documents duplicate <documentid> --userid <userid>
  ```

* **Request bodies, `--schema`, and the `--query` escape hatch** work the same way across every command. See [JSON requests and responses](/developers/cli/reference/json-requests-and-responses) for the full details and examples.

Run `omni <group> --help` to see all commands in a group or `omni <group> <command> --help` for command-specific argument and flag details.

## Command groups

| Group                                                                 | Description                                                                                |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [AI](/developers/cli/commands/ai)                                     | Query generation, jobs, conversations, credit controls                                     |
| [AI Eval](/developers/cli/commands/ai-eval)                           | Eval prompt sets and runs                                                                  |
| [AI model suggestions](/developers/cli/commands/ai-model-suggestions) | Generate, schedule, and manage suggested model improvements                                |
| [AI routines](/developers/cli/commands/ai-routines)                   | Scheduled prompts that run through the Omni Agent                                          |
| [API tokens](/developers/cli/commands/api-tokens)                     | Organization API tokens                                                                    |
| [Connections](/developers/cli/commands/connections)                   | Database connections, connection environments, dbt configuration, schema refresh schedules |
| [Content](/developers/cli/commands/content)                           | List and search content                                                                    |
| [Dashboards](/developers/cli/commands/dashboards)                     | Dashboard downloads and filters                                                            |
| [Documents](/developers/cli/commands/documents)                       | Documents, drafts, permissions, labels, favorites, v2 content editing                      |
| [Embed](/developers/cli/commands/embed)                               | Embedded SSO sessions                                                                      |
| [Folders](/developers/cli/commands/folders)                           | Folders and folder permissions                                                             |
| [Labels](/developers/cli/commands/labels)                             | Content labels                                                                             |
| [Models](/developers/cli/commands/models)                             | Models, views, fields, topics, branches, Git, dbt                                          |
| [Query](/developers/cli/commands/query)                               | Run and monitor query execution                                                            |
| [Schedules](/developers/cli/commands/schedules)                       | Delivery schedules and recipients                                                          |
| [SCIM](/developers/cli/commands/scim)                                 | SCIM user and group provisioning                                                           |
| [Unstable](/developers/cli/commands/unstable)                         | Preview commands that may change without notice                                            |
| [Uploads](/developers/cli/commands/uploads)                           | CSV and Excel file uploads                                                                 |
| [User attributes](/developers/cli/commands/user-attributes)           | User attribute definitions                                                                 |
| [Users](/developers/cli/commands/users)                               | User and group model roles, email-only users, user attribute values                        |
| [Whoami](/developers/cli/commands/whoami)                             | The authenticated caller's identity and permissions                                        |
| [Config & utility](/developers/cli/commands/utility)                  | `omni config`, `omni agent-help`, `omni completion`                                        |
