Skip to content

The CLI

Every run command, its flags and how it signs in.

Applies to EngineCloud
View as Markdown

npx @sypnia/run <command>, or run <command> after npm install -g @sypnia/run.

CommandWhat it does
login · logout · whoamiSign in with the device flow; the session is saved in ~/.config/sypnia/ (mode 600)
use <engine-url>Point the CLI at a self-hosted engine Engine
deploy [--env] [--local] [--prebuilt]Build and deploy the current folder
deploys [--app] [--env]List deploys
promote <deploy> --env · rollback [--to]Release a deploy, or go back
logs [--deploy] [--job] [--since] [--level] [--where]Read or follow logs
env set|unset|ls|pull|applyEnvironment variables and secrets
domains add|ls|rmCustom domains
git connect|disconnectDeploy from a repository
jobs ls|runs|triggerScheduled jobs
queues ls|dlq [--replay]Queues and their dead-letter queues
cases ls|trigger <case>|dlq <case> [--replay]The app’s use cases: what each one starts on, run a scheduled case now, and a listener’s dead letters
cases keys create|ls|revokeKeys for one external case (syp_rck_…)
tokens create|ls|revokeDeploy tokens
telemetry connectLink the app to Sypnia Telemetry
engine install|upgrade|uninstallManage a self-hosted engine Engine

Every command accepts --json for scripts and agents, and --token (or SYPNIA_RUN_TOKEN) instead of the saved session. Exit codes: 0 success, 1 failure, 2 wrong usage, 3 not signed in, 4 permission denied.

    Search pages, sections and terms