CLI Overview
The Orvanta CLI (orvanta) is the primary command-line interface for managing scripts, flows, apps, and other resources in a workspace. It works on a local-files-synced-to-workspace model: you keep scripts and flows as files in a git repository, then push and pull changes to a workspace.
Installation
Section titled “Installation”See Installation for full setup instructions.
npm install -g @orvanta/cliorvanta --versionUpgrade later with orvanta upgrade.
orvanta <command> [subcommand] [options]The core loop
Section titled “The core loop”orvanta workspace add # connect to a workspace (creates a profile)orvanta init # initialise a project directory + sync configorvanta sync pull # bring remote scripts/flows/apps into local files# ... edit files ...orvanta sync push # deploy local changes back to the workspaceCommand groups
Section titled “Command groups”| Group | Description |
|---|---|
workspace | Add, switch, and manage workspace profiles. |
sync | Push and pull changes between local files and a workspace. |
script | Create, run, and manage scripts. |
flow | Create, run, and manage flows. |
job | List, inspect, and cancel jobs. |
app | Create and develop apps (app new, app dev). |
resource / variable / schedule / trigger | Manage workspace resources. |
Global options
Section titled “Global options”| Flag | Description |
|---|---|
--workspace <name> | Target a specific workspace, overriding the default. |
--token <token> | Provide an API token directly (overrides any stored token). |
--base-url <url> | Target a specific instance URL (requires --token and --workspace). |
--config-dir <dir> | Use a custom config directory (overrides OV_CONFIG_DIR and the default ~/.config). |
--debug --verbose | Show debug/verbose logs. |
--json | Output as JSON (useful for piping to jq). |
Configuration
Section titled “Configuration”Workspace profiles, each a (name, remote URL, workspace id, token) tuple, are stored under your Orvanta config directory (default ~/.config, override with OV_CONFIG_DIR). Switch between profiles with orvanta workspace switch <name>.