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
documentsAPI tag corresponds to theomni documentscommand group. -
Path parameters become positional arguments, such as
documentIdin the following example: -
Query parameters become flags, such as
userIdin the following example: -
Request bodies,
--schema, and the--queryescape hatch work the same way across every command. See JSON requests and responses for the full details and examples.
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.

