Skip to main content

Ductape CLI

The Ductape CLI (@ductape/cli) is the terminal counterpart to the Workbench. It uses the same APIs:

  • REST + Bearer token for account, workspaces, products, and apps
  • Encrypted proxy (x-access-token + AES payload) for component CRUD and runtime DB/graph operations

Install

cd cli
npm install && npm run build && npm link

Quick reference

AreaCommands
Authlogin, logout, whoami
Workspacesworkspaces list, workspaces use, workspaces current
Profilesprofiles list, profiles use local|cloud
Productsproducts list|get|create|update|delete
Appsapps list|get|create|update|delete|import
Projectinit, link, unlink
Local stackinstall, start, stop, status
Componentsresources <type> <verb>
Cloudcloud connections …, cloud resources …
DB runtimedb connect, db query, db context
Graph runtimegraph connect, graph query
Secretssecrets create|list|get|update|delete
Snippetsgenerate payload, generate snippet
Shellcompletion bash|zsh

SDK runtime defaults

In app code (@ductape/sdk), set product and env on the constructor only. The CLI uses .ductape/config.json instead. See SDK runtime defaults.

Documentation map

API parity

CLI REST commands use the same Nest routes as the Workbench (/apps/v1, /integrations/v1, etc.) via the API gateway. See cli/API_PARITY.md in the repo.

CLI vs MCP server

CLIMCP server
AuthUser JWT + encryptionpublishable_key per call
PayloadAES encryptedPlain JSON
Use caseDevelopers, CI, local opsAI agents with scoped keys

Development

cd cli
npm run build
npm test
npm run dev -- whoami