Commands (CLI)
vlt CLI transitioned to HCP CLI
HCP Vault Secrets CLI workflows are now part of the HCP CLI. We highly recommend migrating to the HCP CLI where new capabilities will continue to be added. See this tutorial to install the HCP CLI and for available commands, refer to the CLI documentation.
vlt CLI will continue to receive critical security fixes until September 27th, 2024.
The below usage information is for the vlt CLI, refer to the links above for using the HCP CLI with HCP Vault Secrets.
Usage
For more information, examples, and usage about a subcommand, click on the name of the subcommand in the sidebar or one of the links below:
Basic command workflow
To start managing your secrets using HCP Vault Secrets CLI, here are the command execution flow.
Run the
login
command to authenticate with your HCP Vault Secrets account.Initialize and select your target environment with the
config init
command.Use the arrow keys to select your target project.
Create an application using the
apps create
command.Create a secret for the application using the
secrets create
command.Retrieve the secret value using the
secrets get
command.Use the
--plaintext
parameter to retrieve the secret as plain text.
Tip
Refer to the HCP Vault Secrets Quick Start tutorials to learn more.