HashiCorp Cloud Platform
init
Command: vlt config init
The config init
command starts an interactive tool to select the target organization
and a project where the HCP Vault Secrets resource to be created and managed.
Examples
Run the config init
command to start the configuration.
$ vlt config init
Example output:
Use the up or down arrow keys to select the organization and the project you wish to target.
Organization with id: 11aa1a11-22b2-33cc-4dd4-5555ee666666 selected
Use the arrow keys to navigate: ↓ ↑ → ←
? Multiple Projects found please select the one you would like to configure.:
> staging
team-devops
team-qa
----- Organization -----
Name: staging
ID: 11aa1a11-22b2-33cc-4dd4-5555ee666666
Description: This project is used to host staging environments.
State: ACTIVE
After selecting the appropriate organization, the initialization will complete.
Project with id: 0011a1aa-22bb-33cc-d44d-555eee555e55 selected
You have no applications to configure perhaps run `vlt apps create` to create a new application
Successfully wrote configuration to system
If one or more applications already exist under the selected project, it prompts you to select the target application to interact with CLI.
✔ This project is used to host staging environments. 11aa1a11-22b2-33cc-4dd4-5555ee666666 staging 0xc000116780 0xc0001da3a0}
Project with id: 0011a1aa-22bb-33cc-d44d-555eee555e55 selected
Use the arrow keys to navigate: ↓ ↑ → ←
? Select an Application name:
▸ vault-edu-secrets