-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
Partial environment IDs
Instead of typing full UUIDs, use any substring of an environment ID:Environment names
Useona environment update to set or clear a custom name:
--inactivity-timeout on create or update to set a custom auto-stop timeout. See auto-stop timeout for details.
Most user-facing environment commands accept a full environment ID, unique partial ID, or exact environment name:
ssh <environment-id>.ona.environment for direct SSH, or ona environment ssh <name> when you want the CLI to resolve a name.
Port commands
Dev container commands
The environment must be running to rebuild.
Automation commands
Use
--environment-id <id-or-name> to target a specific environment for automation commands.
Webhook commands
See Webhooks for setup and SCM registration.
Dotfiles commands
Supports
-o json and -o yaml output. See dotfiles documentation.
Project and group commands
Organization security policy commands
The public Veto Exec policy
uses only
spec.executables:
- Omit
defaultEffector set it toEFFECT_ALLOW. - Set each rule effect to
EFFECT_AUDITorEFFECT_BLOCK. - Use an absolute path or a bare executable name for each rule path.
- Surrounding whitespace is ignored. Do not use a whitespace-only selector,
.,.., or a relative path with a directory separator.
create and update accept the YAML emitted by get -o yaml, so exported policies can be edited and applied again:
--organization-id <id> to list, create, or set-default to target an organization other than the active CLI context.
Identity commands
Configuration commands
Network troubleshooting
Run connectivity checks from your machine against Ona services. Useful for diagnosing DNS, TLS, proxy, or intermittent connection issues.
Use
--runner-host when the API is unreachable and you need to test runner connectivity directly.
Shell completion
Version and updates
SLSA verification cryptographically proves the CLI binary was built by the official build system. When enabled, every update checks the Sigstore certificate, Rekor transparency log, and provenance metadata. If verification fails, the update aborts.
Configuration is stored at
~/.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