VaultCLI Get-Secret Command

Use the vaultCLI get-secret command to fetch a specific secret.

Syntax

vaultcli get-secret [options]

Option Description

-h or --help

Displays usage text.

-b or --boxid string

The ID or name of the box where the secret is located. Strings must be enclosed in double quotes.

-s or --secretid string

The ID or name of the secret to fetch. Strings must be enclosed in double quotes.

-v or --version int

The version of the secret to fetch. If not specified, the last version of the secret is fetched.