HashiCorp Cloud Platform
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.
$ brew tap hashicorp/tap
Install
hcp
withhashicorp/tap/hcp
.$ brew install hashicorp/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.$ brew upgrade hashicorp/tap/hcp
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.
$ hcp
USAGE
hcp <command> [Optional Flags]
DESCRIPTION
The HCP Command Line Interface is a unified tool to manage your HCP services.
COMMAND GROUPS
auth: Authenticate to HCP.
iam: Identity and access management.
organizations: Interact with an existing organization.
profile: View and edit HCP CLI properties.
projects: Create and manage projects.
waypoint: Manage Waypoint.
COMMANDS
version: Display the HCP CLI version.
GLOBAL FLAGS
--debug
Enable debug output.
--format=FORMAT
Sets the output format.
--profile=NAME
The profile to use. If omitted, the currently selected profile will be used.
--project=ID
The HCP Project ID to use. If omitted the current project set in the
configuration is used.
--quiet
Minimizes output.