Install
Mac, Linux
Use homebrew to installmocli:
On Linux with a headless machine,
mocli login requires a browser for the initial login. After the first login, your session persists locally.Windows
Login (optional)
Signing in to mogenius is optional — you only need it for the platform features (organizations, workspaces, operator-connected clusters, tunnels). Working against a local kubeconfig needs no login. To use platform features, authenticate once. Your browser opens automatically to complete the login:Self-hosted instances
By default,mocli connects to the mogenius cloud at app.mogenius.com. If you run a self-hosted mogenius platform, point mocli at your own instance by editing its configuration file.
The config file lives at:
Replace the endpoints in the
services block with the URLs of your self-hosted deployment:
mocli must be able to reach these endpoints over the network from the machine it runs on. In restricted environments where the platform is only reachable from inside a managed desktop or jump host (for example via a VDI or bastion), run mocli there rather than on your local machine.API-key authentication
For automated pipelines — or locked-down environments where the browser callback used bymocli login is blocked — authenticate with an API key instead. It needs no local callback server:
mo_pat:. When MOGENIUS_API_KEY is set, mocli automatically uses API-key authentication.