CLI¶
The Orion CLI is a Python command-line tool built with Typer that provides full control over the Orion platform through the gateway API. It handles authentication, trend management, content workflows, provider switching, and system administration — all from your terminal.
| Property | Value |
|---|---|
| Language | Python 3.13 |
| Framework | Typer 0.15.x |
| Source | cli/src/orion_cli/ |
| Config | ~/.orion/config.toml |
| Install | uv workspace member |
Installation¶
The CLI is a uv workspace member. Install and run from the cli/ directory:
Or use the Makefile:
Global Options¶
These options are available on every command:
| Option | Default | Description |
|---|---|---|
--format |
table |
Output format: table, json, plain |
--help |
Show help for any command |
Configuration is stored in ~/.orion/config.toml:
Output formats¶
# Default table output (human readable, uses Rich)
orion scout list-trends
# JSON output (for scripting and piping to jq)
orion scout list-trends --format json
# Plain output (tab-separated values)
orion scout list-trends --format plain
Table output example:
auth — Authentication¶
Manage your session with the Orion gateway. The CLI stores JWT tokens in ~/.orion/token.
orion auth login¶
Interactive login. Prompts for email and password, obtains a JWT token from the gateway, and stores it locally.
orion auth logout¶
Clear stored credentials.
orion auth whoami¶
Display current authentication state.
system — System Health & Status¶
Monitor the Orion platform.
orion system health¶
Check health of all services.
orion system status¶
Show system overview — mode, GPU availability, queue depth.
scout — Trend Detection¶
Trigger scans, query detected trends, and manage Scout service configuration.
orion scout list-trends¶
List trends detected by previous scans.
JSON output:
orion scout trigger¶
Trigger an immediate trend scan.
orion scout configure¶
Configure the active niche for trend scanning.
content — Content Management¶
Manage the full content lifecycle — list, inspect, approve, reject, regenerate.
orion content list¶
orion content view <id>¶
orion content approve <id>¶
orion content reject <id>¶
pipeline — Pipeline Runs¶
View and manage content pipeline executions.
publish — Publishing & Social Accounts¶
Manage social media accounts and publishing.
admin — Admin Operations¶
Administrative operations like seeding and cleanup.