Turbot/Docs

Command reference

turbot-archive export <archive.json> < bearer

Export the signed-in account’s retained companion archive to a new owner-only JSON file.

Install and invoke#

shell
npm install --global github:wisent-ai/turbot-web

skarbiec get <item> --field token | turbot-archive export ./turbot-export.json

# From an installed checkout
skarbiec get <item> --field token | npm run archive -- export ./turbot-export.json

Inputs and environment#

  • The positional path is the destination. It must not already exist.
  • The signed-in account bearer is read from standard input only, never from argv or the environment.
  • TURBOT_API_URL is required and has the same origin rules as import.

Output and state effect#

  • GETs /api/companion-archive with bearer authentication.
  • Creates the destination exclusively with mode 0600, then prints the destination path.

Refusals and safe exits#

  • A missing path, an unsupported command or extra argument, an unsafe API origin, or no bearer on standard input exits 2.
  • An HTTP/API refusal or an existing/unwritable destination exits nonzero. Existing files are never overwritten.