Skip to content

CLI to interact with Komodor platform

Notifications You must be signed in to change notification settings

komodorio/komocli

Repository files navigation

komocli

CLI to interact with Komodor platform

Port Forwarding

You need to know agent ID, provide valid JWT token and specify target names for objects

Example:

 komocli port-forward pod/mypod 8888:5000 --namespace default --cluster my-cluster --token=...

JWT token can be specified via env variable KOMOCLI_JWT KOMOCLI_WS_URL is the base URL for env, defaults to wss://app.komodor.com, KOMOCLI_DEV flag would make it use query string param for JWT instead of cookie. --address sets the bind address for forwarder

Roadmap, Ideas, TODOs

  • make sure --help is meaningful
  • test when wrong agent ID
  • test when agent is down
  • test when agent shuts down mid-session
  • test when container shuts down mid-session
  • test when CLI shuts down mid-session