PandaStack

CLI reference

pandastack — the official CLI.

pandastack <command> [flags]

Global flags

FlagDefaultDescription
--api$PANDASTACK_APIAPI base URL
--api-key$PANDASTACK_API_KEYAPI token
--workspacefrom tokenOverride workspace scope
--jsonfalseMachine-readable JSON output

Auth

pandastack login              # browser OAuth
pandastack logout
pandastack whoami
pandastack tokens ls
pandastack tokens create --label "my-laptop" --expires 90d
pandastack tokens revoke tok_xxx

Sandboxes

pandastack sandboxes create \
    --template code-interpreter \
    --cpu 1 --memory 512

pandastack sandboxes ls [--all] [--template foo]
pandastack sandboxes describe <id>
pandastack sandboxes exec <id> -- python -c 'print(1+1)'
pandastack sandboxes stream <id> -- bash -c 'for i in {1..5}; do echo $i; sleep 1; done'
pandastack sandboxes ssh <id>           # interactive PTY
pandastack sandboxes logs <id> [--follow]
pandastack sandboxes pause <id>
pandastack sandboxes resume <id>
pandastack sandboxes hibernate <id>
pandastack sandboxes wake <id>
pandastack sandboxes fork <id>
pandastack sandboxes snapshot <id>
pandastack sandboxes rm <id>

Templates

pandastack templates ls
pandastack templates describe <name>
pandastack templates build <name> <path>   # path = dir with Dockerfile
pandastack templates push <name>           # push to registry
pandastack templates rm <name>

Volumes

pandastack volumes create --size 10G <name>
pandastack volumes ls
pandastack volumes attach <vol-id> <sandbox-id> --mount /mnt/data
pandastack volumes detach <vol-id> <sandbox-id>
pandastack volumes rm <vol-id>

Files

pandastack files ls <sandbox-id> /etc
pandastack files cat <sandbox-id> /etc/hostname
pandastack files cp ./localfile <sandbox-id>:/tmp/foo
pandastack files cp <sandbox-id>:/tmp/foo ./localfile

Deploy

pandastack deploy gcp [--region us-central1] [--bake-templates]
pandastack deploy aws [--region us-east-1] [--bake-templates] [--destroy]
pandastack deploy mac-m1-local [up|down|status]

Shell completions

pandastack completion bash > /etc/bash_completion.d/pandastack
pandastack completion zsh  > ~/.zsh/completions/_pandastack
pandastack completion fish > ~/.config/fish/completions/pandastack.fish

On this page