--- layout: docs page_title: kv enable-versioning - Command description: |- The "kv enable-versioning" command turns on versioning for the backend at the provided path. --- > [!IMPORTANT] > **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website. # kv enable-versioning The `kv enable-versioning` command turns on versioning for an existing non-versioned key/value secrets engine (KV version 1) at its path. ## Examples This command turns on versioning for the KV version 1 secrets engine enabled at "secret". ```shell-session $ vault kv enable-versioning secret Success! Tuned the secrets engine at: secret/ ``` ## Usage There are no flags beyond the [standard set of flags](/vault/docs/commands) included on all commands. ### Output options - `-format` `(string: "table")` - Print the output in the given format. Valid formats are "table", "json", or "yaml". This can also be specified via the `VAULT_FORMAT` environment variable.