This is a CLI for interacting with a Lagoon instance. By default, it is configured to work against Amazee.io instance.
If you run the CLI in a directory that has a valid .lagoon.yml
and docker-compose.yml
that references your project in lagoon, then you don't need to specify your project name on the command line as the CLI can read these files to determine the project. You can still define a project name though if you want to target a different project.
The preferred method is installation via Homebrew.
brew tap amazeeio/lagoon-cli
brew install lagoon
Alternatively, you may install by downloading one of the pre-compiled binaries from the releases page
If you are building from source, see the Build section below
Once installed, to use the Lagoon CLI, run the following command
lagoon <command>
For the full list of commands see the docs for Lagoon CLI
Note: You should make sure you have your GOPATH
configured and in your path if you are going to build the lagoon CLI. If you haven't got go
installed and are using the docker method, you can export GOPATH
to be somewhere else in your PATH
for binaries.
make test
make test-docker
make build-linux
make build-darwin #macos
You can build lagoon-cli without installing go
by running the docker-build
make command. This will use the Dockerfile.build
to build the cli inside of a docker container, then copy the binaries into the builds/
directory once complete
make build-docker-darwin
make build-docker-linux
make all #locally
make all-docker-linux
make all-docker-darwin
New releases can be created by running one of the following, this will create the version bump and update the gh-pages
branch
make release-patch
make release-minor
make release-major
make ARTIFACT_DESTINATION=/usr/local/bin install-linux
make ARTIFACT_DESTINATION=/usr/local/bin install-darwin
Versions can also be defined, and the binaries will be version tagged
make VERSION=v0.0.1 ...
Matt Glaman - Initial conception and development - Thanks Matt!