2017-09-08 02:14:26 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: token - Command
|
2017-09-08 02:14:26 +00:00
|
|
|
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
|
2023-01-26 00:12:15 +00:00
|
|
|
page](/vault/docs/concepts/tokens).
|
2017-09-08 02:14:26 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Create a new token:
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-09-08 02:14:26 +00:00
|
|
|
$ vault token create
|
|
|
|
```
|
|
|
|
|
|
|
|
Revoke a token:
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-09-08 02:14:26 +00:00
|
|
|
$ vault token revoke 96ddf4bc-d217-f3ba-f9bd-017055595017
|
|
|
|
```
|
|
|
|
|
|
|
|
Renew a token:
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-09-08 02:14:26 +00:00
|
|
|
$ 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.
|