Skip to main content
The CLI ships in the same package as the SDK.
Authentication comes from the environment:

Commands

get

Prints the prompt’s content to stdout, which makes it pipeable:
--json prints the whole prompt instead, including its version and channel. --channel and --at select which version to resolve, following the same rules as the API.

list

One prompt per line as id, latest version, and name.

versions

The prompt’s history as JSON.

push

Appends a version. Pass - to read the content from stdin:
Pushing does not change what production serves. Promote when you are ready.

promote

Points a channel at a version.

Scripting

Content goes to stdout and everything else to stderr, so redirecting a prompt to a file captures the prompt and nothing else. A failure exits non-zero:

Completions

Also available for bash, fish, and sh.

Configuration