Skip to content

CLI Reference

Execute a plan against target hosts.

glidesh run [OPTIONS]
FlagShortDescriptionDefault
--plan <PATH>-pPath to the plan file
--inventory <PATH>-iPath to the inventory file
--target <NAME>-tTarget filter: group name, host name, or group:hostname
--host <ADDR>Single host for ad-hoc mode
--user <USER>-uSSH user
--port <PORT>-PSSH port22
--key <PATH>-kSSH private key path
--command <CMD>-cAd-hoc command to run
--mode <MODE>-mExecution mode: sync or asyncsync
--concurrency <N>Max concurrent hosts10
--dry-runCheck only, no changes appliedfalse
--no-tuiDisable TUI, use plain text outputfalse
--no-host-key-checkSkip SSH host key verificationfalse
--accept-new-host-keyAccept and save unknown host keys to known_hostsfalse

Run a single command on a host without a plan or inventory:

Terminal window
glidesh run --host 192.168.1.10 -u deploy -c "uptime"

Run a plan against an inventory:

Terminal window
glidesh run -i inventory.kdl -p plan.kdl

Filter to a specific group or host:

Terminal window
glidesh run -i inventory.kdl -p plan.kdl -t web
glidesh run -i inventory.kdl -p plan.kdl -t web-1

View logs from past runs. Logs are stored in ~/.glidesh/runs/.

glidesh logs [OPTIONS]
FlagDescription
--lastShow the last run
--node <NAME>Filter by node name
--run <DIR>Specific run directory
Terminal window
glidesh logs --last
glidesh logs --last --node web-1
glidesh logs --run 20250115_143022_setup

Validate configuration files without executing anything.

glidesh validate [OPTIONS]
FlagShortDescription
--plan <PATH>-pValidate a plan file
--inventory <PATH>-iValidate an inventory file
Terminal window
glidesh validate -p plan.kdl
glidesh validate -i inventory.kdl
glidesh validate -p plan.kdl -i inventory.kdl