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.
The flag to pin a version is --at. --version prints the CLI’s own version.

list

One prompt per line as id, latest version, and name. Returns up to 100 prompts.

versions

The prompt’s history as JSON. Takes no flags.

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. Both flags are required.

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 with a single line and no stack trace:

Completions

Also available for bash and fish.

Configuration

ANPORD_BASE_URL is read by the CLI and the MCP server. The SDK constructor does not read it — pass { baseUrl } to point the client elsewhere.