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>
Arguments
-
<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 torepo 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.
- When set to