Skip to main content

Reference

CLI Reference

Command and flag reference synchronized from the OPSd CLI source tree.

How to read this page

  • The Usage line is the canonical command shape.
  • The tables mirror the help rows embedded in lib/opsd/cli.rb.
  • For runtime-specific examples, use opsd help <command> in the matching release.

Basics

help

Usage: opsd <command>

ItemDescription
helpShow help for commands
versionPrint the CLI version
completionGenerate shell completion scripts or install a loader
configManage OPSd CLI context such as active provider
listBrowse blueprint catalog data discovered from workspace modules
describeShow details for a specific blueprint
initCreate starter manifests from blueprints
validateValidate a manifest
renderRender a manifest into a runnable OpenTofu stack
addAdd supported resources to an existing manifest
resizeResize supported resources in an existing manifest
scaleScale supported replicated resources
attachAttach supported resources to each other
detachDetach supported resources from each other
removeRemove supported resources from an existing manifest

completion

Usage: opsd completion <bash|zsh|fish>

ItemDescription
installInstall a completion loader or snapshot
bashGenerate Bash completion
zshGenerate Zsh completion
fishGenerate Fish completion

config

Usage: opsd config <command>

ItemDescription
profileManage named profiles and profile configuration

Discovery

list blueprints

Usage: opsd list blueprints

ItemDescription
blueprintsBrowse blueprint catalog data discovered from workspace modules

describe blueprint

Usage: opsd describe blueprint <blueprint> [--variant <variant>]

ItemDescription
--variant <variant>Select a blueprint variant

Workflow

init blueprint

Usage: opsd init blueprint <blueprint> [output.yaml] [--variant <variant>]

ItemDescription
--variant <variant>Choose the blueprint variant to seed

validate manifest

Usage: opsd validate manifest <manifest.yaml>

ItemDescription
checkCheck the manifest before rendering

render manifest

Usage: opsd render manifest <manifest.yaml> --output <directory>

ItemDescription
--output <directory>Write the runnable OpenTofu stack to this directory

Mutations

add

Usage: opsd add <resource> <manifest.yaml> [options...]

ItemDescription
compute-groupAdd a compute group to a manifest
databaseAdd a database to a manifest
cacheAdd a cache to a manifest
object-storageAdd object storage to a manifest
cdn-endpointAdd a CDN endpoint to a manifest
load-balancerAdd a load balancer to a manifest
nodeAdd a node to a manifest

resize

Usage: opsd resize <resource> <manifest.yaml> <resource-id> --profile <profile>

ItemDescription
compute-groupResize a compute group
cacheResize a cache
databaseResize a database

scale

Usage: opsd scale compute-group <manifest.yaml> <compute-group-id> --replicas <count>

ItemDescription
--replicas <count>Desired replica count

attach

Usage: opsd attach compute-group <manifest.yaml> <compute-group-id> --to <load-balancer-id>

ItemDescription
--to <load-balancer-id>Attach to a load balancer

detach

Usage: opsd detach compute-group <manifest.yaml> <compute-group-id> --from <load-balancer-id>

ItemDescription
--from <load-balancer-id>Detach from a load balancer

remove

Usage: opsd remove <resource> <manifest.yaml> <resource-id>

ItemDescription
compute-groupRemove a compute group from a manifest
databaseRemove a database from a manifest
cacheRemove a cache from a manifest
object-storageRemove object storage from a manifest
load-balancerRemove a load balancer from a manifest
cdn-endpointRemove a CDN endpoint from a manifest
nodeRemove a node from a manifest

Config profile

config profile

Usage: opsd config profile <command>

ItemDescription
listList configured profiles
showShow profile details and status
createCreate a new profile
editEdit an existing profile
useSelect the current profile
currentShow the current profile

config profile use

Usage: opsd config profile use <profile>

Profile names are resolved from the active CLI configuration at runtime.

config profile current

Usage: opsd config profile current

Completion install

completion install

Usage: opsd completion install [--snapshot] <bash|zsh|fish>

ItemDescription
--snapshotWrite a one-time completion snapshot
bashInstall Bash completion
zshInstall Zsh completion
fishInstall Fish completion