Skip to content
pols.so docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

pols new

Create a sandbox and wait until it runs

Create a sandbox and wait until it runs

Usage

pols new [flags]

Examples

pols new --name web --size large
pols new --template node-app --secret ANTHROPIC_API_KEY
pols new --env NODE_ENV=production --secret DATABASE_URL --secret DB_PASSWORD
pols new --name app --env-file .env
pols new --name locked --egress allowlist --allow github.com --allow '*.pypi.org' --allow 203.0.113.10/32
pols new --name offline --egress none
pols new --name ci-run --ttl 2h

Flags

    --allow stringArray        CIDR prefix or host name (example.com, *.example.com) the sandbox may reach (repeatable; requires --egress allowlist)
    --capture-content          record masked command output, typed text and screenshots in the timeline (off by default)
    --egress string            outbound network policy (default default): default (public internet), allowlist (only --allow destinations) or none
-e, --env stringArray          environment variable for every command: KEY copies it from your environment, KEY=VALUE sets it (repeatable)
    --env-file stringArray     read KEY=VALUE lines from a file (repeatable; --env wins)
-h, --help                     help for new
    --idempotency-key string   make the create safe to retry: run again with the same key and flags within 24 hours, it returns the sandbox the first run made instead of making another
    --name string              name (lowercase letters, digits, dashes; default a generated one like braveotter)
    --no-wait                  return at once instead of waiting for the sandbox to get there
    --secret stringArray       vault entry to set as the environment variable of its name (repeatable; manage the vault at my.pols.so/account)
    --size string              small, default, large or xlarge (default small, or the smallest that holds the template's disk)
    --template string          template ID or name (default ubuntu-24.04; eokit-default adds LibreOffice and the office tools)
    --ttl duration             delete the sandbox this long after creating it, running or stopped (from 1m to 720h, like 30m or 2h; default never)
    --wait-timeout duration    how long to wait (default 5m0s)

The global flags work with this command too.