Skip to main content

Ductape CLI

The Ductape CLI (@ductape/cli) lets you manage your Ductape workspace, applications, resources, and local projects directly from your terminal.

Install​

Install the CLI globally:

npm install -g @ductape/cli

Verify the installation:

ductape --help

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
Resourcesresources <type> <verb>
Cloudcloud connections …, cloud resources …
Deploydeploy releases …, deploy plans …, deploy deployments …, deploy builds …, deploy versions … (reference)
Database runtimedb connect, db query, db context
Database migrationsdb schema generate, db migrate, db migrate status, db migrate rollback
Graph runtimegraph connect, graph query
Secretssecrets create|list|get|update|delete, secrets-scan-env (save the secrets in a .env)
Generategenerate payload, generate snippet
Shellcompletion bash|zsh

SDK runtime defaults​

Applications built with @ductape/sdk specify their product and environment when creating the SDK client.

The CLI uses the local project configuration stored in ductape/config.json, so you don't need to specify these values on every command.

See SDK runtime defaults for more information.

Documentation map​

  • Authentication — login, OAuth, and profiles
  • Workspaces — listing and switching workspaces
  • Project linking — ductape/config.json and link
  • Local platform — running the local Ductape platform
  • Products — product management
  • Apps — integration app management
  • Resources — component CRUD operations
  • Cloud — cloud connections and resources
  • Database runtime & migrations — schema.json, migration files, apply and rollback
  • Graph runtime — graph queries
  • Secrets — workspace secrets
  • Generate — payload and code generation
  • Troubleshooting — common issues and fixes

API parity​

The CLI and Workbench use the same backend APIs, ensuring that operations performed from the terminal behave consistently with the web interface.

CLI vs MCP Server​

CLIMCP Server
AuthenticationUser JWT + encrypted requestspublishable_key per request
Payload formatAES-encryptedPlain JSON
Primary use caseDevelopers, CI/CD, local operationsAI agents with scoped access