Skip to main content

CLI Overview

Open source at https://github.com/CloudCruise/cloudcruise-cli. Report bugs via GitHub issues or Discord. The CloudCruise CLI provides a command-line interface for managing workflows, workflow components, runs, vault credentials, and builder agent sessions. It’s designed for coding agents to build, diagnose, fix, and verify workflows, but works just as well for manual use. All output is JSON on stdout; errors go to stderr.

Installation

Or run without installing:

Setup

Log in with your browser. The CLI opens a browser window for OAuth + PKCE:
After you sign in, tokens are saved to your OS keychain. If your account requires MFA, the CLI prompts for a TOTP code (or pass --mfa-code for non-interactive login). Use --no-open to print the login URL instead of opening a browser. Then select the workspace you want to use:

Profiles

Each login is saved to a named profile, so you can keep separate credentials for different environments or accounts:
Every command accepts --profile <name> and --workspace-id <id> to override the active profile and workspace for a single call.

CI and Non-Interactive Use

For CI or other environments without a browser, set CLOUDCRUISE_TOKEN. It takes precedence over any saved profile. Legacy API keys are still supported. Pass one via stdin, or set the CLOUDCRUISE_API_KEY environment variable:

Environment Variables

Secrets passed as command-line flags (--api-key, --encryption-key, --value) are rejected by default because they leak into shell history and ps output. Use the matching --*-stdin flag or an environment variable instead.

Coding Agent Integration

For AI clients that can’t run a CLI, such as Claude.ai or ChatGPT, connect the MCP server instead. Claude Code: install the plugin from the CLI repo’s marketplace. This registers the CloudCruise skills (workflow build, test, debug, CLI and DSL reference) and keeps them updated with /plugin update cloudcruise:
Other agents (Cursor, Codex, Devin, or Claude Code without plugins): install the skill files into your project:
This copies a CLI usage reference and a complete workflow DSL reference (all node types, XPath best practices, variables, JSONata, error classification) into your project where the agent can discover them. Agents without the CLI: install the workflow DSL reference from this site:
It covers the workflow JSON only. The CLI skills ship with the CLI.

Staying Up to Date

  • CLI: the CLI tells you, and your coding agent, when a newer version exists. Update with npm i -g @cloudcruise/cli@latest. CI and NO_UPDATE_NOTIFIER turn the check off.
  • Skills: after a CLI upgrade, the next command refreshes the skills that cloudcruise install --skills wrote into the current project. Skills you edited are left alone; cloudcruise install --skills overwrites them. Plugin-installed skills update with the plugin.
To turn off the skills refresh, set this in ~/.cloudcruise/config.json:
CLOUDCRUISE_SKILLS_AUTO_UPDATE=0 or =1 overrides the setting. With the refresh off, the CLI warns about outdated skills instead.

Quick Start

Run Options

--dry-run ends the run at the node marked end_here_on_dry_run. Nodes before it still run, and a workflow without the marker runs in full. To check a payload before starting a run, validate it against the workflow’s saved input schema:
It exits 0 if the payload is valid, 1 if it’s invalid (per-field errors in errors), and 2 if the workflow’s input schema itself doesn’t compile. Validation runs against the saved schema, so push schema edits with workflows update first.

Error-Fix-Verify Loop

You can use the CLI to fix existing workflow errors. Here’s how a coding agent could sequence CLI commands:
The --debug flag forces every node to capture a page snapshot, which is essential for diagnosing selector issues. Without it, failed runs often lack snapshots. It also records the run’s network traffic.

Debugging with Snapshots

After a --debug run, the snapshot commands let you work with a node’s captured page:
run snapshots <session_id> <node_id> returns the raw snapshot metadata without downloading anything.

Debugging with Network Traffic

A --debug run also records the run’s network traffic, on workers with network capture. run network returns all of it as JSON, oldest first:
Each event carries its retry, headers and bodies. Credentials are redacted. complete is false until the run ends. One call returns at most 100 MB of bodies; omitted_bodies counts those returned as null.

Watching a Live Session

Returns a viewer URL and its auth token. The token is single-use: if the viewer link was already opened (reloaded, or reopened later), it fails to connect. Run the command again to mint a fresh token and link. Only works while the session is still active.

