Skip to content

Install the Lagoon CLI#

  1. Check https://github.com/uselagoon/lagoon-cli#install on how to install for your operating system. For macOS and Linux, you can use Homebrew:
  2. brew tap uselagoon/lagoon-cli
  3. brew install lagoon
  4. The CLI needs to know how to communicate with Lagoon, so run the following command:

    Lagoon config
        lagoon config add \
            --graphql https://YOUR-API-URL/graphql \
            --ui https://YOUR-UI-URL \
            --hostname YOUR.SSH.IP \
            --lagoon YOUR-LAGOON-NAME \
            --port 22
    
  5. Access Lagoon by authenticating with your SSH key.

  6. In the Lagoon UI (the URL is in values.yml if you forget), go to Settings.

  7. Add your public SSH key.
  8. You need to set the default Lagoon to your Lagoon so that it doesn’t try to use the amazee.io defaults:

    Lagoon config
        lagoon config default --lagoon <YOUR-LAGOON-NAME>
    
  9. Now run lagoon login. Lagoon talks to SSH and authenticates against your public/private key pair, and gets a token for your username.

  10. Verify via lagoon whoami that you are logged in.

Info

We don’t generally recommend using the Lagoon Admin role, but you’ll need to create an admin account at first to get started. Ideally, you’ll immediately create another account to work from which is not an admin.