HashiCorp Cloud Platform
hcp auth
Command: hcp auth
The hcp auth
command group lets you manage authentication to HCP.
Usage
$ hcp auth <command> [Optional Flags]
Examples
Login interactively using a browser:
$ hcp auth login
Login using service principal credentials:
$ hcp auth login --client-id=spID --client-secret=spSecret
Logout the CLI:
$ hcp auth logout
Commands
login
- Login to HCP.logout
- Logout from HCP.print-access-token
- Print the access token for the authenticated account.