Responding to User Interaction

When a run is waiting on a User Interaction node, submit the data it expects with run respond. The body is a JSON object matching the node’s expected_datamodel, passed via exactly one of --data, --file, or --stdin:

Paused Runs

A run stays execution.paused while its workflow or vault credential is paused, or while the workflow’s run window is closed. Pauses come from you, from an error code with the pause_workflow or pause_credential action, or from a pause setting such as pausing the workflow when the target service is retired or the credential when the account is locked.
run paused prints { held_runs, workflows, credentials }. Each workflow and credential has its reason (for example Paused because the target service is retired) and held_runs, the number of runs it holds in execution.paused; --runs adds their held_session_ids, most recently paused first, at most 50 each. The top-level held_runs.total counts each waiting run once, since a run can be held by both its workflow and a credential. A run is held by a credential only when every credential it could use for that site is paused. Pass a credential’s credential_id (<workspace_id>:<permissioned_user_id>:<domain>) to --credential; --workflow and --credential are repeatable. A workflow with source: run_window resumes on its own at resumes_at and unpausing does not lift it. When resumes_at is null the window has no future opening, so edit or remove the window, or use Run now in the dashboard (see Run Window).

Builder Agent

The builder commands drive the Builder Agent from the terminal, so a coding agent can build a new workflow or edit an existing one.
builder send returns as soon as the agent accepts the message. builder await-turn blocks until the turn settles, and builder status reports the current state. Both encode the result in the exit code so a script can branch without parsing stdout: Commands target the workspace’s current conversation by default. Pass --conversation <id> (or set CLOUDCRUISE_CONVERSATION) to target a specific one. builder conversations list shows live conversations, and builder conversations get <id> fetches an archived transcript.

Branches and Pull Requests

