diff --git a/website/content/docs/commands/print.mdx b/website/content/docs/commands/print.mdx new file mode 100644 index 000000000000..9b5f8607c692 --- /dev/null +++ b/website/content/docs/commands/print.mdx @@ -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 +``` \ No newline at end of file diff --git a/website/data/docs-nav-data.json b/website/data/docs-nav-data.json index dde3c2596410..a42f050caee9 100644 --- a/website/data/docs-nav-data.json +++ b/website/data/docs-nav-data.json @@ -770,6 +770,10 @@ } ] }, + { + "title": "print", + "path": "commands/print" + }, { "title": "read", "path": "commands/read"