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 argument | Type | Default | Description |
|---|
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<noun> | string | — | Optional service noun filter |
Output with --json| Field | Type |
|---|
cli_version | string |
codes | array |
commands | array |
error | object |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--store | path | — | Custom local directory for the listener store (default: $XDG_DATA_HOME/waystone/service/<name>) |
--name | string | default | Listener name |
--folder | path | — | Local folder or repository used by this Project's Jobs |
--project | string | waystone-rebuild | Initial Project identifier |
Output with --json| Field | Type |
|---|
listener | string |
operation_id | string |
pending_subscriptions | array |
principals | array |
profiles | object |
project | string |
schema | string · waystone.service.init/1 |
store | string |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--name | string | — | Listener name to run |
--store | path | — | Explicit listener store directory to run |
Output with --json| Field | Type |
|---|
listener | string |
schema | string · waystone.service.run/1 |
store | string |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
Output with --json| Field | Type |
|---|
applied_incarnation | integer | null |
applied_state_stale | boolean |
bounds_version | string |
endpoint | string |
executable_sha256 | string | null |
folder | string |
limits | array |
listener | string |
operation_id | string |
pid | integer |
principal | string |
principals | array |
project | string |
protocol_version | string |
request_id | integer |
schema | string · waystone.service.status/1 |
server_generation | integer |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--folder | path | — | Local folder or repository used by this Project's Jobs |
<id> | string | — | Project identifier |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
Output with --json| Field | Type |
|---|
listener | string |
operation_id | string |
principals | array |
profiles | object |
project | string |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
Output with --json| Field | Type |
|---|
completed_steps | array |
id | string |
operation_id | string |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
--job | string | — | — |
--brief | path | — | — |
--confirm | string | — | Confirm adding this Task to a busy Job (<root_version>:<64-hex> from the service warning) |
Output with --json| Field | Type |
|---|
completed_steps | array |
definition | string |
id | string |
job | string |
operation_id | string |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
--ttl | duration | 2h | — |
Output with --json| Field | Type |
|---|
claim | string | null |
completed_steps | array |
deadline | integer | null |
declared_return | object |
generation | integer | null |
id | string |
operation_id | string |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
Output with --json| Field | Type |
|---|
claim | string | null |
completed_steps | array |
deadline | integer | null |
generation | integer | null |
id | string |
operation_id | string |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
Output with --json| Field | Type |
|---|
claim | string | null |
completed_steps | array |
deadline | integer | null |
generation | integer | null |
id | string |
operation_id | string |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
--ref | string | — | — |
--file | path | — | Optional local file whose SHA-256 and byte length are appended to the pointer |
Output with --json| Field | Type |
|---|
completed_steps | array |
id | string |
operation_id | string |
principal | string |
reference | string |
request_id | integer |
root_version | integer | null |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
--brief | path | — | Read this local UTF-8 brief after matching its digest to the recorded Task definition |
Output with --json| Field | Type |
|---|
brief | string |
definition | string |
id | string |
job | string |
operation_id | string |
phase | string |
principal | string |
result_pointer | object | null |
root_version | integer |
row | object |
schema | string · waystone.task.show/2 |
state | string |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
--file | path | — | Local file to compare against the Task's recorded pointer |
Output with --json| Field | Type |
|---|
actual_bytes | integer |
actual_sha256 | string |
file | string |
id | string |
locator | string |
operation_id | string |
principal | string |
recorded_bytes | integer | null |
recorded_sha256 | string | null |
schema | string · waystone.task.verify/1 |
status | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | — |
Output with --json| Field | Type |
|---|
execution | object | null |
id | string |
operation_id | string |
principal | string |
row | object |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--job | string | — | — |
Output with --json| Field | Type |
|---|
consistent | boolean |
id | string |
operation_id | string |
principal | string |
schema | string · waystone.task.list/2 |
tasks | array |
through_max | integer |
through_min | integer |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<principal> | string | — | Principal name |
--project | string | — | Target Project identifier |
--class | coordinator | worker | bot | reader | — | Client class governing route permissions and carry eligibility |
--kind | agent | bot | human | — | Principal kind (defaults to bot for class bot, otherwise agent) |
--may-carry | string | — | Owner principal that this coordinator or bot may carry |
--replace-coordinator | boolean | false | Atomically replace the active Project coordinator with this principal |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
Output with --json| Field | Type |
|---|
carries | array |
class | string |
credential | string |
generation | integer |
kind | string |
listener | string |
operation_id | string |
principal | string |
profile | string |
project | string |
revision | integer |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<principal> | string | — | Principal name |
--project | string | — | Target Project identifier |
--may-carry | string | — | Owner principal to grant carry authority for |
--drop-carry | string | — | Owner principal to remove carry authority for |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
Output with --json| Field | Type |
|---|
carries | array |
class | string |
listener | string |
operation_id | string |
principal | string |
project | string |
revision | integer |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<principal> | string | — | Principal name |
--project | string | — | Target Project identifier |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
Output with --json| Field | Type |
|---|
generation | integer |
listener | string |
operation_id | string |
principal | string |
project | string |
revision | integer |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--scope | string | project | project, job=ID, task=ID or agent=PRINCIPAL |
Output with --json| Field | Type |
|---|
consistent | boolean |
operation_id | string |
principal | string |
rows | array |
schema | string · waystone.status/2 |
scope | string |
scope_exists | boolean |
through_max | integer |
through_min | integer |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--rex | boolean | false | Bind this Rex pane: REX_SESSION, REX_BLOCK and rex --autostart=false whoami --json |
--id | string | — | A foreign identity KIND=ID: grok=NAME (a bot) or rex=SERVER/INSTANCE/SESSION/BLOCK; never a pid |
--label | string | — | The binding's label, for example builder-x |
--rex-server | string | — | With --rex, unattended: the Rex server (host_id) instead of asking rex whoami |
--rex-instance | string | — | With --rex, unattended: the Rex instance (instance_id) |
--rex-version | string | — | The Rex version (descriptive; a lookup ignores it) |
Output with --json| Field | Type |
|---|
binding | object | null |
completed_steps | array |
id | string |
operation_id | string |
principal | string |
request_id | integer | null |
schema | string · waystone.bind/1 |
written | boolean |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--here | boolean | false | This Rex pane's own full key |
--principal | string | — | Every binding of principal P (work <project>.<P>.cli) |
--id | string | — | rex=SERVER/INSTANCE/SESSION/BLOCK or grok=NAME |
Output with --json| Field | Type |
|---|
bindings | array |
operation_id | string |
principal | string |
query | object |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--subscription | string | default | — |
Output with --json| Field | Type |
|---|
created | boolean |
cursor | string |
events | array |
generation | integer |
operation_id | string |
principal | string |
schema | string · waystone.activity.read/2 |
subscription | string |
subscription_id | string | 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--subscription | string | default | — |
Output with --json| Field | Type |
|---|
actor | string | null |
cause | string | null |
deadline | integer | null |
decision | string | null |
event_id | string |
generation | integer | null |
id | string |
job | string | null |
name | string |
reference | string | null |
root | string |
root_version | integer |
safe_default | integer | null |
schema | string · waystone.activity.event/2 |
subscription | string |
task | string | 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<name> | string | — | — |
--job | string | — | — |
--task | string | — | — |
--binding | string | — | — |
--kind | string | — | Root kind, for example task or job |
--host | string | — | — |
--event | string | — | Event name to keep, for example decision-opened (repeatable) |
--push | string | — | Webhook name; also creates the notifier's cursor at the same moment |
Output with --json| Field | Type |
|---|
created | boolean |
generation | integer |
name | string |
operation_id | string |
principal | string |
push | object | null |
schema | string · waystone.subscription.add/1 |
subscription_id | string | 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<name> | string | — | — |
--all-pending | boolean | false | — |
Output with --json| Field | Type |
|---|
activated | array |
operation_id | string |
principal | string |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
Output with --json| Field | Type |
|---|
operation_id | string |
principal | string |
schema | string · waystone.subscription.list/1 |
subscriptions | array |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<name> | string | — | — |
Output with --json| Field | Type |
|---|
generation | integer |
name | string |
operation_id | string |
principal | string |
removed | string · True |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--task | string | — | The Task you hold a lease on |
--job | string | — | A Job you orchestrate (coordinator) |
--id | string | — | The decision's id (default q-<8 hex> from the operation id) |
--question | path | — | A file holding the question text (UTF-8, at most 4096 bytes) |
--option | string | — | One option; repeat for each |
--default | string | — | The safe default, one of the options, applied at the deadline |
--deadline | duration | — | How long until the safe default applies, for example 30m |
Output with --json| Field | Type |
|---|
completed_steps | array |
decision | string |
default | string |
id | string |
operation_id | string |
options | array |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | task:<task>/<decision> or job:<job>/<decision> |
Output with --json| Field | Type |
|---|
answers | array |
choice | string | null |
decision | object |
id | string |
operation_id | string |
principal | string |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | task:<task>/<decision> or job:<job>/<decision> |
--timeout | duration | — | The longest to wait, for example 10m (default: until resolved) |
Output with --json| Field | Type |
|---|
answers | array |
choice | string | null |
id | string |
operation_id | string |
principal | string |
schema | string · waystone.decision.wait/1 |
state | string · open | answered | defaulted |
timed_out | boolean |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | task:<task>/<decision> or job:<job>/<decision> |
--choice | string | — | The chosen option |
--author | string | — | The Project owner whose words this carries (needs a carry grant) |
--via | string | — | The channel the words came through, for example "buildbot (voice)" |
--words | path | — | A file holding the author's words verbatim (UTF-8, at most 2048 bytes) |
Output with --json| Field | Type |
|---|
author | string | null |
choice | string |
completed_steps | array |
decision | string |
id | string |
operation_id | string |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · waystone.decision.answer/1 |
via | string | 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--to | string | — | The recipient principal |
--file | path | — | A file holding the message bytes, sent verbatim (at most 4096 bytes) |
--author | string | — | The Project owner whose words this carries (needs a carry grant) |
--via | string | — | The channel the words came through |
--words | path | — | A file holding the author's words verbatim (UTF-8, at most 2048 bytes) |
Output with --json| Field | Type |
|---|
author | string | null |
bytes | integer |
completed_steps | array |
id | string |
message | string |
operation_id | string |
principal | string |
request_id | integer |
root_version | integer | null |
schema | string · waystone.message.send/1 |
to | string |
via | string | 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<id> | string | — | The message id |
Output with --json| Field | Type |
|---|
accepted_at | integer |
by | object |
bytes_hex | string |
id | string |
length | integer |
message | string |
operation_id | string |
principal | string |
recipient | string |
schema | string · waystone.message.read/1 |
sender | string |
version | integer |
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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<webhook> | string | — | Webhook name: 1 to 64 of [a-z0-9-] |
--project | string | — | Project the webhook belongs to |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
--url | string | — | https:// URL of the bot's webhook routine |
--key-stdin | boolean | false | Read the sender key (printable ASCII, 16 to 4096 bytes) from stdin |
Output with --json| Field | Type |
|---|
generation | integer |
name | string |
operation_id | string |
paused | boolean |
project | string |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<webhook> | string | — | Webhook name: 1 to 64 of [a-z0-9-] |
--project | string | — | Project the webhook belongs to |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
Output with --json| Field | Type |
|---|
generation | integer |
name | string |
operation_id | string |
project | string |
removed | string · True |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<webhook> | string | — | Webhook name: 1 to 64 of [a-z0-9-] |
--project | string | — | Project the webhook belongs to |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
Output with --json| Field | Type |
|---|
generation | integer |
name | string |
operation_id | string |
paused | boolean |
project | string |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
<webhook> | string | — | Webhook name: 1 to 64 of [a-z0-9-] |
--project | string | — | Project the webhook belongs to |
--name | string | — | Listener name |
--store | path | — | Explicit listener store directory |
Output with --json| Field | Type |
|---|
generation | integer |
name | string |
operation_id | string |
paused | boolean |
project | string |
schema | string · 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 argument | Type | Default | Description |
|---|
--profile | path | — | Path to a waystone.profile/1 JSON file |
--secret-fd | integer | — | Inherited file descriptor providing the 32-byte credential secret once |
--operation-id | string | — | Caller-supplied idempotency operation identifier |
--json | boolean | false | Emit versioned machine-readable JSON on stdout |
--project | string | — | Project whose push subscriptions to serve |
--outage-after | duration | 2m | How long the service may be unreachable before default webhooks get service-unavailable |
Output with --json| Field | Type |
|---|
code | string | null |
delivered | boolean |
event | string |
generation | integer |
kind | string · started | cursor | notice | outage |
notice_id | string |
operation_id | string |
owner | string | null |
position | integer | null |
principal | string |
project | string |
reason | string | null |
schema | string · waystone.notifier.event/1 |
started_at | integer |
state | string · connected | unavailable | refused | stopped | over_limit |
status | integer | null |
subscription | string | null |
webhook | string |
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| Code | Retry | Delay (ms) |
|---|
unauthenticated | never | — |
authority_denied | never | — |
stale_generation | never | — |
job_topology_frozen | never | — |
confirmation_required | never | — |
lease_held | never | — |
carry_not_granted | never | — |
claim_required | never | — |
not_applied | never | — |
resync_required | never | — |
operation_payload_changed | never | — |
version_conflict | never | — |
identity_conflict | never | — |
evidence_mismatch | never | — |
not_found | never | — |
revoked | never | — |
not_member | never | — |
wrong_recipient | never | — |
foreign_project | never | — |
stale_ticket | never | — |
invalid_scope | never | — |
invalid_provenance | never | — |
malformed | never | — |
integrity | never | — |
refused | never | — |
service_init_failed | never | — |
listener_busy | never | — |
service_run_failed | never | — |
subscription_exists | never | — |
output_failed | never | — |
missed_log_failed | never | — |
Exit 2
Error codes with exit 2| Code | Retry | Delay (ms) |
|---|
usage | never | — |
unknown_command | never | — |
secret_mode | never | — |
secret_not_found | never | — |
invalid_secret | never | — |
secret_io_error | never | — |
ambiguous_profile | never | — |
profile_not_found | never | — |
invalid_profile | never | — |
profile_io_error | never | — |
non_loopback_endpoint | never | — |
invalid_endpoint | never | — |
invalid_request | never | — |
invalid_lookup | never | — |
message_too_large | never | — |
carry_class_refused | never | — |
invalid_component | never | — |
placement_refused | never | — |
listener_exists | never | — |
listener_not_found | never | — |
ambiguous_listener | never | — |
project_exists | never | — |
project_not_found | never | — |
project_limit_exceeded | never | — |
principal_exists | never | — |
principal_not_found | never | — |
coordinator_exists | never | — |
coordinator_revoke_refused | never | — |
last_reader_revoke_refused | never | — |
credential_context_too_large | never | — |
credential_limit_exceeded | never | — |
listener_io_error | never | — |
service_binary_not_found | never | — |
subscription_not_found | never | — |
subscription_pending | never | — |
invalid_webhook_key | never | — |
invalid_webhook_url | never | — |
webhook_not_found | never | — |
sender_not_found | never | — |
Exit 3
Error codes with exit 3| Code | Retry | Delay (ms) |
|---|
unsettled | same_operation | 5000 |
presentation_unavailable_mid_command | same_operation | 5000 |
protocol_error | never | — |
Exit 4
Error codes with exit 4| Code | Retry | Delay (ms) |
|---|
unavailable | after | 2000 |
overload | after | 250 |