Namespace and the CLI

113 views
Skip to first unread message

Christopher Boyle

unread,
Sep 19, 2018, 3:51:13 PM9/19/18
to Vault
I have a Namespace that I would like to use but have not idea how to use it with the CLI. I can use it in an RPC call with X-Vault-Namespace. Please advise.

Calvin Leung Huang

unread,
Sep 19, 2018, 4:03:30 PM9/19/18
to Vault
Hi Christopher,

You can specify the that you want to operate on via the CLI by providing the `-namepsace` (or `-ns`) flag like so: `vault secrets list -namespace=my-namespace`.


- Calvin

Christopher Boyle

unread,
Sep 19, 2018, 4:12:48 PM9/19/18
to Vault
Thank you! I couldn't find this referenced in any docs.

Calvin Leung Huang

unread,
Sep 19, 2018, 4:38:52 PM9/19/18
to Vault
No problem! I've also opened a PR to update our docs to indicate where flag information can be found: https://github.com/hashicorp/vault/pull/5363.


- Calvin
Reply all
Reply to author
Forward
0 new messages