Documentation / Install and connect the CLI
Install and connect the CLI
Install the SuperPlane CLI, authenticate with an API token and inspect workspace tasks.
Use the SuperPlane command-line interface (CLI) to inspect workspaces and tasks from your terminal or scripts. This guide covers installation, API token authentication and read-only commands for users who already have access to a SuperPlane organization.
Install the CLI
Section titled “Install the CLI”The npm package supports macOS and Linux on x64 and arm64. With Node.js and npm installed, run:
npm install -g @superplane/clisuperplane --helpThe package downloads the matching platform binary from the SuperPlane installer service. For installation without npm, download and review the installer, then run it:
curl -fsSL https://install.superplane.com/install.sh -o install-superplane.shsh install-superplane.shsuperplane --helpWindows is not supported by the npm distribution. See the CLI distribution instructions for supported platforms and installation alternatives.
Authenticate with an API token
Section titled “Authenticate with an API token”Obtain an API token for the organization you intend to use. Set the installation URL and token in your shell; replace your_access_token_here with your token:
export SUPERPLANE_URL=https://app.superplane.comexport SUPERPLANE_TOKEN=your_access_token_heresuperplane whoamiFor unattended scripts, inject the token through your secret manager or CI secret configuration. Do not commit tokens to source control or include them in shared logs.
To save the organization as your current CLI context, run:
superplane connect "$SUPERPLANE_URL" "$SUPERPLANE_TOKEN"The command validates the token and saves a local context. Environment variables override the saved context. To use the saved context in later commands, remove the environment overrides:
unset SUPERPLANE_URL SUPERPLANE_TOKENsuperplane whoamiInspect workspaces and tasks
Section titled “Inspect workspaces and tasks”List the workspaces you can access:
superplane workspace listSelect an active workspace, replacing your_workspace_key with a key from the list, then list its tasks:
superplane workspace active your_workspace_keysuperplane tasks listFor structured output in a script, request JSON:
superplane tasks list --output jsonUse command help to inspect the options supported by your installed version:
superplane workspace --helpsuperplane tasks --helpConnect to a self-hosted installation
Section titled “Connect to a self-hosted installation”Set SUPERPLANE_URL to your installation’s public origin and use a token issued by that installation. Do not append /api/v1 to the base URL. See self-hosting for deployment setup.
Related tools
Section titled “Related tools”- Connect an MCP client for editor and agent access through OAuth.
- API reference for endpoint definitions and client generation.