To list the contents of a directory in a tree-like format, you can use the
secrethub tree [options] <namespace>/<repo>[/<dir>]
tree command works somewhat similar to the UNIX
To distinguish between directories and secrets, directories are shown ending in a forward slash
An example of the tree-like format is shown below, showing directories and secrets:
$ secrethub tree marc/myrepo myrepo/ ├── production/ │ └── api-servers/ │ ├── db_password │ ├── db_username │ ├── server.crt │ └── server.key └── testing/ └── api-servers/ ├── db_password ├── db_username ├── server.crt └── server.key 4 directories, 8 secrets
One thing to note is that secrets and directories will be colored recursively according to their status.
This works the same as with the
ls command, showing flagged secrets and directories in red.
- The path to the directory to show contents for.