Getting Started
Installation
Homebrew (macOS/Linux)
sh
brew install rundops/tap/dopsGo
sh
go install github.com/rundops/dops@latestDocker
sh
docker pull ghcr.io/rundops/dops:latestFrom Source
sh
git clone https://github.com/rundops/dops.git
cd dops
make installInitialize
sh
dops initThis creates ~/.dops/ with a default configuration and a sample hello-world runbook.
Launch the TUI
sh
dopsNavigate with arrow keys, press Enter to run a runbook, fill in parameters, and confirm.
Launch the Web UI
sh
dops openOpens a browser-based interface at http://localhost:3000 with the same catalog, forms, and execution streaming. See the Web UI guide for details.
Add Your First Catalog
A catalog is a directory of runbooks. Create one:
sh
mkdir -p ~/.dops/catalogs/my-team/hello-worldCreate the runbook definition:
yaml
# ~/.dops/catalogs/my-team/hello-world/runbook.yaml
name: hello-world
version: 1.0.0
description: Say hello
risk_level: low
script: script.sh
parameters:
- name: greeting
type: string
required: true
description: The greeting message
scope: runbookCreate the script:
sh
#!/bin/sh
set -eu
GREETING="${GREETING:?greeting is required}"
main() {
echo "==> Stage 1/1: Hello"
echo " ${GREETING}"
echo ""
echo "Done"
}
main "$@"Make it executable:
sh
chmod +x ~/.dops/catalogs/my-team/hello-world/script.shRegister the catalog:
sh
dops catalog add ~/.dops/catalogs/my-teamLaunch dops — your runbook will appear in the sidebar.
Install a Shared Catalog
Install a catalog from a git repository:
sh
dops catalog install https://github.com/your-org/ops-runbooks.gitUpdate it later:
sh
dops catalog update ops-runbooksRun a Runbook from the CLI
Execute a runbook non-interactively:
sh
dops run my-team.hello-world --param greeting="Hello, world!"Environment
| Variable | Default | Description |
|---|---|---|
DOPS_HOME | ~/.dops | Config and catalog directory |
DOPS_NO_ALT_SCREEN | (unset) | Set to 1 to disable alternate screen |
