kedge Documentation

CLI Reference

Every kedge command — authentication, edges, kubeconfigs, SSH, MCP.

The kedge CLI is a kubectl plugin (when installed via krew, it’s kubectl kedge; the standalone binary just drops the kubectl prefix). All commands below use the kubectl kedge form.

Global flags

FlagDescription
--hub-url <url>URL of the hub. Required for login. Saved in kubeconfig after the first login.
--token <token>Bearer token (used with --hub-url instead of OIDC).
--insecure-skip-tls-verifySkip TLS verification — only for self-signed dev hubs.
--context <name>Kubeconfig context to operate against. Defaults to kedge.
-v / --verboseVerbose output.

Command summary

CommandWhat it does
loginAuthenticate with the hub (OIDC browser flow or static token).
whoamiShow who you’re logged in as.
edge create <name>Register a new edge in the hub.
edge listList all edges and their connection status.
edge get <name>Show details for a specific edge.
edge join-command <name>Print the agent install command with the join token.
edge delete <name>Remove an edge.
kubeconfig edge <name>Generate a kubeconfig that proxies kubectl through the hub.
ssh <name>Open an SSH session (or run a single command) on a server-mode edge.
mcp urlPrint the multi-cluster MCP endpoint for AI agents.
agent runStart the agent as a foreground process (used inside container images).
agent joinInstall the agent as a persistent service (systemd or k8s Deployment).
dev createCreate a local dev environment (two kind clusters).
dev deleteTear down the dev environment.

Pick a command from the sidebar for the full reference.