Debug K9s: troubleshooting commands
6 commands in 2 groups: Diagnose K9s, K9s Logs. Click or tap any command to copy it. Official documentation: k9scli.io.
Open in the interactive cheat sheet search, stars and every other section
Diagnose K9s
Print K9s runtime paths and version, or enable debug logging to identify startup and connection issues.
k9s --logLevel debug
Start K9s with debug logging enabled
k9s info
Print config, log, screen dump, skins, plugins and aliases paths
K9s Logs
Tail the K9s log file to inspect errors, panics, and connection traces. The path depends on your OS, run k9s info for the exact one.
tail -f "$HOME/Library/Application Support/k9s/k9s.log"
Follow K9s log on macOS
tail -f ~/.local/state/k9s/k9s.log
Follow K9s log on Linux
grep -i error "$HOME/Library/Application Support/k9s/k9s.log"
Filter error lines from K9s log on macOS
grep -i error ~/.local/state/k9s/k9s.log
Filter error lines from K9s log on Linux