Skip to main content

Reference

CLI Reference

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

This page is generated from the opsd-cli source tree so the website can stay aligned with the actual command surface at the release tag that was published.

Source repository: ../opsd-cli

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 or Kubernetes module metadata
verifyVerify config or plan against the OPSd contract
renderRender a manifest into a runnable OpenTofu stack
bootstrapWait for a Kubernetes cluster and install Argo CD
exportPackage a rendered handoff into a portable exit pack
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>] [--wizard]

ItemDescription
--variant <variant>Choose the blueprint variant to seed
--wizardGuide the user through the manifest inputs interactively

validate manifest

Usage: opsd validate manifest <manifest.yaml> [--platform [--offline]] | module <module.yaml>

ItemDescription
checkCheck a manifest or Kubernetes module metadata before use
--platformValidate generated Terraform/OpenTofu and pinned Helm/Kubernetes artifacts
--offlineUse only cached provider plugins and Kubernetes schemas; fail if a cache entry is missing

render manifest

Usage: opsd render manifest <manifest.yaml> --output <directory> [--include-platform]

ItemDescription
--output <directory>Write the runnable OpenTofu stack to this directory
--include-platformRender enabled Helm charts from the locked local artifacts

modules sync

Usage: opsd modules sync <manifest.yaml> [--update]

ItemDescription
syncMaterialize the pinned DigitalOcean and Kubernetes modules and cache their Helm charts
--updateResolve current refs and explicitly update the module and chart pins

bootstrap

Usage: opsd bootstrap [--manifest <path>]

ItemDescription
BehaviorWait for nodes in the active kubectl context to become Ready, install Argo CD, and optionally configure the manifest GitOps repository.
RequirementsRequires kubectl, Helm and Git to be available in PATH.
Repository credentialsFor HTTPS use OPSD_ARGOCD_REPO_USERNAME and OPSD_ARGOCD_REPO_PASSWORD; for SSH use OPSD_ARGOCD_REPO_SSH_PRIVATE_KEY. Secrets are sent directly to Kubernetes and are never written to generated files.
Module sourceReads the Argo CD module from modules-kubernetes at main by default; override with OPSD_MODULES_KUBERNETES_REF.
Repeat runsSafe to rerun on a bootstrapped cluster.

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