CLI Reference
The orbital CLI is the main tool for local development, bootstrap, and admin workflows.
Quick start
Section titled “Quick start”# 1. Create and switch contextsorbital context create local http://localhost:52000orbital context listorbital context use local # or staging/production
# 2. Bootstrap first platform admin (no admins exist)orbital invite ls # Get bootstrap invitation codeorbital admin register <token> # Register with passkey in browserorbital admin login # Login as platform admin
# 3. Check statusorbital admin statusContexts are stored in ~/.orbital/config.yaml and hold API URLs and auth tokens per environment.
Platform Admin Invitations
Section titled “Platform Admin Invitations”Create Invitation Tokens
Section titled “Create Invitation Tokens”Generate invitation codes for new platform administrators (infrastructure-level):
# Create a new invitationorbital invite createExample output:
✅ Invitation created successfully!
Token: cm4fj2k8r0001Expires At: 2025-12-19T12:00:00Z
Signup URL: http://localhost:52000/api/_auth/signin?invite=cm4fj2k8r0001Or use: orbital admin register cm4fj2k8r0001Validate Invitations
Section titled “Validate Invitations”Check if an invitation token is valid:
# Check if invitation is validorbital invite get cm4fj2k8r0001List invitations
Section titled “List invitations”orbital invite list
# Works without auth in bootstrap mode (no admins yet)Contexts
Section titled “Contexts”Switch contexts
Section titled “Switch contexts”# Switch active contextorbital context use production
# Short aliasorbital ctx use staging
# Show current contextorbital context showContext-Specific Operations
Section titled “Context-Specific Operations”orbital ctx use localorbital admin statusorbital ctx use stagingorbital admin statusorbital invite createorbital ctx use productionorbital admin statusCommon checks
Section titled “Common checks”Switch between contexts to test different environments:
# Test localorbital ctx use localorbital admin status
# Test stagingorbital ctx use stagingorbital admin statusConfiguration File
Section titled “Configuration File”Location: ~/.orbital/config.yaml
current: localcontexts: local: api_url: http://localhost:52000 auth_token: eyJhbGc... # Platform admin JWT (stored after login) staging: api_url: https://staging-api.orbital.io auth_token: "" production: api_url: https://api.orbital.io auth_token: ""Command reference
Section titled “Command reference”Context
Section titled “Context”Manage API contexts for different environments.
| Command | Description |
|---|---|
orbital context list | List all contexts |
orbital context create <name> <url> | Create a new context |
orbital context use <name> | Switch active context |
orbital context show | Show current context details |
orbital context delete <name> | Delete a context |
Aliases: ctx
Platform Admin Authentication
Section titled “Platform Admin Authentication”Manage platform administrator authentication (infrastructure-level).
| Command | Description |
|---|---|
orbital admin register <token> | Register as platform admin using invitation token (opens browser) |
orbital admin login | Login as platform admin with passkey (opens browser) |
orbital admin logout | Clear platform admin authentication token |
orbital admin status | Show current platform admin authentication status |
orbital admin token | Print raw JWT token (for scripting) |
Platform Admin Invitations
Section titled “Platform Admin Invitations”Manage platform administrator invitations. Works without authentication in bootstrap mode.
| Command | Description |
|---|---|
orbital invite create | Create a new platform admin invitation token (requires auth) |
orbital invite ls | List all platform admin invitations (works in bootstrap mode) |
orbital invite get <token> | Validate and view invitation details |
orbital invite delete <token> | Delete an invitation (requires auth) |
Aliases: invitations, inv
Streams
Section titled “Streams”Subscribe to real-time event streams.
| Command | Description |
|---|---|
orbital stream list | List available streams |
orbital stream subscribe <name> | Subscribe to a stream (e.g., wallet, heartbeat) |
Aliases: str
Example:
orbital stream listorbital str subscribe walletOrb Management
Section titled “Orb Management”Manage orbs, modules, schemas, and entries using path-based addressing.
Paths follow the structure: orbId[/moduleId[/entryId]]
Smart routing: Single-schema modules omit schemaId in paths.
| Command | Description |
|---|---|
orbital apply -f <file> | Create or update orb from YAML/JSON |
orbital get <path> | Get resource details by path |
orbital ls [path] | List resources (depth based on path) |
orbital delete <path> | Delete a resource |
orbital create <path> --data '{...}' | Create an entry |
orbital call <orbId>/<primitive> | Call a primitive function |
Path Examples:
# List resources at different levelsorbital ls # List all orbsorbital ls accounts # List modules in orborbital ls accounts/operators # List entries (single-schema module)
# Get specific resourcesorbital get accounts # Get orb definitionorbital get accounts/operators/abc123 # Get specific entry
# Create/update from fileorbital apply -f accounts.yaml # Create orb with modules/schemasorbital apply -f operator.yaml # Create entry
# Create entry with inline data
# Call primitivesorbital call accounts/bootstrap # Bootstrap accounts orb
# Delete resourcesorbital delete accounts/operators/abc123For detailed platform documentation, see Platform Architecture.
Global Flags
Section titled “Global Flags”| Flag | Description |
|---|---|
-v, --version | Show CLI version |
-h, --help | Show help information |
Troubleshooting
Section titled “Troubleshooting”Authentication Issues
Section titled “Authentication Issues”If you’re having trouble authenticating as platform admin:
# Check if you're authenticatedorbital admin status
# Clear and re-authenticateorbital admin logoutorbital admin loginAPI Connection Issues
Section titled “API Connection Issues”Verify your API connection:
# Check current contextorbital context show
# List all contextsorbital context list
# Verify server is runningcurl http://localhost:52000/api/_orbsContext Issues
Section titled “Context Issues”Reset to default configuration:
# Remove existing configrm ~/.orbital/config.yaml
# Create new contextorbital context create local http://localhost:52000orbital context use local