Skip to content
Svanja

Docs Command reference

Changes commands

See what was changed, undo changes in Svanja, and check actions in other services.

svanja changes shows the history of what the assistant, tasks, and people have changed, based on what your key can access. This is the terminal version of the Changes tab on Tasks. Use it to check what a task did or undo a change. To read changes, your key needs the Changes area, which Full access and Read-only keys include. To undo changes, you need Full access or Changes set to Read and write. See Tasks.

Run svanja changes list to view the list of changes, and svanja changes show to inspect a specific one.

Not every change can be undone. Run svanja changes show first and check its actions to see what’s possible. When undo is true, svanja changes undo undoes the change in Svanja. For an action in another service, check and reverse_external tell you whether svanja changes check and svanja changes reverse work for it.

svanja changes check

Check a receipt without dispatching.

svanja changes check <change-id> [flags]

Needs a stored key (svanja login) or SVANJA_API_KEY.

Flag What it does
--body JSON request body (mutually exclusive with --field and --body-file)
--body-file read the JSON request body from a file, or - for stdin
--dry-run preview the request without resolving credentials or contacting the API
--field body field as key=value (repeatable; mutually exclusive with --body and --body-file)
--idempotency-key explicit idempotency key (1-255 visible ASCII bytes); generated when omitted
--query query parameter as key=value (repeatable)
svanja changes check <change-id>
Details

This command calls POST /changes/{change}/check on the public Svanja API. The API remains authoritative for validation, access, capabilities, receipts, conflicts and domain-specific failure reasons. Use --query key=value for filters, cursors, pages or operation-specific query fields.

Build the request body with --field key=value, --body '<json>' or --body-file <path>; field flags cannot be combined with body input. Every real mutation sends an idempotency key so a retried request is not applied twice. Pass --idempotency-key <key> to supply your own. Use --dry-run to preview the method, path, query, body fields and idempotency behavior without resolving credentials or contacting the API.

Output modes: default human detail, --plain copy-safe output, --json stable JSON, and --jq/--template transforms over the documented JSON value.

--include-meta adds safe transport context under meta when --json, --jq or --template is selected. The ordinary value moves under data; output without --include-meta remains unchanged. It cannot be combined with --dry-run.

svanja changes list

List changes.

svanja changes list [flags]

Needs a stored key (svanja login) or SVANJA_API_KEY.

Flag What it does
--query query parameter as key=value (repeatable)
svanja changes list --json
svanja changes list --plain
svanja changes list --jq .
svanja changes list --template '{{.}}'
svanja changes list --json --include-meta
Details

This command calls GET /changes on the public Svanja API. The API remains authoritative for validation, access, capabilities, receipts, conflicts and domain-specific failure reasons. Use --query key=value for filters, cursors, pages or operation-specific query fields.

Output modes: default human detail, --plain copy-safe output, --json stable JSON, and --jq/--template transforms over the documented JSON value.

--include-meta adds safe transport context under meta when --json, --jq or --template is selected. The ordinary value moves under data; output without --include-meta remains unchanged. It cannot be combined with --dry-run.

svanja changes reverse

Reverse an external change.

svanja changes reverse <change-id> [flags]

Needs a stored key (svanja login) or SVANJA_API_KEY.

Flag What it does
--body JSON request body (mutually exclusive with --field and --body-file)
--body-file read the JSON request body from a file, or - for stdin
--dry-run preview the request without resolving credentials or contacting the API
--field body field as key=value (repeatable; mutually exclusive with --body and --body-file)
--idempotency-key explicit idempotency key (1-255 visible ASCII bytes); generated when omitted
--query query parameter as key=value (repeatable)
Details

This command calls POST /changes/{change}/reverse on the public Svanja API. The API remains authoritative for validation, access, capabilities, receipts, conflicts and domain-specific failure reasons. Use --query key=value for filters, cursors, pages or operation-specific query fields.

Build the request body with --field key=value, --body '<json>' or --body-file <path>; field flags cannot be combined with body input. Every real mutation sends an idempotency key so a retried request is not applied twice. Pass --idempotency-key <key> to supply your own. Use --dry-run to preview the method, path, query, body fields and idempotency behavior without resolving credentials or contacting the API.

Output modes: default human detail, --plain copy-safe output, --json stable JSON, and --jq/--template transforms over the documented JSON value.

--include-meta adds safe transport context under meta when --json, --jq or --template is selected. The ordinary value moves under data; output without --include-meta remains unchanged. It cannot be combined with --dry-run.

svanja changes show

Show a change.

svanja changes show <change-id> [flags]

Needs a stored key (svanja login) or SVANJA_API_KEY.

Flag What it does
--query query parameter as key=value (repeatable)
svanja changes show <change-id> --json
svanja changes show <change-id> --plain
svanja changes show <change-id> --jq .
svanja changes show <change-id> --template '{{.}}'
svanja changes show <change-id> --json --include-meta
Details

This command calls GET /changes/{change} on the public Svanja API. The API remains authoritative for validation, access, capabilities, receipts, conflicts and domain-specific failure reasons. Use --query key=value for filters, cursors, pages or operation-specific query fields.

Output modes: default human detail, --plain copy-safe output, --json stable JSON, and --jq/--template transforms over the documented JSON value.

--include-meta adds safe transport context under meta when --json, --jq or --template is selected. The ordinary value moves under data; output without --include-meta remains unchanged. It cannot be combined with --dry-run.

svanja changes undo

Undo a change.

svanja changes undo <change-id> [flags]

Needs a stored key (svanja login) or SVANJA_API_KEY.

Flag What it does
--body JSON request body (mutually exclusive with --field and --body-file)
--body-file read the JSON request body from a file, or - for stdin
--dry-run preview the request without resolving credentials or contacting the API
--field body field as key=value (repeatable; mutually exclusive with --body and --body-file)
--idempotency-key explicit idempotency key (1-255 visible ASCII bytes); generated when omitted
--query query parameter as key=value (repeatable)
svanja changes show <change-id> --json
svanja changes undo <change-id>
Details

This command calls POST /changes/{change}/undo on the public Svanja API. The API remains authoritative for validation, access, capabilities, receipts, conflicts and domain-specific failure reasons. Use --query key=value for filters, cursors, pages or operation-specific query fields.

Build the request body with --field key=value, --body '<json>' or --body-file <path>; field flags cannot be combined with body input. Every real mutation sends an idempotency key so a retried request is not applied twice. Pass --idempotency-key <key> to supply your own. Use --dry-run to preview the method, path, query, body fields and idempotency behavior without resolving credentials or contacting the API.

Output modes: default human detail, --plain copy-safe output, --json stable JSON, and --jq/--template transforms over the documented JSON value.

--include-meta adds safe transport context under meta when --json, --jq or --template is selected. The ordinary value moves under data; output without --include-meta remains unchanged. It cannot be combined with --dry-run.

svanja changes

Inspect and undo changes and receipts.

svanja changes [flags]

Works without a key.

svanja changes --help
Details

Use this family to call native Svanja public API operations with the active team API key. The server owns validation, access checks, authorization, receipts and domain-specific behavior; the CLI supplies product identity, explicit arguments, stable output modes and safe local request handling.

This page as plain Markdown, for AI tools: changes.md

Try Svanja with your own mailbox

Sign up now, and you get an email when your account is ready.