Explore the behavior
Initialize a workspace
revo project as the short interactive form, or refresh an existing project with:
tsconfig.json or jsconfig.json and updates root .gitignore so generated editor bundles remain local by default. When the RevoEngine code lives in a nested directory, the root .revoengine/ directory remains the single state location and revo.json stores the workspace path.
Component pull/push creates and updates .revoengine/revo.lock.json as synchronization state.
Identity strategy
New projects should usestableKey. The configured metadata value identifies the same logical component across instances even though component and element UUIDs differ.
componentId mode only for a workspace intentionally bound to one instance.
Plan and apply missing metadata explicitly:
Pull, plan, and push
Components/__no_category__/ while the manifest preserves category: null.
Conflict model
.revoengine/revo.lock.json records the last successfully pulled or pushed remote baseline. The CLI compares three states before overwriting anything:
- current local component files;
- the lock baseline;
- current remote state.
--force bypasses lock-content safety for an explicitly selected bulk operation, but it does not bypass missing or duplicate stable identity.
Configure Single, Batch or Debounce Jobs
CLI 2.1.0 synchronizes Job Template execution modes with Platform 1.9.0 or later. Collection belongs to the Job Template, so matching Event, Schedule, manual and programmatic triggers can join the same Job. See Job execution modes for grouping boundaries and runtime processing. Pull the current definitions from the selected project before editing theirjob-template.json manifests:
maxSize accepts 2–1000 triggers. Wait and quiet periods accept 1–3600 seconds. Debounce requires quietPeriodSeconds no greater than maxWaitSeconds; Batch does not accept a quiet period. Configure dynamic concurrency separately with options.concurrency.keyPath, for example /message/orderId.
Review the plan before applying it. These commands cover all managed Job Templates in the workspace:
delivery policies are rejected. Move the policy to the target Job Template and remove the former Event keyPath; choose any dynamic concurrency path separately. Event and Schedule input is retained on each trigger, while template defaults remain in templateInputs. CLI 2.1.0 ignores retired inputMode fields and excludes them from fresh pulls and API writes. Re-pull definitions and regenerate reviewed plans after upgrading; follow Upgrade to 1.9 when updating the Job’s Component code.
Portable owners and execution policies
Useowner: { "type": "system" } for a Group or Service Account whose management owner is the built-in System account. An ordinary Service Account owner uses owner: { "type": "service-account", "stableKey": "operations-worker" }. The CLI resolves these references in the target instance. A Service Account manifest owner becomes management access; it does not grant execution roles. System itself is protected and is excluded from managed-account exports, updates, and pruning. A target without a valid physical System account is blocked before dependent writes.
Endpoint execution identifies the Component. The separate executionPolicy chooses permission identity and business currentUser behavior:
serviceAccount: { "kind": "service-account", "stableKey": "operations-worker" }. Both Endpoints and Job Templates accept INHERIT, CALLER, or SERVICE_ACCOUNT; omit serviceAccount for the first two. Only Endpoints have the independent currentUser choice. Job code sees the captured executor and records the initiator separately.
Instance execution defaults are target-local settings under Settings → Endpoints and are not copied by resource migration. Existing Job executionPrincipal manifests remain supported; use either that legacy reference or executionPolicy, not both. Writing an explicit policy clears the legacy executor alias. Configured SERVICE_ACCOUNT execution with administrator permissions requires approved Component and library code; see Endpoint configuration.
Synchronize Applications and Endpoints
Applications require Platform 1.9.2 or later and CLI 2.2.0 or later. Keep their definitions with the Endpoints that use them:Applications/portal/application.json can contain:
portal to the target instance’s Application. Omitting application preserves the existing Default behavior; an explicit Default reference is { "system": "@default" }.
Review and apply the whole dependency graph when introducing a new Application and Endpoint together:
--omit=application:cors in a mixed-family command when the destination owns that policy.
Synchronize typed caller policies
The Platform API uses target-local account IDs. CLI manifests distinguish human users from Service Accounts and resolve Service Accounts by Stable Key:all, allowlist or denylist; all requires empty lists. A direct member or verified Group membership matches an allowlist; either match blocks a denylist. Groups resolve by Stable Key to live target Group identities, with source/target revision fences. Omitted groups preserves the target list when updating a policy; explicit groups: [] clears it. Existing invocation roles still apply. Same-instance users require a current typed account readback. Crossing instances requires an explicit environment mapping in local .revoengine/revo.json; users are never matched by email:
invocationPolicy or anonymousAccess preserves the target; explicit null resets the policy. Use --omit=application:invocationPolicy or --omit=application:anonymousAccess to preserve each complete target policy. Retained caller and Group references block unsafe Service Account or Group pruning.
An Endpoint opts in separately with top-level allowUnauthenticated: true and an explicit dedicated Service Account execution policy. Both Application and Endpoint gates must permit anonymous execution. Published named Application calls use the configured hostname and keep the path unchanged; /services/... has no special routing meaning. Local preview rejects unsupported caller policies, anonymous admission and explicit wire formats; use the actual Endpoint runtime for those checks.
Native file modes use options.requestBody: {"mode":"storage"} or options.responseBody: {"mode":"storage"}. The Component selects an exact upload-session or file directive; no folder is configured inside requestBody. CLI 2.2.0 checks a fresh endpointStorageTransports: true capability for every managed native plan (including unchanged and omitted-retained options) and before native configuration writes. Missing capability blocks these modes without changing old inline formats. Local preview rejects native modes. Published preview rejects known native catalog routes before reading bytes; Default callers denied catalog access retain legacy 2 MiB request forwarding with an unknown-format warning. Use the real Endpoint runtime for streaming checks.
See Applications and CORS for runtime addresses and request and response formats for wire contracts.
Debug local source
api.log() frames go to stderr and the terminal result goes to stdout. A copy of the result is stored under .revoengine/output/.
Local JavaScript/TypeScript library components are included as transient overrides by default. Use --no-extra-libs when you intentionally want only server-saved active libraries.
For platform 1.8, use a compatible CLI and remove retired library-selection fields from checked-in execution configuration. Follow Upgrade to 1.8 before pushing existing manifests.
