Skip to content

About

The official Openstead CLI. Deploy and manage applications on Openstead from your terminal.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Openstead

Openstead CLI

The official command-line interface for Openstead, a product of LayerRail, Inc. Manage services using the same control plane, permissions and plan limits as the dashboard.

Install

Build this Openstead source checkout with Go 1.27 or later. Older release archives retain their original binary names; Openstead archives are produced by the next tagged release.

git clone https://github.com/Layerrail/openstead-cli.git
cd openstead-cli
go build -o openstead ./cmd/openstead
./openstead --version

On Windows, use -o openstead.exe. Put the binary on your PATH; MCP hosts should use its absolute path.

Existing integrations

The original cmd/runivo entrypoint remains available. OPENSTEAD_* environment variables take precedence over their RUNIVO_* equivalents. Existing rnv_ keys remain valid. openstead.toml is preferred, with runivo.toml supported for existing projects. New profiles use the openstead configuration directory; existing runivo profiles and their OS keychain entries continue to work.

Sign in and deploy

openstead login
openstead whoami
openstead services list
openstead link my-web-app
openstead deploy --wait
openstead logs --follow
openstead status --watch

Login opens an approval page. Verify the displayed code, choose your workspace and approve access. Keys expire after 30 days and are stored in your OS keychain. Use login --read-only for observation or login --no-browser on a remote machine. Revoke access with logout --yes or in the dashboard's API Keys page.

To authorize another workspace, use openstead login --profile team-name, then openstead workspaces use team-name. workspaces list lists locally authorized profiles, not every workspace on your account. Use one workspace profile per login. Linux keychain access requires Secret Service; headless systems can explicitly use login --token-file /private/path/token, and supply the same --token-file on later commands.

link saves only IDs in a local openstead.toml. It does not upload source or change your Git configuration. Deployments build the connected repository or configured container image through Openstead's existing pipeline. Local-directory uploads are not supported by the control plane.

Create and configure services

openstead catalog --json
openstead github connections --json
openstead github repositories --connection CONNECTION_ID --json
openstead github detect --repo your-org/your-repo --branch main
openstead services create --file examples/service.json
openstead services update my-web-app --file service-update.json
openstead projects create --name production
openstead environments create --file environment.json
openstead domains create --service my-web-app --name app.example.com
openstead domains verify app.example.com --service my-web-app --yes

Creation saves service configuration; add --deploy to enqueue its first deployment or run deploy separately. Use IDs returned by the API for project/environment assignments. --file accepts the API's complete JSON body; --file - reads stdin. Plan IDs and service capabilities come from catalog. Region availability, quotas and paid features are enforced by Openstead. Workflow configuration or saved schedules do not imply execution support beyond what the backend offers.

Commands

Command Operations
login, logout, whoami, workspaces, link Authentication and local workspace/service context
services, projects, environments, groups List, inspect, create, update and delete configuration
deploy, deploys Deploy, inspect, wait, cancel and roll back
status --watch, logs --follow, metrics Live service events, cursor-based logs and metrics
restart, suspend, resume, open Operate a service and open its public URL
env, secret-files List, set from stdin/file, explicitly reveal and delete secrets
shell, jobs Interactive terminal, one-off/cron executions, results and cancellation
domains, disks, headers, redirects, schedules Service resource configuration
backups Create, list, download with integrity checks, delete and restore into a new database
integrations, registries, connections, routing, scaling Networking, integration delivery, registry and runtime information
github Connect/install the GitHub app, list repositories/branches and detect frameworks
blueprints Create, validate, inspect, update and apply configuration
workspace, members, invitations, audit, notifications Workspace settings, access and operational history
usage, billing Consumption, unbilled charges, invoices and dashboard checkout
api Any supported workspace API operation using a scoped key
completion Bash, zsh, fish and PowerShell completion

Run openstead COMMAND --help for flags and subcommands. Some list endpoints return their latest 100 records. GitHub listing supports --page; use --json to read nextPage. Audit history is limited by workspace retention. Environment-group secrets use env --group NAME_OR_ID.

Secrets and shells

printf '%s' 'secret-value' | openstead env set API_TOKEN --service my-web-app
openstead env import --file variables.json --service my-web-app --yes
openstead secret-files set credentials.json --file ./credentials.json --service my-web-app
openstead shell --service my-web-app
openstead jobs run --service my-worker --command 'python manage.py check' --wait --yes

Secret input preserves bytes, including trailing newlines. Imports apply one key at a time and report partial failure; they are not a transaction across all keys. Shell sessions follow platform entitlements, support terminal resize and Ctrl+C, and disconnect with Ctrl+]. No SSH or Docker credentials are required.

Automation

# Store OPENSTEAD_API_KEY in your CI system's masked secrets, not in this file.
export OPENSTEAD_WORKSPACE='YOUR_WORKSPACE_UUID'
openstead deploy --service YOUR_SERVICE_UUID --wait --json

CI can use an existing workspace API key; login --token-stdin imports one into the local credential store. OPENSTEAD_API_KEY overrides the keychain. An explicit --token-file overrides that environment key. Context flags: --workspace/-w, --service/-s, --profile, --api-url, --token-file, --json, --yes/-y. Environment equivalents: OPENSTEAD_WORKSPACE, OPENSTEAD_SERVICE, OPENSTEAD_PROFILE, OPENSTEAD_API_URL, OPENSTEAD_TOKEN_FILE, OPENSTEAD_CONFIG_DIR.

Context precedence is explicit flags/environment, then local openstead.toml for workspace/service, then the active profile. A saved credential is never sent to a different API origin. Default API origin: https://dashboard.openstead.tech.

JSON output goes to stdout; errors and progress go to stderr. Follow/watch commands emit newline-delimited JSON. Use --yes for destructive operations in scripts. A deployment wait timeout stops the CLI wait, not the deployment. Resume with deploys wait DEPLOYMENT_ID. The CLI does not automatically retry mutations after an uncertain network response.

Exit Meaning
0 Command succeeded; queued actions remain asynchronous unless --wait was used
1 Invalid request, network or other error
2 Confirmation declined
3 Authentication required or expired
4 Permission or entitlement denied
5 Resource not found
6 Conflict
7 Rate limited
8 Deployment wait timed out
9 Deployment/job failed, cancelled or superseded
130 Interrupted

Advanced API access

openstead api services/SERVICE_ID/scaling --json
openstead api services/SERVICE_ID/references --json
openstead api services/SERVICE_ID/routing -X POST --yes
openstead api github/bind -X POST --file installation.json --yes

Paths are relative to the authorized workspace. This does not bypass permissions or make unavailable features executable. Payment methods, purchases and plan changes must be authorized in the dashboard with openstead billing open. The CLI reads existing billing records and does not charge cards or issue promotional credits.

MIT licensed. See SECURITY.md and CONTRIBUTING.md.

About

The official Openstead CLI. Deploy and manage applications on Openstead from your terminal.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages