@omnirun/cli
v0.7.0
Published
CLI for managing OmniRun sandboxes
Readme
@omnirun/cli
CLI for basic OmniRun sandbox creation and interaction, built on @omnirun/sdk.
Primary command: omni
Compatibility alias: omnirun
Install (local dev)
cd /Users/dafmulder/Documents/code/omnirun-cli
npm install
npm run build
npm linkThen run:
omni --helpAuth bootstrap
Create or update .env with API URL and key:
omni auth init --api-url https://api.omnirun.io --api-key <your_key>This writes:
OMNIRUN_API_URLOMNIRUN_API_KEY
By default it writes to ./.env. You can override with --env-path.
Sandbox commands
Create a sandbox:
omni sandbox create python-3.11 --internetCreate secure + E2EE bootstrap sandbox:
omni sandbox create python-3.11 --secure --e2eeList sandboxes:
omni sandbox listShow sandbox details:
omni sandbox info <sandbox_id>Kill sandbox:
omni sandbox kill <sandbox_id>Create a temporary preview URL for a web app running inside the sandbox:
omni sandbox expose <sandbox_id> 3000 --path /app
omni sandbox exposures <sandbox_id>
omni sandbox close <sandbox_id> <preview_id>Command execution
Run a command:
omni command run <sandbox_id> "echo hello"Stream output live:
omni command run <sandbox_id> "python -u -c 'import time\nfor i in range(3):\n print(i)\n time.sleep(1)'" --streamRun in background:
omni command run <sandbox_id> "sleep 20" --background
omni command ps <sandbox_id>
omni command kill <sandbox_id> <pid>Beamup previews
You can request preview URLs during launcher flows without blocking on readiness:
omni beamup claude --expose 3000 -y
omni beamup codex --expose 5173 --preview-path /app -yGlobal options
Use these on any command:
--api-url <url>--api-key <key>--env-path <path>--request-timeout <ms>--json
Environment variables are also supported:
OMNIRUN_API_URLOMNIRUN_API_KEY
Release automation
This repo is configured for Changesets-based npm publishing.
- CI workflow:
.github/workflows/ci.yml - Release workflow:
.github/workflows/release.yml
For GitHub Actions publishing, configure repository secret:
NPM_TOKEN(token with publish access for@omnirun/cli)
Release flow:
- Add a changeset with
npm run changeset. - Push to
main. - Changesets action opens/updates a release PR with version bumps/changelog.
- Merge that PR to publish automatically to npm.
