britive viewsecret
  • PDF

britive viewsecret

  • PDF


This command displays the secret details.


$ britive viewsecret [PATH]

where [PATH[ is an optional argument and is [PATH] to the secret.

Use the command britive viewsecret --help to know more about the arguments and options available for this command.

Command Options

OptionExtended OptionsDescription
-b--blocktimeSpecify block time for polling, in minutes. Default value is 5 minutes.
-f--formatSpecify the -f option or --format option for the display of output. You can enter any of the following values:
  • Table - Displays the output in tabular format.
  • JSON - Displays the output in JSON format. 
  • CSV - Displays the output in CSV format. 
By default, if -f or --format is not specified by the user, then the output is displayed in the tabular format (Table option).
-j--justificationSpecify justification for the approval.
-m--maxpolltimeSpecify the maximum poll time in minutes. Default value is 10 minutes.
-s--secretonlyDisplays only secret.
-t--tokenThis option is used in token-based authentication. Specify the token value in this option.
For more information about the usage of this option, see Examples: Usage of Service Identities in Britive CLI.

--authSpecify this option before the -t or --token option. This option specifies that the token authentication method is used while running the britive l command.
Specify the path for the secret file to be downloaded. If provided '-', the secret file will be printed to the standard output.

Example (britive viewsecret)

$ britive viewsecret /cli_node/cli_secret1


The secret information about the specified secret is displayed.

Was this article helpful?

What's Next