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' ]