CLI to interact with Komodor platform
# Default (US region)
komocli port-forward pod/mypod 8888:5000 --namespace default --cluster my-cluster --token=...
# EU region
komocli port-forward pod/mypod 8888:5000 --namespace default --cluster my-cluster --token=... --region eu
# Custom WebSocket URL (advanced)
komocli port-forward pod/mypod 5000 --namespace default --cluster my-cluster --token=... --region wss://custom.komodor.comJWT token can be specified via:
- Command line:
--token YOUR_TOKEN - Environment variable:
KOMOCLI_JWT
The --region flag supports:
- Predefined regions:
us(default),eu
KOMOCLI_JWT- JWT authentication token (alternative to --token flag)DEBUG- Enable verbose logging
--address- Sets the bind address for forwarder (default: localhost)--browser- Automatically open forwarded address in browser--timeout- Timeout for operations (default: 5s)
- 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