New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@capsulate/cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capsulate/cli

The Capsulate CLI — launch and drive cloud sandboxes (capsules) from your terminal. Full parity with the dashboard.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

cap — the Capsulate CLI

Launch and drive isolated cloud sandboxes ("capsules") from your terminal. Full parity with the Capsulate dashboard and API.

Install

npm install -g @capsulate/cli

Authenticate

# Recommended for agents / CI — paste an API key from the dashboard (Settings → API & Keys):
cap login --api-key cap_live_xxx

# Or log in interactively (for team / billing administration):
cap login --email you@example.com

Credentials live in ~/.capsulate/config.json. You can also use env vars (CAPSULATE_API_KEY, CAPSULATE_BASE_URL, CAPSULATE_TEAM_ID) or global flags (--api-key, --base-url, --team, --json).

Common commands

cap launch -t ubuntu-22.04-headless -s 2c4g --wait   # launch + wait for ACTIVE
cap ls                                                # list active capsules
cap exec <id> python3 -c "print(42)"               # run a command
cap run <id> "print(40+2)" --lang python              # run a snippet
cap cp ./app.py <id>:/workspace/app.py                # upload a file
cap cp <id>:/workspace/out.txt ./out.txt              # download a file
cap env set <id> NODE_ENV=production                   # set env vars
cap shot <id> -o frame.png                            # desktop screenshot
cap click <id> 100 200                                # computer-use
cap snapshot create <id> -n before-upgrade            # snapshot
cap volume create data 10                             # 10 GB persistent volume
cap share create <id> teammate@x.com -p interactive   # share a capsule
cap capsule destroy <id>                              # tear down

Add --json to any command for machine-readable output. Run cap <command> --help for the full option list, or cap docs to open the documentation.

Full command map

AreaCommands
Authlogin, configure, whoami, logout
Capsuleslaunch, ls, capsule create/list/history/get/destroy/suspend/resume
Interactionexec, run, cp, env set
Computer-useshot, click, move, scroll, drag, type, key
Snapshotssnapshot create/list/delete/restore
Recordingsrecord start/stop/status/list/download
Volumesvolume create/list/get/delete/attach/detach
Sharingshare create/list/revoke, port forward/rm
Catalogcatalog, bundles, templates, pricing, availability
Accountteam list/members, billing balance, apikey list/create/revoke

Keywords

capsulate

FAQs

Package last updated on 12 Sep 2026

Related posts