CLI reference

Every Poyesis command, flag, and environment variable.

The Poyesis CLI drives the entire platform from your terminal. Install it with npm, Homebrew, or the install script.

Shell
npm install -g @poyesis/cli

Global flags#

FlagDescription
--project, -pTarget a project by slug
--jsonOutput machine-readable JSON
--no-colorDisable ANSI colors
--tokenAuth token (overrides stored credentials)

Commands#

poyesis login#

Authorize the CLI against your account.

Shell
poyesis login

poyesis init#

Detect your stack and scaffold a poyesis.yaml.

Shell
poyesis init --template node-service

poyesis run#

Run the current pipeline and stream logs.

Shell
poyesis run --stage build,test

poyesis deploy#

Deploy to an environment.

Shell
poyesis deploy --env production --strategy canary

poyesis rollback#

Restore a previous release.

Shell
poyesis rollback --env production --to release_8f21c4

Environment variables#

VariableDescription
POYESIS_TOKENAuth token for non-interactive / CI usage
POYESIS_PROJECTDefault project slug
POYESIS_NO_TELEMETRYSet to 1 to disable anonymous usage metrics

In CI, set POYESIS_TOKEN from an encrypted secret. Never echo it to logs — Poyesis masks known token formats, but custom logging can leak them.

Exit codes#

CodeMeaning
0Success
1Pipeline or command failed
2Invalid usage / bad flags
4Authentication required

Scripting Poyesis? Combine --json with jq to extract any field — for example poyesis run --json | jq '.stages[] | select(.state=="failed")'.