Workflow branches and pull requests work like git and gh pr. Branches are named by name or id, pull requests by number (12, #12) or id, and every command takes --workflow <workflow_id>.
branches list|create|delete|set-default manage branches, and prs list|view|create|diff|approve|close|merge manage pull requests. A branch’s ruleset can block direct saves and require approvals before a merge. You can’t approve your own pull request, and an API key approves as the user who created it.

Merging with Conflicts

When both branches changed the same item differently, prs merge exits 14 (MERGE_CONFLICTS) and names each conflict. prs diff shows each one with a key, a one-line summary and the base, source and target values, plus the match_heads to merge against:
--resolve <key>=source|target|delete answers one conflict, --take source|target answers the rest, and --resolutions-file sets custom values (prs diff --resolutions-template writes a file to start from). If either branch changed since the diff, nothing is merged and the command exits 13; run prs diff again. To resolve conflicts and test the result before merging, merge the base into your branch first, as in git: open a pull request from the base into your branch (--head main --base fix-login), merge it with resolutions, test your branch with run start --branch, then merge your branch. It no longer conflicts.

Workflow Folders

Moving Workflows Between Environments

Export a workflow as a portable bundle and import it into another environment or workspace. Import always creates a new workflow:
The workspace is resolved from --workspace-id, then CLOUDCRUISE_WORKSPACE_ID, then the profile’s active workspace.

Deleting Workflows

Delete one or more workflows by id. The delete is permanent and asks no confirmation. Runs and results of the workflow are kept:
stdout is one array with an entry per id: { id, status: "deleted" | "not_found" | "error", message? }. The command continues past failures and exits non-zero if any id failed. A workflow’s webhooks are deleted with it. With OAuth, deleting requires the workspace Owner role.

Workflow Components

Components are reusable groups of nodes. Workflows invoke them by reference: a COMPONENT_CALL node resolves a component (workspace-library or workflow-local) at run time, and the workflow lists the components it uses in component_imports. Because callers hold a reference, not a copy, updating a component propagates in O(1) — a new version is created, and callers pinned to latest pick it up at their next run while callers pinned to a specific version do not. See the Workflow Components concept page for the full model.
Before updating, check which workflows reference the component:

Error Codes

Error codes are the workspace-level IDs that a node’s error_on_false_message (Bool Condition), error_message (User Interaction), and selector_error_message (selector nodes) point to.
error-codes create is find-or-create: if a code with the same name already exists (ignoring case and surrounding whitespace), it’s returned with "created": false and nothing changes, so it’s safe to run again. Use error-codes update to change an existing code. To use a code, put its returned id into the node field and save with workflows update. Saving links the code to the workflow. --action accepts alert (default), pause_workflow, pause_credential, or retry; see Error code actions. Fields can also be passed as one JSON object via --file or --stdin, using the API field names (error_code, description, enriched_description, error_action, retries, retry_after). With retry, the run is requeued up to retries times (once if unset), waiting retry_after seconds.

Vault Credentials

vault create and vault update encrypt --user-name, --password, --tfa-secret, additional field values, and security questions and answers client-side, so they need an encryption key (CLOUDCRUISE_ENCRYPTION_KEY or one saved on the profile). Prefer --password-stdin and --tfa-secret-stdin over the plain flags, which are visible in ps output. Only one flag per command can read stdin. Entries also support per-entry proxies (--proxy random|static|country|custom). You can also pass a pre-encrypted JSON payload via --file or --stdin.
  • TFA methods: repeat --tfa-method for several methods (AUTHENTICATOR, EMAIL, MAGIC_LINK, SMS). On vault update, the given methods replace the stored set, and --no-tfa-method removes them all. AUTHENTICATOR needs a TOTP secret (--tfa-secret-stdin).
  • Additional fields: --additional-fields-file or --additional-fields-stdin takes a plaintext JSON array, e.g. [{"name": "Subdomain", "type": "Text", "value": "acme"}]. An Address value is an object {street, city, state, zip, country}.
  • Security questions: --security-questions-file or --security-questions-stdin takes a plaintext JSON array, e.g. [{"question": "What is your mother's maiden name?", "answer": "Smith"}].
  • Pinned settings: repeat --pin <setting> on vault create or vault update to store a setting on the entry as its own value even when it equals the domain’s, so a later change to the domain’s setting does not reach it. The settings are the keys of vault site-settings. A pinned setting without a value is ignored.
  • On vault update, a list replaces the stored list, [] clears it, and omitting the flag keeps it.
  • Entries bound to a secret provider take fields and questions from the provider item; the API rejects a non-empty list for them.
  • vault get shows additional fields as name and type, and security questions encrypted, without answers. --decrypt shows values, questions and answers in plaintext.
vault tfa-code prints the entry’s current 2FA code as JSON. Pass --method when the entry has several TFA methods, or --field to get the code of a Totp additional field.
  • AUTHENTICATOR: a fresh code, {type, code, expires_in_seconds}.
  • EMAIL: the latest received code, {type, code, received_at}; 404 when none arrived recently.
  • SMS and MAGIC_LINK codes cannot be read (409). --field works only with AUTHENTICATOR.
vault clear-state clears the stored browser state (cookies, localStorage, sessionStorage) for an entry. vault encrypt and vault decrypt work locally with the workspace encryption key and make no API call.

Domain Settings

Settings such as cookie persistence and concurrency limits can be set once per domain. Entries of that domain inherit them unless the entry sets its own value. See Domain Settings.
  • update sends only the flags you pass. --clear <setting> (repeatable) removes the domain’s default. Passing a setting and clearing it in the same command is a usage error.
  • apply-defaults makes entries inherit the domain’s values again. Without --entry-id, it applies to every entry of the domain.
  • reset-overrides needs at least one --key. --domain is only needed when the user ID has several entries.
  • On an entry, a missing value inherits. max_concurrency: -1, or "0 seconds" for the two expiry settings, turns the limit off although the domain sets one.

Secret Providers (1Password)

If your workspace has a 1Password connection, you can bind a vault entry to a 1Password item instead of storing a username and password. CloudCruise resolves the credentials from 1Password at run time, and the secret values are never stored in CloudCruise.
--secret-provider-id and --secret-ref must be passed together. --secret-cache-ttl-seconds is optional; omit it to use the connection’s default. Because provider-backed entries carry no --user-name/--password, no encryption key is required to create or update them.

Commands

Next Steps

  • Explore the Run API for detailed execution options
  • Learn about Vault API for secure credential management
  • Check out Workflow API to manage your workflows
  • Set up Webhooks for event notifications