-
Notifications
You must be signed in to change notification settings - Fork 0
CLI.md
Aldwin MOUTARLIER edited this page Oct 20, 2025
·
1 revision
The orion CLI is your primary interface for configuring and inspecting clusters. It wraps the control plane API with a user-friendly workflow.
During development, run the CLI in watch mode:
pnpm --filter @orion/cli run devIn production, install from the published package (roadmap).
| Command | Description |
|---|---|
orion init |
Scaffold a starter orion.yaml with sample services and comments. |
orion apply -f <file> |
Validate and submit configuration to the control plane. |
orion get services |
List declared services with desired/actual replica counts. |
orion get nodes |
Display connected agents, labels, and heartbeat status. |
orion logs <resource> |
Stream logs for a service or replica (streaming coming soon). |
orion exec <service> -- <cmd> |
Execute commands inside a running replica (roadmap). |
orion dashboard |
Launch the Next.js dashboard locally. |
All commands accept --api-url and --config overrides (see packages/cli/src for options).
- Edit
orion.yamlto describe services. - Run
orion apply -f orion.yaml. - Use
orion get servicesto confirm reconciliation. - Tail logs or open the dashboard for deeper observability.
- Validation errors include path information from the Zod schema.
- API connectivity issues show the target URL and HTTP status.
- Logs command prints friendly hints when streaming is not yet available.
- Each command lives under
packages/cli/src/commands. - Compose new commands by extending Commander.js definitions.
- Shared types and helpers come from
@orion/shared.