Getting Started
Install and set up the CUA CLI
The Cua CLI is a command-line tool for managing your Cua cloud sandboxes. Create, start, stop, and connect to sandboxes directly from your terminal.
Installation
curl -LsSf https://cua.ai/cli/install.sh | shpowershell -ExecutionPolicy ByPass -c "irm https://cua.ai/cli/install.ps1 | iex"This installs Bun and the CUA CLI. Verify with:
cua --helpAuthentication
Login to your CUA account:
# Browser-based login
cua auth login
# Or with API key
cua auth login --api-key sk-your-api-key-hereGenerate a .env file for your project:
cua auth envQuick Start
# Create a sandbox
cua create --os linux --size small --region north-america
# List sandboxes
cua list
# Open VNC in browser
cua vnc my-sandbox
# Stop a sandbox
cua stop my-sandboxNext Steps
- Command Reference - Full list of available commands
Was this page helpful?