Command: inspect

To print the details of a repository, a secret or a specific secret version in JSON, you can use the inspect command:

secrethub inspect [options] <path>


<path> (string)
The path to inspect. Depending on the value of the argument, the inspect command behaves a bit differently:
  • When set to <namespace>/<repo>, it aliases to repo inspect, printing the details of the repository.
  • When set to <namespace>/<repo>[/<dir>]/<secret>, it prints the details of the given secret.
  • When set to <namespace>/<repo>[/<dir>]/<secret>:<version>, it will print the details of that specific secret version.