Skip to content

kcli v0.4.0 — Interactive Mode

Choose a tag to compare

@vellankikoti vellankikoti released this 21 Mar 12:54
· 5 commits to main since this release

kcli v0.4.0 — Interactive Mode

kcli get pods -i — k9s-like actions from the CLI

Add -i to any get command to enter interactive mode after the table displays:

$ kcli get pods -i
╭─────┬──────────┬──────────────┬───────┬──────────────╮
│   # │ NS       │ NAME         │ READY │ STATUS       │
├─────┼──────────┼──────────────┼───────┼──────────────┤
│   1 │ default  │ nginx-xxx    │   1/1 │ ✓ Running    │
│   2 │ default  │ api-yyy      │   2/2 │ ✓ Running    │
╰─────┴──────────┴──────────────┴───────┴──────────────╯

Select resource [1-2] (q=quit): 1

  nginx-xxx (default)
  [L] Logs  [D] Describe  [X] Exec  [E] Edit  [P] Port-forward  [DEL] Delete  [Q] Back

  Action: l
  → kcli logs pod/nginx-xxx --tail=100 -n default

Resource-specific actions

Resource Actions
Pods Logs, Describe, Exec, Edit, Port-forward, Delete
Deployments Describe, Logs, Scale, Restart, Edit, Delete
Services Describe, Port-forward, Edit, Delete
Nodes Describe, Cordon, Uncordon, Drain
Namespaces Switch, Describe, Delete
ConfigMaps Describe, Edit, YAML, Delete
Secrets Describe, YAML, Delete

Non-breaking

Default kcli get pods behavior is unchanged. The -i flag is opt-in.

Also in this release

  • kcli ns colored table with ▶ current marker
  • kcli ctx colored table with ★ favorites

Upgrade

curl -sL https://github.com/vellankikoti/kcli/releases/download/v0.4.0/kcli-darwin-arm64.tar.gz | tar xz
sudo mv kcli /usr/local/bin/