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:80orbital context listorbital context use local # or staging/production
# 2. Bootstrap first admin (no admins exist)orbital invite listorbital auth register <token>orbital auth login
# 3. Check statusorbital auth statusContexts are stored in ~/.orbital/config.yaml and hold API URLs and auth tokens per environment.
Invitations
Section titled “Invitations”Create Invitation Tokens
Section titled “Create Invitation Tokens”Generate invitation codes for new users to sign up:
# Create a new invitationorbital invite createExample output:
✅ Invitation created successfully!
Token: cm4fj2k8r0001Expires At: 2025-12-19T12:00:00Z
Signup URL: http://localhost/auth/signin?invite=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 auth statusorbital ctx use stagingorbital auth statusorbital invite createorbital ctx use productionorbital auth statusCommon checks
Section titled “Common checks”Switch between contexts to test different environments:
# Test localorbital ctx use localorbital auth status
# Test stagingorbital ctx use stagingorbital auth statusConfiguration File
Section titled “Configuration File”Location: ~/.orbital/config.yaml
current: localenvironments: local: api_url: http://localhost:80 auth_token: eyJhbGc... # 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
Authentication
Section titled “Authentication”| Command | Description |
|---|---|
orbital auth register <token> | Open browser to register with an invitation token |
orbital auth login | Browser-based login, stores CLI token in config |
orbital auth logout | Clear authentication token |
orbital auth status | Show current authentication status |
Invitations
Section titled “Invitations”| Command | Description |
|---|---|
orbital invite create | Create a new invitation token |
orbital invite list | List invitations in current environment |
orbital invite get <token> | Validate an invitation token |
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 walletGlobal 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:
# Check if you're authenticatedorbital auth status
# Clear and re-authenticateorbital auth logoutorbital auth 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:80/healthContext Issues
Section titled “Context Issues”Reset to default configuration:
# Remove existing configrm ~/.orbital/config.yaml
# Create new contextorbital context create local http://localhost:80orbital context use local