基于 K9s 灵感的终端 UI,可实时监控 Argo CD 资源
A K9s-inspired terminal UI for monitoring Argo CD Applications in real time.
Offline demo (no cluster): argo9s --demo
Regenerate assets (needs VHS):
make build
PATH="$(go env GOPATH)/bin:$PATH" vhs docs/screenshots/demo.tape~/.argo9s/config.yaml with startup picker (kubernetes, argocd-test, argocd-prod, …)j/k, / filter, : commands, ? helpg): Argo UI–style tree (resource-tree API or live RS/Pods)--demo: offline sample apps for screenshots / VHS recordings--no-color: monochrome TUI (also NO_COLOR=1 or noColor: true in config)brew install vvrnv/tap/argo9sgo install github.com/vvrnv/argo9s/cmd/argo9s@latestDownload from the releases page.
git clone https://github.com/vvrnv/argo9s.git
cd argo9s
make build
./bin/argo9sReleases are published automatically on v* tags via GoReleaser (GitHub Release + Homebrew formula in vvrnv/homebrew-tap).
argo9s --server https://argocd.example.com --auth-token "$TOKEN"
argo9s --server https://argocd.example.com --auth-token "$TOKEN" --insecure
# token also from ARGOCD_AUTH_TOKENargo9s config init # writes example ~/.argo9s/config.yaml
# edit connections, put tokens in env vars
export ARGOCD_TEST_TOKEN=...
export ARGOCD_PROD_TOKEN=...
argo9s # picker: kubernetes / argocd-test / argocd-prod
argo9s --connection argocd-prod
argo9s --pick # force pickerExample ~/.argo9s/config.yaml:
defaultConnection: kubernetes
connections:
- name: kubernetes
type: kubernetes
- name: argocd-test
type: argocd
server: https://argocd.test.example.com
tokenEnv: ARGOCD_TEST_TOKEN
readOnly: false
- name: argocd-prod
type: argocd
server: https://argocd.prod.example.com
tokenEnv: ARGOCD_PROD_TOKEN
readOnly: truereadOnly on a connection overrides the global readOnly. CLI --readonly still wins when passed explicitly.
argo9s --connection kubernetes
argo9s --context my-cluster -n argocd| Key | Action |
|---|---|
j / k |
Move |
g |
Resource graph (Application) |
l |
Pod logs (on Pod); horizontal scroll in log/YAML views |
y |
Live YAML of selected graph node |
e |
Edit YAML in $EDITOR (not read-only) |
p |
Previous container logs (log view) |
enter / d |
Describe |
/ |
Name filter |
: |
Command |
R |
Sync application |
f / F |
Refresh / hard refresh |
s / r |
Suspend (manual) / resume (auto-sync) |
# need writable connection (readOnly: false) or --readonly=false
argo9s --connection argocd-test --readonly=false app autosync on guestbook
argo9s --connection argocd-test --readonly=false app autosync off guestbook
argo9s --connection argocd-test --readonly=false app resume guestbook
argo9s --connection argocd-test --readonly=false app suspend guestbook
argo9s --connection argocd-test --readonly=false app sync guestbook
argo9s --connection argocd-test --readonly=false app refresh guestbook --hard| ctrl+d | Delete (confirm) |
| ? | Help |
| Q / :q | Quit |
:name guestbook # filter by name substring
:n mpi # short form
:name clear
:project default # Applications in AppProject "default"
:p staging
:project clear
:sync outofsync # only OutOfSync (yellow)
:sync synced
:outofsync
:sync clear/text is a live substring filter across name/namespace/project/status.
Colors: Synced+Healthy = green · OutOfSync = yellow · Progressing = blue · Degraded = red · Unknown = gray
Disable: --no-color, NO_COLOR=1, or argo9s config set noColor true.
g (or :graph)j/k, esc to go backLayout matches Argo CD UI (left → right):
app ── cm
├─ svc
└─ deploy ── rs ── podManaged resources come from status.resources; ReplicaSets/Pods are loaded live from the cluster via ownerReferences.
| Command | Description |
|---|---|
:app / :appset / :appproject / :all |
Switch resource view |
:project |
Filter apps by Argo CD project |
:ns |
Filter list by namespace |
:graph |
Open graph for selected Application |
:readonly |
Toggle read-only |
:nocolor |
Toggle monochrome TUI |
:ctx |
List kube contexts |
:q |
Quit |
Stored at ~/.argo9s/config.yaml:
argo9s config view
argo9s config set readOnly false
argo9s config set noColor true
argo9s config set namespace argocd
argo9s config set allNamespaces trueTwo backends, same TUI:
applications / applicationsets / appprojects). Mutating actions patch the Application CR (refresh annotation, .operation.sync, syncPolicy).MIT
暂无开放 Issues,或尚未同步最近议题。