open-vault/website/content/docs/commands/token/index.mdx
Ashlee M Boyer f3df55ad58
docs: Migrate link formats (#18696)
* Adding check-legacy-links-format workflow

* Adding test-link-rewrites workflow

* Updating docs-content-check-legacy-links-format hash

* Migrating links to new format

Co-authored-by: Kendall Strautman <kendallstrautman@gmail.com>
2023-01-25 16:12:15 -08:00

54 lines
1.1 KiB
Plaintext

---
layout: docs
page_title: token - Command
description: |-
The "token" command groups subcommands for interacting with tokens. Users can
create, lookup, renew, and revoke tokens.
---
# token
The `token` command groups subcommands for interacting with tokens. Users can
create, lookup, renew, and revoke tokens.
For more information on tokens, please see the [token concepts
page](/vault/docs/concepts/tokens).
## Examples
Create a new token:
```shell-session
$ vault token create
```
Revoke a token:
```shell-session
$ vault token revoke 96ddf4bc-d217-f3ba-f9bd-017055595017
```
Renew a token:
```shell-session
$ vault token renew 96ddf4bc-d217-f3ba-f9bd-017055595017
```
## Usage
```text
Usage: vault token <subcommand> [options] [args]
# ...
Subcommands:
capabilities Print capabilities of a token on a path
create Create a new token
lookup Display information about a token
renew Renew a token lease
revoke Revoke a token and its children
```
For more information, examples, and usage about a subcommand, click on the name
of the subcommand in the sidebar.