CLI reference
Every pols command with its usage, examples and flags, generated from the CLI's own help.
These pages are generated from the --help output of the pols CLI, so they always match the version recorded in the docs repository. Run pols <command> --help for the same text in your terminal.
pols manages pols.so sandboxes: full Ubuntu 24.04 VMs with root, systemd and
Docker, hosted in Germany.
Authenticate with `pols signup --email <your address>` (which also logs
in to an existing account), `pols login` with a key, or the POLS_API_KEY
environment variable.
Sandboxes are named by ID (sbx_...) or by name. Every command takes --json
for machine-readable output.
Commands
| Command | Description |
|---|---|
pols balance |
Show your org’s credit balance and the credit it was granted |
pols browser |
Control a sandbox’s Chrome over the Chrome DevTools Protocol |
pols checkpoint |
Take, list and delete checkpoints of a sandbox’s disk |
pols computer |
Use a sandbox’s desktop: screenshots, mouse and keyboard |
pols cp |
Copy a file between this machine and a sandbox |
pols db |
Make and manage PostgreSQL databases |
pols deploys |
Start, list and follow a site’s deploys |
pols desktop |
Print a link to the sandbox’s desktop in the browser |
pols domains |
Serve sites and sandbox ports at custom domains |
pols egress |
Replace a sandbox’s outbound network policy, at once if it runs |
pols exec |
Run a command in a sandbox, streaming its output |
pols files |
List directories, watch files and track changes in a sandbox |
pols fork |
Fork a sandbox into a new running sandbox with a copy of its disk |
pols get |
Show one sandbox |
pols host |
Publish a sandbox port over HTTPS, or list published ports |
pols invoices |
List your org’s invoices, or download one as a PDF |
pols login |
Store an API key (stdin, or POLS_API_KEY), log in by email like pols signup (--email), or with a handoff link (--handoff) |
pols logout |
Forget the stored API keys |
pols ls |
List sandboxes |
pols mcp |
Serve the pols tools to an AI agent over MCP (stdio) |
pols new |
Create a sandbox and wait until it runs |
pols org |
Show your org, your role in it, its quotas and what it uses; list and switch orgs |
pols processes |
List, follow and signal a sandbox’s detached processes |
pols publish |
Publish a directory as a static site at <name>.on.pols.so |
pols rename |
Rename a sandbox; its addresses (on its host label) do not change |
pols resize |
Change a sandbox’s size; a running one restarts, its disk and files stay |
pols resume |
Resume a stopped sandbox |
pols rm |
Delete a sandbox and its disk |
pols rollback |
Roll a sandbox’s disk back to a checkpoint, discarding everything newer |
pols runner |
Run self-hosted GitHub Actions runners in sandboxes |
pols signup |
Create a pols.so account, or log in to yours, by approving an email |
pols sites |
List and manage published sites |
pols skill |
Install the pols agent skill, so agents know the CLI without reading --help |
pols ssh |
Open an SSH session in a sandbox through the SSH gateway |
pols ssh-key |
Manage the SSH public keys that open your org’s sandboxes |
pols stats |
Show the CPU, memory and disk use of a sandbox, or of all running sandboxes |
pols stop |
Stop a sandbox (disk is kept; stopped time is free) |
pols subscription |
Show, start or cancel your org’s monthly subscription |
pols template |
Save sandboxes as templates, build them from images, and manage them |
pols timeline |
Set whether a sandbox timeline captures content |
pols topup |
Top up your org’s prepaid credit, or list its top-ups |
pols usage |
Show priced CPU, RAM and disk usage (default: this month) |
pols users |
Manage a sandbox’s Linux users |
pols vault |
See your org’s vault of passwords and environment variables for sandboxes |
pols version |
Print the version |
Global flags
Every command accepts these:
--api-url pols login API URL (env POLS_API_URL; default from pols login, else https://api.pols.so)
-h, --help help for pols
--json print machine-readable JSON