-o json or -o yaml with any command for machine-readable output. Run ona help or add --help to any command for details.
Environment commands
| Command | Description |
|---|---|
ona environment list | List your environments |
ona environment create <repo-url> | Create a new environment |
ona environment start <id> | Start an environment |
ona environment stop <id> | Stop an environment |
ona environment delete <id> | Delete an environment |
ona environment ssh <id> | SSH into an environment |
ona environment ssh-config | Configure SSH for direct access |
ona environment logs <id> | View environment logs |
ona environment exec <id> -- <cmd> | Run a command inside an environment |
ona environment keep-alive | Keep environment alive while a process runs |
Partial environment IDs
Instead of typing full UUIDs, use any substring of an environment ID:Port commands
| Command | Description |
|---|---|
ona environment port list | List open ports |
ona environment port open <port> | Open a port (supports --name) |
ona environment port close <port> | Close a port |
Automation commands
| Command | Description |
|---|---|
ona automations init | Initialize automations config |
ona automations update automations.yaml | Update automations from file |
ona automations task list | List tasks |
ona automations task start <ref> | Start a task |
ona automations task logs <ref> | View task logs |
ona automations service list | List services |
ona automations service start <ref> | Start a service |
Webhook commands
| Command | Description |
|---|---|
ona webhook create | Create a webhook (--name, --type, --scope, --provider) |
ona webhook secret get <id> | Get the signing secret for a webhook |
Dotfiles commands
| Command | Description |
|---|---|
ona user dotfiles get | View current dotfiles config |
ona user dotfiles set --repository <url> | Set dotfiles repository |
ona user dotfiles set | Clear dotfiles config |
-o json and -o yaml output. See dotfiles documentation.
Project and group commands
| Command | Description |
|---|---|
ona project list | List projects |
ona project create <repo-url> | Create a project |
ona group list | List groups |
ona group create --name "<name>" | Create a group |
Identity commands
| Command | Description |
|---|---|
ona whoami | Show current user and access level |
ona login | Authenticate via browser |
ona login --token "<token>" | Authenticate with PAT |
Configuration commands
| Command | Description |
|---|---|
ona config context list | List CLI contexts |
ona config context use <name> | Switch context |
Network troubleshooting
Run connectivity checks from your machine against Ona services. Useful for diagnosing DNS, TLS, proxy, or intermittent connection issues.| Flag | Default | Description |
|---|---|---|
--iterations | 10 | Number of repeated requests |
--timeout | 30s | Timeout per request |
--interval | 1s | Interval between requests |
--show-headers | false | Show request/response headers and body |
--runner-host | - | Runner hostname(s) to check (bypasses API discovery) |
--runner-host when the API is unreachable and you need to test runner connectivity directly.
Shell completion
Version and updates
| Command | Description |
|---|---|
ona version | Show CLI version |
ona version update | Update to latest version |
ona version update --verify-slsa | Update with SLSA verification |
ona config set --verify-slsa=true | Enable SLSA verification for all future updates |
ona config set --autoupdate=true | Enable automatic updates |
~/.ona/configuration.yaml.
Related
- CLI installation and setup - install, authenticate, and connect
- automations.yaml schema - task and service configuration
- Environment variables - variable behavior and availability