Loading…
Loading documentation...
Unified command-line interface for the Servers Are Up v1 API, Resource Manager, Cloud Storage, Identity, Security, and SaaS.
sau CLI (v0.2) requires Node.js 20 or later, supports -o, --output <json|jsonc|table|tsv|yaml|none> and --query <expr> on every command, and covers compute, orders, SSH/exec, snapshots, backups, Resource Groups, tags, locks, Azure-backed Cloud Storage, Cloud Databases, Key Vault, Identity, Cloud SIEM, and Managed SaaS. For an order JSON example and the purchase flow, see the API reference.npm install -g https://serversareup.com/downloads/serversareup-cli.tgz # Authenticate, then go sau auth login --token sau_xxxxxxxx sau instances list -o table
Requires Node.js 20+. You can also skip auth login and set SAU_API_TOKEN in your environment.
The CLI authenticates with a personal access token. Create one in your dashboard.
Manage API TokensBrowse the catalog, create authorized purchases, and follow provisioning
Show current products, configuration, and purchase terms as JSON.
sau catalog [--type VM]
Submit one item with current accepted legal terms from a JSON file. Requires billing:write and instances:write. Reuse the same attempt key for retries and confirmation. Review requiresConfirmation before setting confirm:true; open checkoutUrl if payment is required.
sau orders create --file order.json --idempotency-key purchase-attempt-001
Poll order and provisioning status with billing:read. A completed order includes instance IDs and access URLs.
sau orders get <order-id>
List recent orders within your token scope.
sau orders list
Authenticate the CLI with a personal access token and configure defaults
Validate and save a personal access token (sau_…). Create one under Account > API Keys. The token is stored at ~/.config/sau/config.json (0600).
sau auth login --token <sau_token>
--tokenPersonal access token (sau_…). Falls back to $SAU_API_TOKEN--base-urlAPI base URL (default: https://serversareup.com)sau auth login --token sau_xxxxxxxx
export SAU_API_TOKEN=sau_xxxxxxxx
Show the account the active token belongs to, and its scopes.
sau auth whoami
sau auth whoami
Remove the saved token from disk.
sau auth logout
sau auth logout
Inspect or update CLI defaults (group, location, output) and remote Portal / AI Agent write guardrails (READ_ONLY, SAFE_MUTATIONS, FULL_AUTONOMOUS).
sau config <show|set> [key] [value] [--remote]
sau config show --remote
sau config set aiWriteMode SAFE_MUTATIONS --remote
Manage virtual machine instances, guest commands, snapshots, backups, and consoles
Show the published SSH endpoint, or JSON access details including host-key pins and the web console. Requires instances:read; --credentials additionally requires instances:exec and records an audit event.
sau instances ssh <instance-id> [--print|--web|--json] [--credentials]
Execute a command inside a supported guest with instances:exec. Prints stdout/stderr and preserves the remote exit code.
sau instances exec <instance-id> -- uname -a
List your instances.
sau instances list [--json] [-o table|json|yaml|tsv] [--query <expr>]
--jsonOutput raw JSON instead of a table-o, --outputFormat output as json, jsonc, table, tsv, yaml, or none--queryFilter JSON fields with a JMESPath-style selector expressionsau instances list
sau instances list --json | jq .
Show details for a single instance.
sau instances get <instance-id> [--json]
--jsonOutput raw JSON instead of a summarysau instances get ins_abc123
Power an instance. Maps to POST /api/v1/instances/{id}/power.
sau instances power <instance-id> <start|stop|restart>
sau instances power ins_abc123 stop
sau instances power ins_abc123 start
sau instances power ins_abc123 restart
Queue a durable OS rebuild, same-family Linux plan upgrade, or 30-day recycle-bin deletion with instances:write.
sau instances <rebuild|resize|delete> <instance-id>
List or queue system snapshots and server backups with snapshots:read / snapshots:write.
sau <snapshots|backups> <list|create> <instance-id>
Probe or open an owner-bound browser console session.
sau console <probe|open> <instance-id>
Organize infrastructure with Resource Groups, universal tags, management locks, RBAC, diagnostics, and quotas
List, create, or delete Resource Groups, or export infrastructure as Declarative JSON or Terraform HCL. Requires cloud:read / cloud:write.
sau group <list|create|delete|export> [name] [-f arm|hcl]
sau group create rg-prod-us -l us-central-sau-1 --tags env=prod,owner=platform
sau group export -f hcl -g rg-prod-us
List, apply, or remove universal key=value tags across VMs, databases, storage, and SaaS resources.
sau tag <list|create|delete> [resourceUri] [tagsCsv]
Create, list, or remove CanNotDelete and ReadOnly management locks on Resource Groups or individual resource URIs.
sau lock <list|create|delete> [name] [--level CanNotDelete|ReadOnly] [--group <rg>]
sau lock create prod-db-lock --level CanNotDelete --group rg-prod-us
Manage scoped RBAC & ABAC role assignments across Resource Groups and cloud resources.
sau role <list|create|delete> [assignmentId]
Configure diagnostic log routing, inspect the control-plane activity log, and check regional quotas.
sau monitor <diagnostics-list|diagnostics-create|diagnostics-delete|activity-log> | sau quota list
Operate Managed Cloud Storage hosted via Microsoft Azure, Multi-Model Cloud Databases, Key Vault, and Container Registry
Purchase Managed Cloud Storage plans hosted via Microsoft Azure (BLOB_250GB to BLOB_25TB), list containers/blobs, upload encrypted objects, and inspect shared file mounts.
sau storage <plan-purchase|blobs-list|blob-put|files-list> ...
sau storage plan-purchase BLOB_1TB
sau storage blobs-list -o table
Create and query SAU Multi-Model Cloud Databases (JSONB document, SQL, key-value, graph, and pgvector).
sau cosmosdb <list|create|delete|keys-rotate|item-upsert|items-query> ...
Store envelope-encrypted secrets in SAU Key Vault and manage dynamic feature flags in App Configuration.
sau keyvault <list|secret-get|secret-set> ... | sau appconfig <list|set> ...
List private OCI Container Registries and record signed image manifests.
sau acr <list|push-manifest> [registryIdOrName] [repository] [tag]
Manage Cloud Identity, SIEM/SOAR, Security Posture, Network Checkpoints, Cloud DNS, Serverless, Workflows, Governance, and Managed SaaS
Inspect OIDC/SCIM & Zero-Trust Private Access (entra), run Cloud SIEM queries, SOAR playbooks, and incident triage (sentinel), or run CSPM/DLP/EASM posture scans (security).
sau <entra|sentinel|security> ...
sau security posture -o table
sau sentinel show
Inspect subnets, firewall policies, WireGuard tunnels, API Gateway routes, Browser Bastion sessions, Cloud DNS zones, and roll back network state via checkpoints.
sau network <list|firewall-list|tunnels-list|checkpoints-list|checkpoint-create|checkpoint-restore|dns-list|dns-create|apim-list|bastion-list>
Invoke serverless functions, trigger DAG workflows, send/receive durable queue messages, and run IoT / Digital Twin / Chaos Studio operations.
sau <functionapp|workflows|servicebus|iot> ...
Check cloud budgets, FinOps cost advisories, and Recovery Vaults, or browse and subscribe to 112 Cloud & Managed SaaS offerings.
sau governance <show|settle|recovery-vaults> | sau saas <catalog|subscriptions|subscribe|cancel>
sau saas catalog -o table
View your SSH keys
List the SSH keys on your account.
sau ssh-keys list [--json]
--jsonOutput raw JSON instead of a tablesau ssh-keys list
Account, billing usage, and version info
Show the active token's account: email, role, and resource counts.
sau account [--json]
--jsonOutput raw JSONsau account
Inspect bandwidth, active subscriptions, and usage telemetry with usage:read.
sau billing usage [--json]
Print the CLI version and check connectivity to the API.
sau version
sau version