From a83160617e33dcb725d3f3326927793ef65997a2 Mon Sep 17 00:00:00 2001 From: Brian Shumate Date: Fri, 25 Oct 2019 12:25:04 -0400 Subject: [PATCH] Docs: Add version command (#7719) * Docs: Add version command * adding to --- website/source/docs/commands/version.html.md | 24 ++++++++++++++++++++ website/source/layouts/docs.erb | 1 + 2 files changed, 25 insertions(+) create mode 100644 website/source/docs/commands/version.html.md diff --git a/website/source/docs/commands/version.html.md b/website/source/docs/commands/version.html.md new file mode 100644 index 000000000..99ec93cbc --- /dev/null +++ b/website/source/docs/commands/version.html.md @@ -0,0 +1,24 @@ +--- +layout: "docs" +page_title: "version - Command" +sidebar_title: "version" +sidebar_current: "docs-commands-version" +description: |- + The "version" command prints the version of Vault. +--- + +# version + +The `version` command prints the Vault version: + +``` +$ vault version +Vault v1.2.3 +``` + +It can also be printed by adding the flags `--version` or `-v` to the `vault` command: + +``` +$ vault -v +Vault v1.2.3 +``` diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 8ea778239..2eff84a98 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -184,6 +184,7 @@ ] }, 'unwrap', + 'version', 'write', 'token-helper' ]