svanja files download
Download source content.
svanja files download <space-id> <path> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--max-bytes
|
maximum download size in bytes (up to 1 GiB) |
--output
|
new destination file (required; never overwritten) |
--query
|
query parameter as key=value (repeatable) |
--sha256
|
required expected SHA-256 hash; verified before the file is published |
svanja files download <space-id> <path> --output ./download.bin --sha256 <sha256> --json
svanja files download <space-id> <path> --output ./download.bin --sha256 <sha256>
svanja files download <space-id> <path> --output ./download.bin --sha256 <sha256> --jq .sha256
svanja files download <space-id> <path> --output ./download.bin --sha256 <sha256> --template '{{.path}}'
svanja files download <space-id> <path> --output ./download.bin --sha256 <sha256> --json --include-meta
Details
This command calls GET /spaces/{space}/files/download 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 is required and must name a new file. Existing files and symlinks are never replaced. Binary bytes never go to the terminal. --sha256 is required and is verified before publishing the file. JSON output is a stable receipt with path, byte count, sha256 and verification status.
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 files history
Show source history.
svanja files history <space-id> <path> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja files history <space-id> <path> --json
svanja files history <space-id> <path> --plain
svanja files history <space-id> <path> --jq .
svanja files history <space-id> <path> --template '{{.}}'
svanja files history <space-id> <path> --json --include-meta
Details
This command calls GET /spaces/{space}/files/history 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 files list
List source entries.
svanja files list <space-id> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja files list <space-id> --json
svanja files list <space-id> --plain
svanja files list <space-id> --jq .
svanja files list <space-id> --template '{{.}}'
svanja files list <space-id> --json --include-meta
Details
This command calls GET /spaces/{space}/files 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 files read
Read source content.
svanja files read <space-id> <path> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja files read <space-id> <path> --json
svanja files read <space-id> <path> --plain
svanja files read <space-id> <path> --jq .
svanja files read <space-id> <path> --template '{{.}}'
svanja files read <space-id> <path> --json --include-meta
Details
This command calls GET /spaces/{space}/files/content 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 files save
Save source content with a revision guard.
svanja files save <space-id> <path> [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 |
--create
|
assert the source does not exist and send expected_revision:null |
--dry-run
|
preview the request without resolving credentials or contacting the API |
--expected-revision
|
required source revision guard for conflict-safe writes |
--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 files save <space-id> notes/status.md --expected-revision <revision> --field content="Export fixed, waiting for Anna's OK."
svanja files save <space-id> notes/call-2026-11-25.md --create --field content="# Call with Anna"
Details
This command calls PUT /spaces/{space}/files/content 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.
--expected-revision is required for source writes so noninteractive saves never silently overwrite a newer revision.
Use --create instead of --expected-revision to assert that the source must not already exist.
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 files search
Search source entries.
svanja files search <space-id> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja files search <space-id> --json
svanja files search <space-id> --plain
svanja files search <space-id> --jq .
svanja files search <space-id> --template '{{.}}'
svanja files search <space-id> --json --include-meta
Details
This command calls GET /spaces/{space}/files/search 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 files
Manage files in Spaces.
svanja files [flags]
Works without a key.
svanja files --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.
svanja notes download
Download source content.
svanja notes download <space-id> <path> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--max-bytes
|
maximum download size in bytes (up to 1 GiB) |
--output
|
new destination file (required; never overwritten) |
--query
|
query parameter as key=value (repeatable) |
--sha256
|
required expected SHA-256 hash; verified before the file is published |
svanja notes download <space-id> <path> --output ./download.bin --sha256 <sha256> --json
svanja notes download <space-id> <path> --output ./download.bin --sha256 <sha256>
svanja notes download <space-id> <path> --output ./download.bin --sha256 <sha256> --jq .sha256
svanja notes download <space-id> <path> --output ./download.bin --sha256 <sha256> --template '{{.path}}'
svanja notes download <space-id> <path> --output ./download.bin --sha256 <sha256> --json --include-meta
Details
This command calls GET /spaces/{space}/files/download 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 is required and must name a new file. Existing files and symlinks are never replaced. Binary bytes never go to the terminal. --sha256 is required and is verified before publishing the file. JSON output is a stable receipt with path, byte count, sha256 and verification status.
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 notes history
Show source history.
svanja notes history <space-id> <path> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja notes history <space-id> <path> --json
svanja notes history <space-id> <path> --plain
svanja notes history <space-id> <path> --jq .
svanja notes history <space-id> <path> --template '{{.}}'
svanja notes history <space-id> <path> --json --include-meta
Details
This command calls GET /spaces/{space}/files/history 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 notes list
List source entries.
svanja notes list <space-id> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja notes list <space-id> --json
svanja notes list <space-id> --plain
svanja notes list <space-id> --jq .
svanja notes list <space-id> --template '{{.}}'
svanja notes list <space-id> --json --include-meta
Details
This command calls GET /spaces/{space}/files 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 notes read
Read source content.
svanja notes read <space-id> <path> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja notes read <space-id> <path> --json
svanja notes read <space-id> <path> --plain
svanja notes read <space-id> <path> --jq .
svanja notes read <space-id> <path> --template '{{.}}'
svanja notes read <space-id> <path> --json --include-meta
Details
This command calls GET /spaces/{space}/files/content 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 notes save
Save source content with a revision guard.
svanja notes save <space-id> <path> [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 |
--create
|
assert the source does not exist and send expected_revision:null |
--dry-run
|
preview the request without resolving credentials or contacting the API |
--expected-revision
|
required source revision guard for conflict-safe writes |
--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 notes save <space-id> notes/status.md --expected-revision <revision> --field content="Export fixed, waiting for Anna's OK."
svanja notes save <space-id> notes/call-2026-11-25.md --create --field content="# Call with Anna"
Details
This command calls PUT /spaces/{space}/files/content 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.
--expected-revision is required for source writes so noninteractive saves never silently overwrite a newer revision.
Use --create instead of --expected-revision to assert that the source must not already exist.
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 notes search
Search source entries.
svanja notes search <space-id> [flags]
Needs a stored key (svanja login) or SVANJA_API_KEY.
| Flag |
What it does |
--query
|
query parameter as key=value (repeatable) |
svanja notes search <space-id> --json
svanja notes search <space-id> --plain
svanja notes search <space-id> --jq .
svanja notes search <space-id> --template '{{.}}'
svanja notes search <space-id> --json --include-meta
Details
This command calls GET /spaces/{space}/files/search 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 notes
Manage note source in Spaces.
svanja notes [flags]
Works without a key.
svanja notes --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.