Create Directories

Directories can contain secrets and subdirectories, working much like a traditional filesystem. Each repository comes with an empty root directory. To create a directory at a given path, you can use the mkdir command:

secrethub mkdir [options] <namespace>/<repo>/<path>

The mkdir command is somewhat similar to the UNIX mkdir command. Note that the command requires the parent directory to exist.


<namespace>/<repo>/<path> (string)
The path of the directory to create.


--parents (string) new in v0.33.0
Create parent directories if needed. Does not error when directories already exist.