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

# AI routines commands - Omni CLI

> Reference for the omni ai-routines command group: manage AI routines.

Create and manage [AI routines](/ai/routines) — scheduled prompts that run through the Omni Agent and deliver the result by email or Slack. See the [AI Routines API documentation](/api/ai-routines) for more information.

```bash theme={null}
omni ai-routines <command>
```

| Command           | Description       |
| ----------------- | ----------------- |
| `routines-list`   | List routines     |
| `routine-create`  | Create a routine  |
| `routine-get`     | Get a routine     |
| `routine-update`  | Update a routine  |
| `routine-delete`  | Delete a routine  |
| `routine-trigger` | Run a routine now |

```bash wrap theme={null}
# Run a routine now
omni ai-routines routine-trigger <routine-id>

# Print the create request body's shape and an example
omni ai-routines routine-create --schema

# View help for routine-create, including arguments and flag details
omni ai-routines routine-create --help
```

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