brew tap hashicorp/tap
brew install hashicorp/tap/vault
Verify Vault CLI installation
vault --version
vault server -dev
export VAULT_ADDR='http://127.0.0.1:8200'
- note: do not run above command for production! only for development purpose
vault kv put secret/firs_secret password=admin123
- note: by default we're only have the permission to write secret inside secret/ folder, if you want to use another directory, we would cover later on chapter Vault Policy