Skip to content
中文

Local commands

Workflow commands wrap a short sequence of local and platform steps into one command: they read the current repository, call a few operations, and print the result in a form a person can read. This page lists the commands in the current release, by action.

The full list — every command with its usage, examples and options — is in the Command reference; this page only walks through a few common actions.

Publish an app

终端窗口
praxis app publish --dir ./my-app

Builds the project, uploads it, creates the secrets the project declares, runs a health check, and prints the public URL. With the build already done, --no-build publishes the existing dist/.

终端窗口
praxis app rollback --to <version_id>

Deploys the previous version again (or the one named by --to) and waits until it is live. Without --to it rolls back one version.

To start an app from scratch, praxis app create <name> copies the standard template and installs its dependencies; --dir picks the directory, --template uses a local template instead.

Read a deploy plan

终端窗口
praxis devops deploy plan --env develop --since HEAD~1

Lists the targets this repository deploys, by dependency layer; with --since it marks the targets the change since that commit touches. It reads local facts only: no login, no request, so it runs in CI and offline.

Run a deploy

终端窗口
praxis devops deploy --env develop --environment-id dve_… --commit <sha> --events-file events.ndjson

The deploy engine’s entry point, meant for build machines: it generates each target’s configuration from the adapters the project declares, then plans or applies layer by layer and writes execution events. Day to day, deploy plan above is what you want. --plan-only writes plan files; --apply-plans applies an approved directory.

Run tests in the cloud

终端窗口
praxis devops test run --remote --select smoke

After you push the branch, hands the test selection to the platform executor, waits for the verdict, and lists the failed cases. --no-wait returns as soon as the run exists, --repeat sets how often each case runs, --project names the project.

The command’s exit code is the verdict: 0 when everything passes, non-zero when something fails. In a script, read the exit code.

Import a canvas

终端窗口
praxis canvas import design.pen --dry-run

Imports a design file and the images it references as a canvas. --dry-run reads the local file and prints the plan without uploading; drop it to upload. --name sets the canvas name; --canvas imports into an existing canvas (a whole-canvas replacement that needs --yes).

Account

终端窗口
praxis login # browser device-code sign-in
praxis whoami # identity, organization, and where the credential lives
praxis logout # remove the saved login on this machine
praxis org list # organizations the login can use
praxis org switch <organization_id>

praxis login approves through the browser device code. In CI, use an API key instead and skip this step.

Limits

  • Each command serves one job. When you need several operations together, call them through praxis api.
  • Deploy commands need targets and adapters declared in the repository; without them the plan is empty.
  • Remote test runs need the branch pushed, because the platform runs the commit on the branch.