Reference / CLI reference

CLI reference

Look up commands, arguments, JSON fields and exit codes from the CLI’s published help.

help

waystone help

not journaledexit 0exit 2

Print the versioned machine-readable service CLI schema (waystone help --json)

Synopsis
waystone help [--json] [<noun>]
Options
Flag or argumentTypeDefaultDescription
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<noun>string—Optional service noun filter
Output with --json
FieldType
cli_versionstring
codesarray
commandsarray
errorobject
schemastring · waystone.cli.help/1

Exit codes

Exit 0 · success · Exit 2 codes

service

waystone service init

not journaledexit 0exit 1exit 2

Initialize a local listener directory, initial Project, owner-only credentials, and profiles

Synopsis
waystone service init [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--store <store>] [--name <name>] [--folder <folder>] [--project <project>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--storepath—Custom local directory for the listener store (default: $XDG_DATA_HOME/waystone/service/<name>)
--namestringdefaultListener name
--folderpath—Local folder or repository used by this Project's Jobs
--projectstringwaystone-rebuildInitial Project identifier
Output with --json
FieldType
listenerstring
operation_idstring
pending_subscriptionsarray
principalsarray
profilesobject
projectstring
schemastring · waystone.service.init/1
storestring

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes

waystone service run

not journaledexit 0exit 1exit 2

Run a local waystone listener in the foreground

Synopsis
waystone service run [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--namestring—Listener name to run
--storepath—Explicit listener store directory to run
Output with --json
FieldType
listenerstring
schemastring · waystone.service.run/1
storestring

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes

waystone service status

not journaledexit 0exit 1exit 2exit 3exit 4

Query service principal, limits (host.limits), running executable SHA-256, and enrollment status

Synopsis
waystone service status [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
Output with --json
FieldType
applied_incarnationinteger | null
applied_state_staleboolean
bounds_versionstring
endpointstring
executable_sha256string | null
folderstring
limitsarray
listenerstring
operation_idstring
pidinteger
principalstring
principalsarray
projectstring
protocol_versionstring
request_idinteger
schemastring · waystone.service.status/1
server_generationinteger

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

project

waystone project add

not journaledexit 0exit 2

Register an additional Project on an existing listener

Synopsis
waystone project add [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--folder <folder>] <id> [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--folderpath—Local folder or repository used by this Project's Jobs
<id>string—Project identifier
--namestring—Listener name
--storepath—Explicit listener store directory
Output with --json
FieldType
listenerstring
operation_idstring
principalsarray
profilesobject
projectstring
schemastring · waystone.project.add/1

Exit codes

Exit 0 · success · Exit 2 codes

job

waystone job add

journaledexit 0exit 1exit 2exit 3exit 4

Create an empty Job

Synopsis
waystone job add [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
Output with --json
FieldType
completed_stepsarray
idstring
operation_idstring
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.job.add/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

task

waystone task add

journaledexit 0exit 1exit 2exit 3exit 4

Add and activate a Task in a Job (asks for confirmation if the Job has work in flight)

Synopsis
waystone task add [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id> --job <job> --brief <brief> [--confirm <confirm>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
--jobstring——
--briefpath——
--confirmstring—Confirm adding this Task to a busy Job (<root_version>:<64-hex> from the service warning)
Output with --json
FieldType
completed_stepsarray
definitionstring
idstring
jobstring
operation_idstring
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.task.add/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task claim

journaledexit 0exit 1exit 2exit 3exit 4

Claim an activated Task (return is a pointer of at most 1024 bytes via waystone task close)

Synopsis
waystone task claim [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id> [--ttl <ttl>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
--ttlduration2h—
Output with --json
FieldType
claimstring | null
completed_stepsarray
deadlineinteger | null
declared_returnobject
generationinteger | null
idstring
operation_idstring
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.task.claim/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task heartbeat

journaledexit 0exit 1exit 2exit 3exit 4

Renew your Task's lease

Synopsis
waystone task heartbeat [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
Output with --json
FieldType
claimstring | null
completed_stepsarray
deadlineinteger | null
generationinteger | null
idstring
operation_idstring
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.task.heartbeat/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task release

journaledexit 0exit 1exit 2exit 3exit 4

Release your Task's lease

Synopsis
waystone task release [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
Output with --json
FieldType
claimstring | null
completed_stepsarray
deadlineinteger | null
generationinteger | null
idstring
operation_idstring
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.task.release/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task close

journaledexit 0exit 1exit 2exit 3exit 4

Close a Task and record its pointer reference of at most 1024 bytes (its coordinator, or the agent holding its claim)

Synopsis
waystone task close [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id> --ref <ref> [--file <file>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
--refstring——
--filepath—Optional local file whose SHA-256 and byte length are appended to the pointer
Output with --json
FieldType
completed_stepsarray
idstring
operation_idstring
principalstring
referencestring
request_idinteger
root_versioninteger | null
schemastring · waystone.task.close/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task show

not journaledexit 0exit 1exit 2exit 3exit 4

Read a Task's status row

Synopsis
waystone task show [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id> [--brief <brief>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
--briefpath—Read this local UTF-8 brief after matching its digest to the recorded Task definition
Output with --json
FieldType
briefstring
definitionstring
idstring
jobstring
operation_idstring
phasestring
principalstring
result_pointerobject | null
root_versioninteger
rowobject
schemastring · waystone.task.show/2
statestring

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task verify

not journaledexit 0exit 1exit 2exit 3exit 4

Verify a local file against the SHA-256 and byte length recorded in a Task's close pointer

Synopsis
waystone task verify [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id> --file <file>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
--filepath—Local file to compare against the Task's recorded pointer
Output with --json
FieldType
actual_bytesinteger
actual_sha256string
filestring
idstring
locatorstring
operation_idstring
principalstring
recorded_bytesinteger | null
recorded_sha256string | null
schemastring · waystone.task.verify/1
statusstring · verified | changed | no_verification_data

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task state

not journaledexit 0exit 1exit 2exit 3exit 4

Read a Task's status row and its holder's execution

Synopsis
waystone task state [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string——
Output with --json
FieldType
executionobject | null
idstring
operation_idstring
principalstring
rowobject
schemastring · waystone.task.state/2

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone task list

not journaledexit 0exit 1exit 2exit 3exit 4

List the Tasks in a Job

Synopsis
waystone task list [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] --job <job>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--jobstring——
Output with --json
FieldType
consistentboolean
idstring
operation_idstring
principalstring
schemastring · waystone.task.list/2
tasksarray
through_maxinteger
through_mininteger

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

agent

waystone agent add

not journaledexit 0exit 2

Enroll a principal in a Project and mint its 0600 credential and profile

Synopsis
waystone agent add [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <principal> --project <project> --class <class> [--kind <kind>] [--may-carry <may-carry>] [--replace-coordinator] [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<principal>string—Principal name
--projectstring—Target Project identifier
--classcoordinator | worker | bot | reader—Client class governing route permissions and carry eligibility
--kindagent | bot | human—Principal kind (defaults to bot for class bot, otherwise agent)
--may-carrystring—Owner principal that this coordinator or bot may carry
--replace-coordinatorbooleanfalseAtomically replace the active Project coordinator with this principal
--namestring—Listener name
--storepath—Explicit listener store directory
Output with --json
FieldType
carriesarray
classstring
credentialstring
generationinteger
kindstring
listenerstring
operation_idstring
principalstring
profilestring
projectstring
revisioninteger
schemastring · waystone.agent.add/1

Exit codes

Exit 0 · success · Exit 2 codes

waystone agent grant

not journaledexit 0exit 2

Add or remove a carry grant for an active coordinator or bot principal

Synopsis
waystone agent grant [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <principal> --project <project> [--may-carry <may-carry>] [--drop-carry <drop-carry>] [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<principal>string—Principal name
--projectstring—Target Project identifier
--may-carrystring—Owner principal to grant carry authority for
--drop-carrystring—Owner principal to remove carry authority for
--namestring—Listener name
--storepath—Explicit listener store directory
Output with --json
FieldType
carriesarray
classstring
listenerstring
operation_idstring
principalstring
projectstring
revisioninteger
schemastring · waystone.agent.grant/1

Exit codes

Exit 0 · success · Exit 2 codes

waystone agent revoke

not journaledexit 0exit 2

Immediately revoke a principal's credential and tombstone its enrollment

Synopsis
waystone agent revoke [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <principal> --project <project> [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<principal>string—Principal name
--projectstring—Target Project identifier
--namestring—Listener name
--storepath—Explicit listener store directory
Output with --json
FieldType
generationinteger
listenerstring
operation_idstring
principalstring
projectstring
revisioninteger
schemastring · waystone.agent.revoke/1

Exit codes

Exit 0 · success · Exit 2 codes

status

waystone status

not journaledexit 0exit 1exit 2exit 3exit 4

Waystone's own state of every Job, Task and agent in a scope, one consistent read per page

Synopsis
waystone status [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--scope <scope>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--scopestringprojectproject, job=ID, task=ID or agent=PRINCIPAL
Output with --json
FieldType
consistentboolean
operation_idstring
principalstring
rowsarray
schemastring · waystone.status/2
scopestring
scope_existsboolean
through_maxinteger
through_mininteger

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

bind

waystone bind

journaledexit 0exit 1exit 2exit 3exit 4

Bind this principal's foreign identity (this Rex pane, or a bot id) to its Participation

Synopsis
waystone bind [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--rex] [--id <id>] --label <label> [--rex-server <rex-server>] [--rex-instance <rex-instance>] [--rex-version <rex-version>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--rexbooleanfalseBind this Rex pane: REX_SESSION, REX_BLOCK and rex --autostart=false whoami --json
--idstring—A foreign identity KIND=ID: grok=NAME (a bot) or rex=SERVER/INSTANCE/SESSION/BLOCK; never a pid
--labelstring—The binding's label, for example builder-x
--rex-serverstring—With --rex, unattended: the Rex server (host_id) instead of asking rex whoami
--rex-instancestring—With --rex, unattended: the Rex instance (instance_id)
--rex-versionstring—The Rex version (descriptive; a lookup ignores it)
Output with --json
FieldType
bindingobject | null
completed_stepsarray
idstring
operation_idstring
principalstring
request_idinteger | null
schemastring · waystone.bind/1
writtenboolean

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone bind show

not journaledexit 0exit 1exit 2exit 3exit 4

Find bindings: this pane (--here), a principal's (--principal P), or one identity (--id KIND=ID)

Synopsis
waystone bind show [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--here] [--principal <principal>] [--id <id>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--herebooleanfalseThis Rex pane's own full key
--principalstring—Every binding of principal P (work <project>.<P>.cli)
--idstring—rex=SERVER/INSTANCE/SESSION/BLOCK or grok=NAME
Output with --json
FieldType
bindingsarray
operation_idstring
principalstring
queryobject
schemastring · waystone.bind.show/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

activity

waystone activity read

not journaledexit 0exit 1exit 2exit 3exit 4

Print one bounded page of events, then acknowledge it (default is created on first use)

Synopsis
waystone activity read [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--subscription <subscription>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--subscriptionstringdefault—
Output with --json
FieldType
createdboolean
cursorstring
eventsarray
generationinteger
operation_idstring
principalstring
schemastring · waystone.activity.read/2
subscriptionstring
subscription_idstring | null

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone activity follow

not journaledexit 0exit 1exit 2exit 3exit 4

Print and acknowledge pages until stopped, resuming from the acknowledged cursor

Synopsis
waystone activity follow [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--subscription <subscription>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--subscriptionstringdefault—
Output with --json
FieldType
actorstring | null
causestring | null
deadlineinteger | null
decisionstring | null
event_idstring
generationinteger | null
idstring
jobstring | null
namestring
referencestring | null
rootstring
root_versioninteger
safe_defaultinteger | null
schemastring · waystone.activity.event/2
subscriptionstring
taskstring | null

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

subscription

waystone subscription add

not journaledexit 0exit 1exit 2exit 3exit 4

Create a named subscription that holds events from now on

Synopsis
waystone subscription add [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <name> [--job <job>] [--task <task>] [--binding <binding>] [--kind <kind>] [--host <host>] [--event <event>]… [--push <push>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<name>string——
--jobstring——
--taskstring——
--bindingstring——
--kindstring—Root kind, for example task or job
--hoststring——
--eventstring—Event name to keep, for example decision-opened (repeatable)
--pushstring—Webhook name; also creates the notifier's cursor at the same moment
Output with --json
FieldType
createdboolean
generationinteger
namestring
operation_idstring
principalstring
pushobject | null
schemastring · waystone.subscription.add/1
subscription_idstring | null

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone subscription activate

not journaledexit 0exit 1exit 2exit 3exit 4

Create the server subscriptions of pending definitions written by service init

Synopsis
waystone subscription activate [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [<name>] [--all-pending]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<name>string——
--all-pendingbooleanfalse—
Output with --json
FieldType
activatedarray
operation_idstring
principalstring
schemastring · waystone.subscription.activate/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone subscription list

not journaledexit 0exit 1exit 2exit 3exit 4

List your subscription definitions

Synopsis
waystone subscription list [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
Output with --json
FieldType
operation_idstring
principalstring
schemastring · waystone.subscription.list/1
subscriptionsarray

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone subscription remove

not journaledexit 0exit 1exit 2exit 3exit 4

Remove a subscription; a later add of the name creates a new generation

Synopsis
waystone subscription remove [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <name>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<name>string——
Output with --json
FieldType
generationinteger
namestring
operation_idstring
principalstring
removedstring · True
schemastring · waystone.subscription.remove/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

decision

waystone decision open

journaledexit 0exit 1exit 2exit 3exit 4

Open a decision on your claimed Task (its lease pauses) or, as coordinator, on a Job; the safe default is required

Synopsis
waystone decision open [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] [--task <task>] [--job <job>] [--id <id>] --question <question> --option <option>… --default <default> --deadline <deadline>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--taskstring—The Task you hold a lease on
--jobstring—A Job you orchestrate (coordinator)
--idstring—The decision's id (default q-<8 hex> from the operation id)
--questionpath—A file holding the question text (UTF-8, at most 4096 bytes)
--optionstring—One option; repeat for each
--defaultstring—The safe default, one of the options, applied at the deadline
--deadlineduration—How long until the safe default applies, for example 30m
Output with --json
FieldType
completed_stepsarray
decisionstring
defaultstring
idstring
operation_idstring
optionsarray
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.decision.open/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone decision show

not journaledexit 0exit 1exit 2exit 3exit 4

Read a decision with every answer and correction and who gave it

Synopsis
waystone decision show [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string—task:<task>/<decision> or job:<job>/<decision>
Output with --json
FieldType
answersarray
choicestring | null
decisionobject
idstring
operation_idstring
principalstring
schemastring · waystone.decision.show/1

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone decision wait

not journaledexit 0exit 1exit 2exit 3exit 4

Wait until a decision is answered or defaulted; a timeout is exit 0 with timed_out

Synopsis
waystone decision wait [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id> [--timeout <timeout>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string—task:<task>/<decision> or job:<job>/<decision>
--timeoutduration—The longest to wait, for example 10m (default: until resolved)
Output with --json
FieldType
answersarray
choicestring | null
idstring
operation_idstring
principalstring
schemastring · waystone.decision.wait/1
statestring · open | answered | defaulted
timed_outboolean

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone decision answer

journaledexit 0exit 1exit 2exit 3exit 4

Answer a decision, or correct a defaulted one; with --author, carry the owner's words

Synopsis
waystone decision answer [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id> --choice <choice> [--author <author>] [--via <via>] [--words <words>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string—task:<task>/<decision> or job:<job>/<decision>
--choicestring—The chosen option
--authorstring—The Project owner whose words this carries (needs a carry grant)
--viastring—The channel the words came through, for example "buildbot (voice)"
--wordspath—A file holding the author's words verbatim (UTF-8, at most 2048 bytes)
Output with --json
FieldType
authorstring | null
choicestring
completed_stepsarray
decisionstring
idstring
operation_idstring
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.decision.answer/1
viastring | null

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

message

waystone message send

journaledexit 0exit 1exit 2exit 3exit 4

Send a message to an enrolled principal; with --author, carry the owner's words

Synopsis
waystone message send [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] --to <to> --file <file> [--author <author>] [--via <via>] [--words <words>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--tostring—The recipient principal
--filepath—A file holding the message bytes, sent verbatim (at most 4096 bytes)
--authorstring—The Project owner whose words this carries (needs a carry grant)
--viastring—The channel the words came through
--wordspath—A file holding the author's words verbatim (UTF-8, at most 2048 bytes)
Output with --json
FieldType
authorstring | null
bytesinteger
completed_stepsarray
idstring
messagestring
operation_idstring
principalstring
request_idinteger
root_versioninteger | null
schemastring · waystone.message.send/1
tostring
viastring | null

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

waystone message read

not journaledexit 0exit 1exit 2exit 3exit 4

Read a message, its bytes verbatim and who sent it

Synopsis
waystone message read [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <id>
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<id>string—The message id
Output with --json
FieldType
accepted_atinteger
byobject
bytes_hexstring
idstring
lengthinteger
messagestring
operation_idstring
principalstring
recipientstring
schemastring · waystone.message.read/1
senderstring
versioninteger

Exit codes

Exit 0 · success · Exit 1 codes · Exit 2 codes · Exit 3 codes · Exit 4 codes

webhook

waystone webhook add

not journaledexit 0exit 2

Register or replace a webhook; the sender key is read from stdin (not echoed on a terminal)

Synopsis
waystone webhook add [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <webhook> --project <project> [--name <name>] [--store <store>] --url <url> [--key-stdin]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<webhook>string—Webhook name: 1 to 64 of [a-z0-9-]
--projectstring—Project the webhook belongs to
--namestring—Listener name
--storepath—Explicit listener store directory
--urlstring—https:// URL of the bot's webhook routine
--key-stdinbooleanfalseRead the sender key (printable ASCII, 16 to 4096 bytes) from stdin
Output with --json
FieldType
generationinteger
namestring
operation_idstring
pausedboolean
projectstring
schemastring · waystone.webhook.add/1

Exit codes

Exit 0 · success · Exit 2 codes

waystone webhook remove

not journaledexit 0exit 2

Remove a webhook: its pointer first, then its key

Synopsis
waystone webhook remove [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <webhook> --project <project> [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<webhook>string—Webhook name: 1 to 64 of [a-z0-9-]
--projectstring—Project the webhook belongs to
--namestring—Listener name
--storepath—Explicit listener store directory
Output with --json
FieldType
generationinteger
namestring
operation_idstring
projectstring
removedstring · True
schemastring · waystone.webhook.remove/1

Exit codes

Exit 0 · success · Exit 2 codes

waystone webhook pause

not journaledexit 0exit 2

Stop sending to a webhook; its notices are logged as missed (a controlled drop)

Synopsis
waystone webhook pause [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <webhook> --project <project> [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<webhook>string—Webhook name: 1 to 64 of [a-z0-9-]
--projectstring—Project the webhook belongs to
--namestring—Listener name
--storepath—Explicit listener store directory
Output with --json
FieldType
generationinteger
namestring
operation_idstring
pausedboolean
projectstring
schemastring · waystone.webhook.pause/1

Exit codes

Exit 0 · success · Exit 2 codes

waystone webhook resume

not journaledexit 0exit 2

Send to a paused webhook again

Synopsis
waystone webhook resume [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] <webhook> --project <project> [--name <name>] [--store <store>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
<webhook>string—Webhook name: 1 to 64 of [a-z0-9-]
--projectstring—Project the webhook belongs to
--namestring—Listener name
--storepath—Explicit listener store directory
Output with --json
FieldType
generationinteger
namestring
operation_idstring
pausedboolean
projectstring
schemastring · waystone.webhook.resume/1

Exit codes

Exit 0 · success · Exit 2 codes

notifier

waystone notifier run

not journaledexit 1exit 2

Run as principal notifier: POST one notice per matching event of each push subscription, until stopped

Synopsis
waystone notifier run [--profile <profile>] [--secret-fd <secret-fd>] [--operation-id <operation-id>] [--json] --project <project> [--outage-after <outage-after>]
Options
Flag or argumentTypeDefaultDescription
--profilepath—Path to a waystone.profile/1 JSON file
--secret-fdinteger—Inherited file descriptor providing the 32-byte credential secret once
--operation-idstring—Caller-supplied idempotency operation identifier
--jsonbooleanfalseEmit versioned machine-readable JSON on stdout
--projectstring—Project whose push subscriptions to serve
--outage-afterduration2mHow long the service may be unreachable before default webhooks get service-unavailable
Output with --json
FieldType
codestring | null
deliveredboolean
eventstring
generationinteger
kindstring · started | cursor | notice | outage
notice_idstring
operation_idstring
ownerstring | null
positioninteger | null
principalstring
projectstring
reasonstring | null
schemastring · waystone.notifier.event/1
started_atinteger
statestring · connected | unavailable | refused | stopped | over_limit
statusinteger | null
subscriptionstring | null
webhookstring

Exit codes

Exit 1 codes · Exit 2 codes

Exit codes

The CLI groups machine-readable errors by exit number. The retry field gives the policy for each code.

Exit 1

Error codes with exit 1
CodeRetryDelay (ms)
unauthenticatednever—
authority_deniednever—
stale_generationnever—
job_topology_frozennever—
confirmation_requirednever—
lease_heldnever—
carry_not_grantednever—
claim_requirednever—
not_appliednever—
resync_requirednever—
operation_payload_changednever—
version_conflictnever—
identity_conflictnever—
evidence_mismatchnever—
not_foundnever—
revokednever—
not_membernever—
wrong_recipientnever—
foreign_projectnever—
stale_ticketnever—
invalid_scopenever—
invalid_provenancenever—
malformednever—
integritynever—
refusednever—
service_init_failednever—
listener_busynever—
service_run_failednever—
subscription_existsnever—
output_failednever—
missed_log_failednever—

Exit 2

Error codes with exit 2
CodeRetryDelay (ms)
usagenever—
unknown_commandnever—
secret_modenever—
secret_not_foundnever—
invalid_secretnever—
secret_io_errornever—
ambiguous_profilenever—
profile_not_foundnever—
invalid_profilenever—
profile_io_errornever—
non_loopback_endpointnever—
invalid_endpointnever—
invalid_requestnever—
invalid_lookupnever—
message_too_largenever—
carry_class_refusednever—
invalid_componentnever—
placement_refusednever—
listener_existsnever—
listener_not_foundnever—
ambiguous_listenernever—
project_existsnever—
project_not_foundnever—
project_limit_exceedednever—
principal_existsnever—
principal_not_foundnever—
coordinator_existsnever—
coordinator_revoke_refusednever—
last_reader_revoke_refusednever—
credential_context_too_largenever—
credential_limit_exceedednever—
listener_io_errornever—
service_binary_not_foundnever—
subscription_not_foundnever—
subscription_pendingnever—
invalid_webhook_keynever—
invalid_webhook_urlnever—
webhook_not_foundnever—
sender_not_foundnever—

Exit 3

Error codes with exit 3
CodeRetryDelay (ms)
unsettledsame_operation5000
presentation_unavailable_mid_commandsame_operation5000
protocol_errornever—

Exit 4

Error codes with exit 4
CodeRetryDelay (ms)
unavailableafter2000
overloadafter250