On this page

#Deployments

CommandPurpose
vatio push [--force]Update preview; it runs no tests. The first push signs in like login
vatio publish [--force]Take preview live with its knowledge changes
vatio rollbackPut live back to the previous snapshot: configuration and knowledge together
vatio statusShow deployment state
vatio env [preview|live]One environment: its token, widget snippet, test link, knowledge changes and conflicts; default preview
vatio env listBoth environments and what each runs
vatio diff [--env NAME]Compare local files with a deployment; default preview
vatio diff --stat / --name-only / --format json / --fullSelect diff detail or output format

There are two environments: preview, the next version, which push updates, and live, what visitors talk to. --env takes one of the two (staging and sandbox still mean preview); any other name is an error. push cannot target live: publishing is a separate, deliberate step. diff compares your local directory with a deployment, so push local edits before publishing them.

#The publish gate

Before the first publish there is nothing live to protect, so publish always goes through. When preview is already live's version there is nothing to take live either: publish moves only preview's knowledge changes and prints a notice saying so. Otherwise, publish takes preview live only once vatio eval has tested preview's current version, and refuses with one of these error_keys otherwise:

error_keyWhat it meansNext
evals_missingPreview's version has not been testedvatio eval, then publish
evals_runningIts tests are still runningvatio eval waits for them, then publish
evals_regressedA report that passes on live fails on preview; the CLI lists each one by id and titleFix it, push and eval again

Reports that still fail on both do not block: a partial fix can ship. When publish goes through, the reports preview passed are resolved, with the version that fixed them. publish --force publishes over a regression anyway, and its failing results go live with it; use it only when you know why the report fails.

#Pushing over someone else's push

Once the workspace is published, push refuses to replace a preview that holds an unpublished push from another git branch (preview_has_unpublished_push): whoever pushed it has not published it yet. Publish it first, or push --force to replace it. The CLI sends the current git branch with each push for this.

publish is refused when live changed a knowledge entry preview also changed; see Conflicts.

See Deployments for what an environment actually holds, and what a rollback does and does not restore.

Last updated:

Latest CLI version: 0.79.0 · Changelog · The whole contract as Markdown: /docs/docs.md · or vatio docs