@revoengine/cli is the official command-line client for RevoEngine. It requires Node.js 24 or newer.
revo as the primary command. revoengine remains a compatible alias.
These guides cover CLI 2.3.2 and VS Code extension 2.1.0. On a managed Platform project, the current CLI discovers the terminal and browser connection from the active project. See Terminal command reference for reconnecting an approved terminal after upgrading, and Upgrade to 1.9 before updating existing Endpoint and Job manifests.
CLI 2.1.1 prepares native interactive terminal permissions automatically on macOS during installation. The runner also performs preparation before an interactive terminal starts when installation scripts were disabled. See terminal installation.
Choose a focused guide for command options, projects and synchronization, tests and debugging, Studio sessions, terminal commands or environment promotion. Installing the CLI does not enable missing server capabilities.
Sign in
/api/v1/me, and infers the instance bound to the key. Remove the stored default login with:
- macOS and Linux:
~/.config/revoengine - Windows:
%APPDATA%/revoengine
Essential commands
To connect a computer or virtual machine for an Assistant, follow Connect a terminal. After signing in with a personal API key,revo terminal connect --workspace "$HOME/projects/my-project" --name "Work VM" creates a pending request. Its owner must approve it in Settings → Vault → Terminals from a browser session before the Assistant can use it. Later connections with the same profile and terminal name preserve the device registration; an additional directory becomes a separately approved workspace. Approved online workspaces are available directly to the Assistant. See the terminal guide for connection recovery, background services, browser state and file transfers.
revo request is a low-level escape hatch for authenticated Platform API calls. Prefer dedicated commands when they provide planning, confirmation, local state, or verification.
Argument and workspace safeguards
CLI 1.0.34 introduces the safeguards below. Unknown options, missing values, invalid booleans and unsupported combinations stop before authentication or execution. Boolean options accept a bare flag,--flag=true, --flag=false, or --no-flag.
Explicit values use lowercase true or false; 0, 1, no, FALSE and empty
values are rejected. Conflicting repeated options are rejected too. For example,
use --no-force instead of --force=no.
Use revo plan for a repository deployment preview, or the corresponding family
plan before push. Named migration commands accept --dry-run to follow their
read-only plan flow, and env apply also supports it. Other command families
reject it rather than executing a write under a preview flag.
revo <command> --help shows help without connecting or executing. Conflicting
aliases are rejected too. Terminal connection commands do not accept a child
command or hidden options after --; raw request JSON and query values remain data.
Workspace-changing commands take an exclusive local project lock. A concurrent
writer fails before changes; finish the active command and retry. Read-only plan
and diff remain available. A lock is recovered only from a confirmed dead owner;
lock age does not evict a live or unverifiable process. Stale baseline snapshots
are rejected, and local JSON state uses atomic replacement so an interrupted
write before replacement retains the previous valid file. These safeguards
complement the target API’s version checks; a deployment still consists of
separately verified remote operations. Project init/update adds the transient
.revoengine/workspace-write.lock/ directory to Git ignores; the existing baseline
file keeps its normal repository policy.
Native tests
CLI 1.0.31 or newer providesrevo tests list, run, resume and cancel for captured fixture suites. Test local Component source without publishing it, or select stored suites with --remote. See Native tests for authoring, durable results, CI exit behavior and integration limits.
Configuration precedence
For the default client, configuration resolves in this order:- command flags such as
--urland--token; - environment variables;
- stored interactive configuration;
- the default API origin.
--from and --to environment profiles resolve independently and are not mixed with the default environment variables.
Supported environment aliases include:
REVO_BASE_URL, REVO_API_KEY, and their REVOENGINE_* equivalents are also supported.
Preserve destination configuration during synchronization
--omit lets operators preserve selected destination settings while synchronizing
other definition changes. Push and deploy preserve instance values; pull preserves
existing local values. It applies to Components, Database Tables and Views,
Service Accounts, Agents and Agent Plugins, Job Templates, Applications, Endpoints, Schedules,
Events, Groups and Role Groups. CLI 1.0.34 introduces this option.
For example, keep an Endpoint’s operator-configured inputs while synchronizing
its other settings:
--force still preserves them. New definitions use source values
for initial configuration because no destination value exists yet. Pull supports
both repository and dedicated family commands:
--force.
Other properties refresh from the instance. A first pull initializes the full source
because no local destination exists. Independent local source proofs let ignored
local edits coexist with managed remote updates; local managed edits retain the
usual conflict protection. No resource metadata setting is required.
A nested path such as options.input.region preserves only that key. JSON Pointer
paths, such as /options/input/customer.region, address literal dots in a key.
Arrays can be omitted as a whole; indexes and wildcards are rejected. Job Template
inputs is a legacy alias of options.input. Event input also covers its legacy
extensions.input representation, including nested input keys. Older snapshots may
contain inputMode; remove that retired field before pushing definitions to 1.9
as described in the upgrade guide.
Endpoint uses options.input and
options.noResult. Unknown paths, identity fields, versions, structural changes
and dependency references cannot be omitted. An unqualified path must be supported
by every selected family; qualify paths when the families have different fields.
Existing synchronization baselines are reused only when they can prove the
remaining managed state. Otherwise reconcile a fresh full snapshot or explicitly
review the ordinary overwrite workflow. Removing an omission returns those fields
to CLI management and requires renewed comparison; it never silently approves
instance changes. A saved plan also becomes stale when the instance changes after
review, including changes to omitted values. Complete managed source manifests
are reviewed too, including the initial values used to create new definitions. Regenerate and review the plan before
retrying. Before an omitted-mode mutation, the CLI requires a fresh Platform API /api/v1/me
response with capabilities.atomicResourceUpdates: true. An older API is rejected
before writing, even with cached authentication. Read-only pull does not require
this write capability. The CLI advertises its own
support through capabilities.syncOmit in revo --version --json.
If saving another runtime option would normalize an omitted missing or null
property, the CLI stops before writing. Reconcile the target defaults or preserve
the complete options object. A deployment remains a sequence of separately
guarded operations.
Automation output
Commands that support--json emit machine-readable output for CI and review tooling. Human-readable progress and streamed debug logs use stderr where appropriate, leaving the final result on stdout.
The interactive update notifier checks for a newer CLI release at most once every 24 hours. Disable it in CI with REVO_NO_UPDATE_NOTIFIER=1 or --no-update-notifier.
Local projects
Environment promotion
Connect a terminal
Submit a long schema change
Normal Table push and full deploy submit durable Database Operations, wait for terminal success, and verify the resulting Table before moving their environment baseline. A failed or unreadable operation prevents later dependent phases from being deployed. To leave one schema operation running after the command exits:status: "accepted" with an operation containing jobId and its current status. Acceptance is not deployment success. Inspect that ID in Database Operations or with revo request GET /api/v1/databases/operations/<jobId>. After FINISHED, rerun normal push to verify the portable definition and reconcile the baseline.
For a transport retry across invocations, pass --idempotency-key <uuid> with the same target, body and original optimistic version. Admission-only mode requires one explicit Table Stable Key; it cannot prune or use --all. Full deploy rejects --async because Views, Components and other consumers must wait for schema readiness. Existing reviewed plans and mutation approval requirements continue to apply.
