Skip to content

Commit

Permalink
Add vault print token to commands in Vault docs (hashicorp#19183) (ha…
Browse files Browse the repository at this point in the history
…shicorp#20428)

* doc-update

* Update website/content/docs/commands/print.mdx



---------

Co-authored-by: Max Winslow <43095669+maxiscoding28@users.noreply.github.com>
  • Loading branch information
yhyakuna and maxiscoding28 committed Apr 28, 2023
1 parent afc3a90 commit c8bd520
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions website/content/docs/commands/print.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: docs
page_title: version - Command
description: The "print" command prints the Vault token currently in use.
---

# print

The `print` command prints the Vault token currently in use. The only available subcommand is `token`.

## Examples

Print the current token.

```shell-session
$ vault print token
hvs.CAESICaie3Dm0_Hx001QuMabo1IXnyKkx_FuE14MH7zir_bqGh4KHGh2cy5wQnJsZzZ6WG82b29HUlI3eFdEQ0NPQzQ
```
4 changes: 4 additions & 0 deletions website/data/docs-nav-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,10 @@
}
]
},
{
"title": "<code>print</code>",
"path": "commands/print"
},
{
"title": "<code>read</code>",
"path": "commands/read"
Expand Down

0 comments on commit c8bd520

Please sign in to comment.