Skip to content

Logs

Every glidesh run stores per-node logs and a JSON summary in ~/.glidesh/runs/. The glidesh logs command lets you browse them.

Each run creates a directory named <timestamp>_<plan-name>:

~/.glidesh/runs/
├── 2025-04-10T14-30-22_deploy-web/
│ ├── summary.json
│ ├── web-1.log
│ └── web-2.log
├── 2025-04-10T13-15-00_setup-db/
│ ├── summary.json
│ └── db-1.log
  • summary.json — run metadata: plan name, run ID, timestamps, per-node status and change count
  • <node>.log — timestamped log lines for each host

Running glidesh logs in a terminal opens a three-level TUI:

Terminal window
glidesh logs

The top-level view lists all runs (newest first) with a summary of node count, successes, and failures.

KeyAction
Up/DownNavigate runs
EnterView run details
SpaceToggle selection (multi-select)
d / DeleteDelete selected runs (with confirmation)
qQuit

The title bar shows the selection count when runs are selected. Pressing d without any selection deletes the highlighted run.

Shows the run header (plan, run ID, timestamps) and a table of nodes with status, changed count, and error messages.

KeyAction
Up/DownNavigate nodes
EnterView node log
EscBack to run list
qQuit

Displays the full log file with syntax highlighting:

  • Red bold — failed steps
  • Cyan bold — step headers
  • Yellow — changed resources
  • Green — successful results
  • Gray — check operations
KeyAction
Up/Down or j/kScroll line by line
PgUp/PgDnScroll by page
Home/gJump to top
End/GJump to bottom
cCopy log to clipboard
eOpen log in $VISUAL / $EDITOR
EscBack to run detail
qQuit

The c key copies the entire log content to the system clipboard. On Linux this requires xclip to be installed.

The e key opens the log file in your preferred editor ($VISUAL, then $EDITOR, falling back to notepad on Windows or vi on Unix). The TUI suspends while the editor is open and resumes when you close it.

For non-interactive access or scripting:

Terminal window
glidesh logs --last # show last run summary
glidesh logs --last --node web-1 # print a specific node's log
glidesh logs --run 2025-04-10T14-30-22_deploy-web # show a specific run
FlagDescription
--lastShow the most recent run
--node <NAME>Filter output to a specific node
--run <DIR>Select a specific run by directory name

When stdout is not a TTY (piped or in CI), glidesh logs prints the 20 most recent runs as plain text instead of launching the TUI.