diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 40e8327..74e3bd9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -32,3 +32,20 @@ checksum: name_template: "equinix_{{ .Version }}_checksums.txt" release: mode: "keep-existing" + +homebrew_casks: + - name: equinix + homepage: "https://docs.equinix.com/" + description: "Official Equinix CLI" + license: "MIT" + commit_msg_template: "Brew formula update for {{ .Binary }} version {{ .Tag }}" + hooks: + post: + install: | + if OS.mac? + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/equinix"] + end + repository: + owner: equinix + name: homebrew-tap + token: "{{ .Env.TAP_GITHUB_TOKEN }}" diff --git a/README.md b/README.md index 92d7c33..5f6f593 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,23 @@ ## Installation +### Install from GitHub Releases + [Equinix CLI releases](https://github.com/equinix/cli/releases/latest) contain precompiled binaries for a variety of operating systems and architectures. 1. Download the appropriate zip archive for your platform from the desired Equinix CLI release 2. Run `unzip ` to expand the zip archive you downloaded 3. You can run the command immediately as `./equinix` or, if you prefer, `cp equinix ` where `` is a location on your local filesystem that is already included in your `PATH`. +### Install with Homebrew + +If you prefer, you can also install `equinix` with Homebrew by running the following commands: + +```sh +brew tap equinix/homebrew-tap +brew install metal-cli +``` + ## Usage The full CLI documentation can be found [in the docs directory](docs/equinix.md). \ No newline at end of file