Pollaris Docs
Pollaris CLI

CLI command reference

Pollaris CLI commands, JSON behavior, continuation states, and exit codes.

Form commands

CommandPurpose
pollaris forms createGenerate or import a form; publish by default.
pollaris forms listList forms in the authorized workspace.
pollaris forms get FORM_IDRead form metadata and its current draft.
pollaris forms validate --definition FILEValidate a canonical form definition.
pollaris forms save FORM_ID --definition FILE --expected-revision NReplace exactly the inspected draft revision.
pollaris forms publish FORM_ID --expected-revision NPublish exactly the inspected draft revision.

forms create requires exactly one of --prompt, --prompt-file, or --definition. Definition input also requires --title. Use - as a definition filename to read standard input.

Authorization and continuation

CommandPurpose
pollaris auth loginBegin browser authorization before another command.
pollaris auth statusCheck the current profile.
pollaris auth logoutRevoke and remove the current profile credential.
pollaris operations resume OPERATION_IDContinue the original request after authorization, timeout, or restart.
pollaris jobs get JOB_IDRead durable backend job state.
pollaris jobs wait JOB_IDWait for a bounded period.
pollaris jobs resume JOB_IDResume a recoverable job after renewed authorization.

Workspaces and connections

CommandPurpose
pollaris workspaces listShow the workspace available to this grant.
pollaris workspaces use WORKSPACE_IDConfirm the current granted workspace.
pollaris connections listShow the current delegated connection.
pollaris connections revoke CONNECTION_IDRevoke the current connection when its ID matches.
pollaris mcp connectAuthorize and optionally configure a local MCP host.
pollaris mcp serveRun the local stdio bridge. Normally launched by the agent host.
pollaris mcp statusCheck a named MCP profile.
pollaris mcp disconnectRevoke and remove a managed MCP connection.
pollaris capabilitiesRead server resource URLs, scopes, limits, and schema version.
pollaris doctorCheck deployment and local credential-store access.

Global options

OptionBehavior
--jsonEmit one versioned JSON object on stdout. Logs and progress use stderr.
--profile NAMEUse a named deployment, account, workspace, or connection context.
--api-url URLChoose a trusted Pollaris API origin for a new profile.
--non-interactiveNever prompt or launch a browser. Agent commands already follow this behavior.
--waitWait for authorization or job progress.
--timeout SECONDSBound one wait from 0 to 300 seconds.
--idempotency-key KEYSupply an 8–100 character logical-operation key. Reuse only for the same input.

Status and exit codes

ExitMeaning
0Completed.
10Authorization required; resume data is present.
11Operation or job is still pending.
12User declined authorization.
13Authorization expired, was revoked, or lacks scope.
20Generation or validation failed.
21Revision or idempotency conflict.
22Rate or quota limit.
30Temporary network, provider, or server error.
31Local arguments, configuration, installation, or credential storage failed.

Agents should inspect the JSON status and error.code. A timeout or interrupted process does not mean a submitted backend job was cancelled.

On this page