Skip to main content
View the current OpenAPI spec using the API Explorer in your instance.

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:
  • Query parameters become flags, such as userId in the following example:
  • Request bodies, --schema, and the --query escape hatch work the same way across every command. See JSON requests and responses for the full details and examples.
The CLI sends a User-Agent header of the form omni-cli/1.3.0 on every request, so you can tell its traffic apart from other API clients in your logs. 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