[{"data":1,"prerenderedAt":425,"buildId":426},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fupdate":3},{"id":4,"title":5,"body":6,"description":409,"extension":410,"frontmatter":411,"heading":15,"meta":416,"navigation":418,"order":397,"path":419,"seo":420,"sitemap":421,"source":422,"stem":423,"__hash__":424},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fupdate.md","kubb update - Update extensions to the pinned version",{"type":7,"value":8,"toc":395},"minimark",[9,21,30,78,83,118,122,180,193,197,212,216,271,279,283,317,321,325,338],[10,11,12,16,17,20],"p",{},[13,14,15],"code",{},"kubb update"," moves installed extensions to the version the registry pins. It shows each version change, asks which updates to install, installs them, then offers to generate again. It never changes ",[13,18,19],{},"kubb.config.ts"," and never downgrades.",[10,22,23,24,29],{},"Ids, versions, and project files work as in ",[25,26,28],"a",{"href":27},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#extension-commands","Extension commands",".",[31,32,37],"pre",{"language":33,"filename":34,"code":35,"class":36},"shell","Terminal","kubb update # check every installed extension\nkubb update --dry-run # list updates, install nothing\nkubb update plugin-zod plugin-ts --yes # two extensions, no prompt","highlights",[13,38,40,57,58,57,68],{"class":39},"language-shell",[41,42,45,49,53],"span",{"class":43,"style":44},"line","display: inline",[41,46,48],{"style":47},"color:#6f42c1;--hls-dark:#b392f0","kubb ",[41,50,52],{"style":51},"color:#24292e;--hls-dark:#e1e4e8","update ",[41,54,56],{"style":55},"color:#6a737d;--hls-dark:#6a737d","# check every installed extension","\n",[41,59,60,62,65],{"class":43,"style":44},[41,61,48],{"style":47},[41,63,64],{"style":51},"update --dry-run ",[41,66,67],{"style":55},"# list updates, install nothing",[41,69,70,72,75],{"class":43,"style":44},[41,71,48],{"style":47},[41,73,74],{"style":51},"update plugin-zod plugin-ts --yes ",[41,76,77],{"style":55},"# two extensions, no prompt",[79,80,82],"h2",{"id":81},"arguments","Arguments",[84,85,86,99],"table",{},[87,88,89],"thead",{},[90,91,92,96],"tr",{},[93,94,95],"th",{},"Argument",[93,97,98],{},"What it does",[100,101,102],"tbody",{},[90,103,104,110],{},[105,106,107],"td",{},[13,108,109],{},"[ids...]",[105,111,112,113,117],{},"The ",[25,114,116],{"href":115},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#ids","registry ids"," to update. Without ids, it checks every installed extension the registry lists.",[79,119,121],{"id":120},"pick-the-updates","Pick the updates",[31,123,127],{"language":124,"filename":125,"code":126,"class":36},"text","Output","◇ Checked 3 extensions against the registry\n│ Extension Current Latest\n│ @kubb\u002Fplugin-ts 5.0.0 5.2.0 minor\n│ @kubb\u002Fplugin-zod 5.2.0 6.0.0 major · breaking\n│ @kubb\u002Fplugin-msw 5.4.2 up to date\n│\n◆ Select the updates to install\n│ ◼ @kubb\u002Fplugin-ts (5.0.0 → 5.2.0)\n│ ◻ @kubb\u002Fplugin-zod (5.2.0 → 6.0.0)\n│ ↑\u002F↓ to navigate • Space: select • Enter: confirm",[13,128,130,57,135,57,140,57,145,57,150,57,155,57,160,57,165,57,170,57,175],{"class":129},"language-text",[41,131,132],{"class":43,"style":44},[41,133,134],{"style":51},"◇ Checked 3 extensions against the registry",[41,136,137],{"class":43,"style":44},[41,138,139],{"style":51},"│ Extension Current Latest",[41,141,142],{"class":43,"style":44},[41,143,144],{"style":51},"│ @kubb\u002Fplugin-ts 5.0.0 5.2.0 minor",[41,146,147],{"class":43,"style":44},[41,148,149],{"style":51},"│ @kubb\u002Fplugin-zod 5.2.0 6.0.0 major · breaking",[41,151,152],{"class":43,"style":44},[41,153,154],{"style":51},"│ @kubb\u002Fplugin-msw 5.4.2 up to date",[41,156,157],{"class":43,"style":44},[41,158,159],{"style":51},"│",[41,161,162],{"class":43,"style":44},[41,163,164],{"style":51},"◆ Select the updates to install",[41,166,167],{"class":43,"style":44},[41,168,169],{"style":51},"│ ◼ @kubb\u002Fplugin-ts (5.0.0 → 5.2.0)",[41,171,172],{"class":43,"style":44},[41,173,174],{"style":51},"│ ◻ @kubb\u002Fplugin-zod (5.2.0 → 6.0.0)",[41,176,177],{"class":43,"style":44},[41,178,179],{"style":51},"│ ↑\u002F↓ to navigate • Space: select • Enter: confirm",[181,182,183,187,190],"ul",{},[184,185,186],"li",{},"Minor and patch updates start selected.",[184,188,189],{},"A major starts unselected unless you named its id, since it can break the generated code.",[184,191,192],{},"After the install, it asks whether to generate again, since that rewrites the generated files.",[79,194,196],{"id":195},"update-scope","Which extensions it updates",[10,198,199,200,203,204,207,208,29],{},"An extension gets an update when its installed version is older than the pinned one, or when ",[13,201,202],{},"package.json"," lists it but it is not installed. Kubb skips an update that does not support your Kubb or Node.js version and prints ",[13,205,206],{},"Skipped \u003Cid>: \u003Creason>",". See ",[25,209,211],{"href":210},"#command-output","Command output",[79,213,215],{"id":214},"options","Options",[84,217,218,233],{},[87,219,220],{},[90,221,222,225,228,231],{},[93,223,224],{},"Flag",[93,226,227],{},"Alias",[93,229,230],{},"Default",[93,232,98],{},[100,234,235,255],{},[90,236,237,242,247,252],{},[105,238,239],{},[13,240,241],{},"--yes",[105,243,244],{},[13,245,246],{},"-y",[105,248,249],{},[13,250,251],{},"false",[105,253,254],{},"Skip the prompts. Installs every update except majors you did not name, and does not regenerate.",[90,256,257,262,264,268],{},[105,258,259],{},[13,260,261],{},"--dry-run",[105,263],{},[105,265,266],{},[13,267,251],{},[105,269,270],{},"List the updates, then stop. Nothing changes.",[272,273,275,276,278],"blockquote",{"as":274},"tip","Pass ",[13,277,241],{}," in scripts and CI, where no one can answer the prompt.",[79,280,282],{"id":281},"exit-codes","Exit codes",[84,284,285,295],{},[87,286,287],{},[90,288,289,292],{},[93,290,291],{},"Code",[93,293,294],{},"When",[100,296,297,307],{},[90,298,299,304],{},[105,300,301],{},[13,302,303],{},"0",[105,305,306],{},"The updates are installed, nothing is outdated, or you canceled a prompt. Also when the generation after the install fails.",[90,308,309,314],{},[105,310,311],{},[13,312,313],{},"1",[105,315,316],{},"An id is malformed (nothing updates) or not installed (the other ids still update), a named extension's update is not compatible, the registry cannot be read, or the install fails.",[79,318,320],{"id":319},"less-common-cases","Less common cases",[322,323,211],"h3",{"id":324},"command-output",[10,326,327,328,330,331,337],{},"After the install, ",[13,329,15],{}," finds the config like ",[25,332,334],{"href":333},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fgenerate",[13,335,336],{},"kubb generate"," and asks whether to generate again. The summary lists installed and skipped packages and changed files.",[84,339,340,350],{},[87,341,342],{},[90,343,344,347],{},[93,345,346],{},"Case",[93,348,349],{},"Result",[100,351,352,362,373,384],{},[90,353,354,357],{},[105,355,356],{},"An update does not support your Kubb or Node.js version",[105,358,359,360,29],{},"Skipped with ",[13,361,206],{},[90,363,364,367],{},[105,365,366],{},"A named id matches no installed extension",[105,368,369,372],{},[13,370,371],{},"\u003Cid> is not installed, or not in the registry."," Other ids still update, and the exit code is 1.",[90,374,375,378],{},[105,376,377],{},"Nothing is outdated",[105,379,380,381,29],{},"The summary says ",[13,382,383],{},"Already up to date",[90,385,386,389],{},[105,387,388],{},"The generation after the install fails",[105,390,380,391,394],{},[13,392,393],{},"Extensions updated; generation failed",", and the exit code stays 0.",{"title":396,"searchDepth":397,"depth":397,"links":398},"",5,[399,401,402,403,404,405],{"id":81,"depth":400,"text":82},2,{"id":120,"depth":400,"text":121},{"id":195,"depth":400,"text":196},{"id":214,"depth":400,"text":215},{"id":281,"depth":400,"text":282},{"id":319,"depth":400,"text":320,"children":406},[407],{"id":324,"depth":408,"text":211},3,"The update command moves installed Kubb extensions to the version the Kubb extension registry pins, or lists the available updates with --dry-run.","md",{"layout":412,"title":5,"description":409,"outline":413,"order":397,"navigation":414},"doc",[400,408],{"title":15,"icon":415},"i-iconoir-refresh-double",{"layout":412,"outline":417},[400,408],{"title":15,"icon":415},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fupdate",{"title":5,"description":409},{"loc":419},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fupdate.md","docs\u002F5.x\u002Freference\u002Fcommands\u002Fupdate","hS-6l8VDG1PbyJ0uzQNjUUcWDcNa_WDImEtBc9oi2To",1795727677389,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]