CLI

Oblien CLI

The oblien CLI is a thin, zero-dependency wrapper around the Oblien SDK. Every command maps directly to an SDK method — no extra logic, no magic.

The same credentials power the CLI, SDK, and MCP server, so oblien login is all you need to get everything working.

Quick start

# Install globally
npm install -g oblien

# Log in (opens browser)
oblien login

# Create and start a workspace
oblien ws create --image node-20 --name my-app
oblien ws start ws_abc123

# Run a command inside it
oblien exec ws_abc123 -- npm test

# List files
oblien files ls ws_abc123 /app

Command groups

GroupDescription
login / authBrowser-based login, logout, status
configManage credentials file directly
wsCreate, list, start, stop, delete workspaces
execRun commands inside workspaces
filesRead, write, list, delete files
searchSearch code and filenames
networkNetwork configuration
sshSSH access management
public-accessExpose and revoke public ports
lifecyclePermanent/temporary mode, TTL
snapshotsSnapshots and archives
imagesBrowse available images
logsView and stream logs
terminalTerminal sessions
watcherFile system watchers
workloadsContainers and processes
metricsResource metrics
usageCredits and usage tracking
metadataKey-value metadata
api-accessRuntime API tokens
nsNamespaces, quotas, usage
skillsAgent skill management

Global flags

Every command accepts these flags:

--json                Output as JSON (default: human-readable table)
--client-id <id>      Override client ID for this invocation
--client-secret <s>   Override client secret for this invocation
--base-url <url>      Override API base URL
-v, --version         Show version
-h, --help            Show help

Authentication priority

Credentials are resolved in this order:

  1. --client-id / --client-secret flags
  2. OBLIEN_CLIENT_ID / OBLIEN_CLIENT_SECRET environment variables
  3. ~/.oblien/credentials.json (written by oblien login)

The MCP server (oblien-mcp) uses the same resolution order, so oblien login authenticates both the CLI and MCP automatically.