Skip to content
Svanja

Docs Command reference

Skill commands

Find, read, save, run, import and export skills.

A skill is a SKILL.md file in a Space that tells the assistant how you want a job done. You can find your skills in Skills. From the command line, svanja skill discover lists the skills your key can reach, and svanja skill source prints one so you can edit it in your own editor. To run a skill and start a task from a script, use svanja skill run. Reading skills requires the Skills area, which Full access and Read-only keys include. Saving or running a skill requires Full access or Skills set to Read and write. See Skills, tools and templates for more.

You can also move skills as packages with svanja skill import and svanja skill export. Both commands start work that finishes in the background. For an import, pass the package file and the target Space. Svanja prepares a preview that you check and finish in the app. For an export, pass the skill’s Space and path as query parameters:

svanja skill import --file ./monthly-report.zip --field space_id=SPACE_ID
svanja skill export --query space_id=SPACE_ID --query path=skills/monthly-report/SKILL.md

svanja skill discover

Discover skills.

svanja skill discover [flags]

Needs a stored key (svanja login) or SVANJA_API_KEY.

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

This command calls GET /skills 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 skill export

Start a skill export.

svanja skill export [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 skill export --query space_id=<space-id> --query path=skills/monthly-report/SKILL.md
Details

This command calls POST /skills/exports 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 skill import

Import a skill package.

svanja skill import [flags]

Needs a stored key (svanja login) or SVANJA_API_KEY.

Flag What it does
--dry-run preview the request without resolving credentials or contacting the API
--field multipart form field as key=value (repeatable)
--file local package file to upload
--idempotency-key explicit idempotency key (1-255 visible ASCII bytes); generated when omitted
--query query parameter as key=value (repeatable)
svanja skill import --file ./skill.zip --field space_id=<space-id> --json
svanja skill import --file ./skill.zip --field space_id=<space-id> --plain
svanja skill import --file ./skill.zip --field space_id=<space-id> --jq .
svanja skill import --file ./skill.zip --field space_id=<space-id> --template '{{.}}'
svanja skill import --file ./skill.zip --field space_id=<space-id> --json --include-meta
svanja skill import --file ./skill.zip --field space_id=<space-id> --dry-run --json
Details

This command calls POST /skills/imports 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.

Use --file to upload the local package as multipart/form-data and --field key=value for additional form fields. Every real upload sends an idempotency key. Pass --idempotency-key <key> to supply your own. Use --dry-run to preview the form fields and file path 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 skill invoke

Invoke a skill as live Task work.

svanja skill invoke [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 skill invoke --field space_id=<space-id> --field path=skills/monthly-report/SKILL.md
Details

This command calls POST /skills/runs 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 skill run

Run a skill as live Task work.

svanja skill run [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 skill run --field space_id=<space-id> --field path=skills/monthly-report/SKILL.md
Details

This command calls POST /skills/runs 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 skill save

Save a new skill.

svanja skill save [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 /skills 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 skill show

Show a skill.

svanja skill show <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 skill show <space-id> <path> --json
svanja skill show <space-id> <path> --plain
svanja skill show <space-id> <path> --jq .
svanja skill show <space-id> <path> --template '{{.}}'
svanja skill show <space-id> <path> --json --include-meta
Details

This command calls GET /skills/source 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 skill source

Show skill source.

svanja skill source <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 skill source <space-id> <path> --json
svanja skill source <space-id> <path> --plain
svanja skill source <space-id> <path> --jq .
svanja skill source <space-id> <path> --template '{{.}}'
svanja skill source <space-id> <path> --json --include-meta
Details

This command calls GET /skills/source 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 skill update

Update skill source with a revision guard.

svanja skill update [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
--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)
Details

This command calls PATCH /skills/source 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.

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 skill

Discover, edit and run skills.

svanja skill [flags]

Works without a key.

svanja skill --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: skills.md

Try Svanja with your own mailbox

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