Tarvena CLI conventions
Invocation:
tarvena [--local] <domain> <command> ....Default transport: the cloud server (
https://tarvena.plor the server saved by login). Cloud mode supports project list/get and document list/get/body-info/read-body/write-body.For the broader runtime commands below and verified native body paths, add
--localaftertarvenato attach to an open desktop runtime and its selected account/organization. Cloud login and the desktop session are separate.Success output: one JSON value on stdout.
Thrown command failures output one JSON object on stderr with
{ "ok": false, "error": { "code", "message" } }.Commands can return a nonzero exit code while still writing their result to stdout. Cost commands use
{ "ok": false, "errors": [...] }on stdout for handled command/input failures.Normal successful exit code:
0.CLI usage or invalid command exit code:
2.Conflict-like failures usually exit
3.Validation, not-found, unsafe input, bundle, document, and export-preflight failures usually exit
4.Runtime transport failures usually exit
1, except JSON-RPC invalid params map to2and validation/not-found map to4.Project-scoped commands require
--project <project-id>, including catalog, preset and template reads, guides, location search, point information, and Wody Polskie status. A missing flag reportsMissing required flag: --project.Arguments are parsed as
--flag value. The only bare boolean flags accepted by the shared parser are--include-candidates,--include-notes,--focus,--present,--strict-totals, and--wait.Other boolean flags must be passed as
--flag trueor--flag false.CSV flags use comma-separated values with whitespace trimmed, for example
--device-ids d1,d2.JSON input flags are mutually exclusive with their matching file flags, for example
--config-jsoncannot be combined with--config-file.Start with reads and take IDs from list and get commands, never from names.
delete,import,write-body,config update|patch,design update,refresh-section|refresh-generated-block|reconcile --apply trueand evidence-policy setters change state.Prefer file JSON input for large payloads.
When a command exits nonzero, read both stderr and stdout.
Steps without a CLI equivalent
help agent-docs returns commands:null with a handoff when a skill action needs the
signed-in remote MCP connection. Complete that action there before continuing with the CLI.
For maps/features/query, obtain feature IDs, geometry and current versions through that handoff
before editing an unknown object. map layers list returns layer metadata and cannot supply
feature versions. Pass the selected feature's current version in the edit precondition.
configure-operat, refresh-operat and point-catchment also need that handoff: configuration
patches alone do not create and reconcile an operat, a section refresh does not reconcile its
structure, and the public catchment analysis file needs transformation before native calculation
creation. docx-forms plan previews drafts; it does not return the EGiB recipient plan.
Revisions and retries
Read the current value before a write and retain the returned revision or field conditions. Keep the complete command, JSON inputs, and change ID or presentation attempt unchanged until the outcome is known. For commands that accept a caller change ID, request ID, or write envelope, reuse it on an identical retry. Commands that allocate their own attempt on each invocation cannot recover by repeating the CLI command. Reread the affected resource before deciding whether another write is needed. After a definitive conflict, reread, reconcile the change, and allocate a new attempt. Do not advance a presentation lane while a write is uncertain. The CLI has no write-status command. If an identical retry cannot settle the outcome, report it and stop further writes in that lane.
Sign in as the user
For cloud commands, run tarvena auth login or add --no-browser to print instructions. Show the approval code or link to the user and wait for their browser approval. Never approve on their behalf. tarvena auth status reports the account. tarvena auth logout ends the CLI session without signing the browser out.
For --local, the user opens Tarvena and signs in there. Organization selection and sign-out happen in the desktop app.
Never ask for passwords, tokens, or session files. Never read, copy, or paste the CLI's stored session. The CLI stores its session privately on the machine. On HTTP 401, ask the user to sign in again and retry a read once. On HTTP 403, report access denied without requesting another sign-in. There are no API keys or service accounts.
Which source to trust
- The current document, project, and command results are authoritative.
- For command syntax, the installed docs from
tarvena help agent-docsoverride the web copy. An unknown-command or unknown-flag error is final. - For HTTP calls, signed-in discovery from
GET /api/v1/actions, action schemas, andGET /api/v1/openapi.jsonoverrides the published preview reference. - The web copy helps readers learn about Tarvena before installing and agents without an install.