mocli reaches a cluster either through the mogenius platform or straight through your kubeconfig. A context stores which cluster you are pointed at (plus a default namespace) so that resource commands run without re-selecting it every time.
List every reachable cluster
get-contexts shows the mogenius clusters of every organization you belong to and the contexts in your kubeconfig, in one table. The active one is marked with *.
mogenius clusters are only listed when you are already logged in —
get-contexts never opens a browser. A kubeconfig is read regardless of login.Set your context
Connection flags
These flags work on any command and select the connection for that invocation:kubeconfig resolution
Direct access follows standard kubeconfig resolution:$KUBECONFIG first, then ~/.kube/config, including multi-file merging. exec credential plugins work out of the box — for example aws eks get-token or gke-gcloud-auth-plugin — so cloud clusters authenticate exactly as they do with kubectl.
mocli cluster connect (registering a cluster with the platform and installing the operator) is a platform action and has no meaning on a direct kubeconfig connection. See Installing the mogenius operator.