1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["12569"],{80158(e,n,s){s.r(n),s.d(n,{metadata:()=>i,default:()=>h,frontMatter:()=>r,contentTitle:()=>a,toc:()=>d,assets:()=>l});var i=JSON.parse('{"id":"commands/kv/enable-versioning","title":"kv enable-versioning","description":"The \\"kv enable-versioning\\" command turns on versioning for the backend\\nat the provided path.","source":"@site/versioned_docs/version-2.7.x/commands/kv/enable-versioning.mdx","sourceDirName":"commands/kv","slug":"/commands/kv/enable-versioning","permalink":"/docs/commands/kv/enable-versioning","draft":false,"unlisted":false,"editUrl":"https://github.com/openbao/openbao/blob/release/2.7.x/website/content/docs/commands/kv/enable-versioning.mdx","tags":[],"version":"2.7.x","frontMatter":{"sidebar_label":"enable-versioning","description":"The \\"kv enable-versioning\\" command turns on versioning for the backend\\nat the provided path."},"sidebar":"docs","previous":{"title":"destroy","permalink":"/docs/commands/kv/destroy"},"next":{"title":"get","permalink":"/docs/commands/kv/get"}}'),o=s(94686),t=s(44812);let r={sidebar_label:"enable-versioning",description:'The "kv enable-versioning" command turns on versioning for the backend\nat the provided path.'},a="kv enable-versioning",l={},d=[{value:"Examples",id:"examples",level:2},{value:"Usage",id:"usage",level:2},{value:"Output options",id:"output-options",level:3}];function c(e){let n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"kv-enable-versioning",children:"kv enable-versioning"})}),"\n",(0,o.jsxs)(n.p,{children:["The ",(0,o.jsx)(n.code,{children:"kv enable-versioning"})," command turns on versioning for an existing\nnon-versioned key/value secrets engine (K/V Version 1) at its path."]}),"\n",(0,o.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,o.jsx)(n.p,{children:'This command turns on versioning for the K/V Version 1 secrets engine enabled at\n"secret".'}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-shell-session",children:"$ bao kv enable-versioning secret\nSuccess! Tuned the secrets engine at: secret/\n"})}),"\n",(0,o.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsxs)(n.p,{children:["There are no flags beyond the ",(0,o.jsx)(n.a,{href:"/docs/commands/",children:"standard set of flags"}),"\nincluded on all commands."]}),"\n",(0,o.jsx)(n.h3,{id:"output-options",children:"Output options"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"-format"})," ",(0,o.jsx)(n.code,{children:'(string: "table")'}),' - Print the output in the given format. Valid\nformats are "table", "json", or "yaml". This can also be specified via the\n',(0,o.jsx)(n.code,{children:"BAO_FORMAT"})," environment variable."]}),"\n"]})]})}function h(e={}){let{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},44812(e,n,s){s.d(n,{R:()=>r,x:()=>a});var i=s(92990);let o={},t=i.createContext(o);function r(e){let n=i.useContext(t);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),i.createElement(t.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.