Install the Lagoon CLI#
- Check https://github.com/uselagoon/lagoon-cli#install on how to install for your operating system. For macOS and Linux, you can use Homebrew:
brew tap uselagoon/lagoon-cli
brew install lagoon
-
The CLI needs to know how to communicate with Lagoon, so run the following command:
Lagoon configlagoon config add \ --graphql https://YOUR-API-URL/graphql \ --ui https://YOUR-UI-URL \ --hostname YOUR.SSH.IP \ --lagoon YOUR-LAGOON-NAME \ --port 22
-
Access Lagoon by authenticating with your SSH key.
-
In the Lagoon UI (the URL is in
values.yml
if you forget), go to Settings. - Add your public SSH key.
-
You need to set the default Lagoon to your Lagoon so that it doesn’t try to use the amazee.io defaults:
Lagoon configlagoon config default --lagoon <YOUR-LAGOON-NAME>
-
Now run
lagoon login
. Lagoon talks to SSH and authenticates against your public/private key pair, and gets a token for your username. -
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.