For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI

Deploy and manage your PandaStack infrastructure from the terminal.

The panda CLI lets you deploy projects, manage databases, trigger cronjobs, and query your infrastructure — all from your terminal.

Installation

npm install -g @pandastack/cli

Requirements: Node.js >= 18

Alternative: pre-built binaries

Download a standalone binary (no Node.js required):

Platform
Download

macOS (x64)

Linux (x64)

Windows (x64)

Quickstart

# 1. Get an API token from https://dashboard.pandastack.io/settings → API Tokens
panda login

# 2. Check your resources
panda status

# 3. Deploy a project
panda projects deploy my-app

# 4. Ask the AI assistant
panda ask "why did my last deploy fail?"

Authentication

The CLI uses API tokens for authentication. Tokens start with psk_ and are scoped to your account.

Get a token: Dashboard → Settings → API Tokens → Generate

After login, your credentials are saved at ~/.panda/config.json.

Configuration

Config is stored at ~/.panda/config.json:

Field
Description

token

Your API token

org_id

Active organization ID

org_name

Active organization name

api_url

API base URL (change for self-hosted)

Switching organizations

Global flags

Flag
Description

--json

Output raw JSON (available on most commands)

--help

Show help for any command

--version

Show CLI version

Next steps

Last updated