With mocli, you can observe your mogenius clusters, workspaces, resources, and more with style right from your command line environment.

The mogenius CLI is in Beta, with a limited feature set. Follow our release notes to keep track of new features.

Installation

Mac, Linux

Use homebrew to install the mocli on your Mac or Linux machines with the following commands:

title="Install mocli"
brew tap mogenius/mocli
brew install mocli

Be aware that on Linux with a headless machine, mocli would unfortunately not work as it currently requires a browser to log in to our platform.

Windows

title="Install mocli"
scoop bucket add mocli https://github.com/mogenius/homebrew-mocli
scoop install mocli

Getting Started

You need an account for mogenius to use mocli. If you do not have one yet sign up here.

Once you created your account, on your command line run following command. Your browser will open to log you in on the CLI with your mogenius account.

title="Launch the CLI"
mocli login

Connecting a cluster

You can use the CLI to install the mogenius operator on your Kubernetes cluster. Follow the steps to connect your cluster:

  1. In the mogenius UI, add a new cluster.

  2. Go back to your terminal and run

    mocli cluster connect
    
  3. The available clusters of your organization will be shown. Select the cluster that you want to connect with your current kube context.

  4. Verify that your local kube context is set to the cluster where you want to install the mogenius operator.

  5. To deploy the operator, hit Enter.

The operator will now be deployed to your cluster. You can verify if the connection between operator and platform was established via mocli clusters list or through the mogenius UI.