Install the HCP CLI
The hcp
CLI lets you administer HashiCorp Cloud Platform (HCP) resources and
services. You can interact with hcp
directly or integrate it in scripts to
automate your workflows. The HCP CLI is available across most platforms and lets
you efficiently execute common platform tasks and manage HCP resources at scale.
The hcp
CLI is available as a pre-compiled binary or as a package for several
operating systems.
Homebrew is a free and open source package management system
for Mac OS X. Install the official hcp
CLI
formula from the terminal.
Install the HashiCorp tap, a repository of all of the HashiCorp Homebrew packages.
Install
hcp
withhashicorp/tap/hcp
.Note
This installs a signed binary and is automatically updated with every new official release.
Run
brew upgrade
to upgrade to the latest version.
Verify the installation
Verify the HCP CLI was installed correctly with the hcp
command. This will
return a list of commands and flags you can interact with.