vault user
Manage stored user identities (logged-in accounts).
vault user list
Section link for vault user listLists every stored user. Shows which user is current.
vault user list [--format <FORMAT>]Options
Section link for Options| Option | Type | Required | Description |
|---|---|---|---|
--format <FORMAT> | table | json | Optional | Output format. Default: table |
This command also accepts the global options.
Examples
Section link for ExamplesList stored users
Section link for List stored usersvault user listJSON output
Section link for JSON outputvault user list --format jsonvault user switch
Section link for vault user switchSwitches which stored user is current. If USERNAME is omitted, auto-selects when one stored user is available, or shows an interactive picker when more than one stored user is available (TTY only). In a non-interactive context with more than one stored user, the command errors: multiple stored users; specify one: vault user switch <username>.
vault user switch [<USERNAME>]Options
Section link for Options| Option | Type | Required | Description |
|---|---|---|---|
<USERNAME> | string | Optional | Username to switch to. Omit to auto-select (one stored user) or pick interactively (multiple users, TTY) |
This command also accepts the global options.
Examples
Section link for ExamplesSwitch interactively
Section link for Switch interactivelyvault user switchWhen more than one stored user is available and the shell is a TTY, the CLI shows an interactive picker. When only one stored user is available, it is selected automatically.
Switch to a specific user
Section link for Switch to a specific uservault user switch user@example.com