Erica Thompson 0660ea6fac
Update README (#31244)
* Update README

Let contributors know that docs will now be located in UDR

* Add comments to each mdx doc

Comment has been added to all mdx docs that are not partials

* chore: added changelog

changelog check failure

* wip: removed changelog

* Fix content errors

* Doc spacing

* Update website/content/docs/deploy/kubernetes/vso/helm.mdx

Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>

---------

Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com>
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
2025-07-22 08:12:22 -07:00

83 lines
2.4 KiB
Plaintext

---
layout: docs
page_title: auth - Command
description: |-
The "auth" command groups subcommands for interacting with Vault's auth
methods. Users can list, enable, disable, and get help for different auth
methods.
---
> [!IMPORTANT]
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
# auth
The `auth` command groups subcommands for interacting with Vault's auth methods.
Users can list, enable, disable, and get help for different auth methods.
For more information, please see the [auth method
documentation](/vault/docs/auth) or the [authentication
concepts](/vault/docs/concepts/auth) page.
To authenticate to Vault as a user or machine, use the [`vault login`](/vault/docs/commands/login) command instead. This command is for
interacting with the auth methods themselves, not authenticating to Vault.
## Examples
Enable an auth method:
```shell-session
$ vault auth enable userpass
Success! Enabled userpass auth method at: userpass/
```
List all auth methods:
```shell-session
$ vault auth list
Path Type Description
---- ---- -----------
token/ token token based credentials
userpass/ userpass n/a
```
Get help about how to authenticate to a particular auth method:
```shell-session
$ vault auth help userpass/
Usage: vault login -method=userpass [CONFIG K=V...]
# ...
```
Disable an auth method:
```shell-session
$ vault auth disable userpass/
Success! Disabled the auth method (if it existed) at: userpass/
```
Tune an auth method:
```shell-session
$ vault auth tune -max-lease-ttl=30m userpass/
Success! Tuned the auth method at: userpass/
```
## Usage
```text
Usage: vault auth <subcommand> [options] [args]
# ...
Subcommands:
disable Disables an auth method
enable Enables a new auth method
help Prints usage for an auth method
list Lists enabled auth methods
tune Tunes an auth method configuration
```
For more information, examples, and usage about a subcommand, click on the name
of the subcommand in the sidebar.