[{"data":1,"prerenderedAt":1420,"buildId":1421},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio":3},{"id":4,"title":5,"body":6,"description":1403,"extension":1404,"frontmatter":1405,"heading":15,"meta":1411,"navigation":1413,"order":1408,"path":1414,"seo":1415,"sitemap":1416,"source":1417,"stem":1418,"__hash__":1419},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio.md","kubb studio - Connect a project to Kubb Studio",{"type":7,"value":8,"toc":1369},"minimark",[9,32,54,59,62,66,90,94,101,203,207,225,228,250,263,268,285,289,308,312,422,425,428,571,579,582,598,706,721,740,744,754,758,768,772,790,801,808,812,846,850,853,860,865,894,927,978,982,1023,1044,1048,1093,1099,1102,1107,1114,1152,1156,1183,1187,1223,1230,1242,1245,1258,1293,1296,1352],[10,11,12,16,17,22,23,27,28,31],"p",{},[13,14,15],"code",{},"kubb studio"," connects your project to ",[18,19,21],"a",{"href":20},"https:\u002F\u002Fkubb.studio","Kubb Studio",". The CLI generates on your machine and sends progress and file paths to Studio. To share more, grant ",[18,24,26],{"href":25},"#permissions","permissions",", such as ",[13,29,30],{},"--allow-read"," for file contents.",[33,34,38],"pre",{"language":35,"filename":36,"code":15,"class":37},"shell","Terminal","highlights",[13,39,41],{"class":40},"language-shell",[42,43,46,50],"span",{"class":44,"style":45},"line","display: inline",[42,47,49],{"style":48},"color:#6f42c1;--hls-dark:#b392f0","kubb ",[42,51,53],{"style":52},"color:#24292e;--hls-dark:#e1e4e8","studio",[55,56,58],"h2",{"id":57},"pair-the-machine","Pair the machine",[10,60,61],{},"On the first run, the CLI pairs your machine:",[63,64],"mermaid",{"svg":65},"\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" class=\"pele pele-sequence\" viewBox=\"0 0 483 352\" width=\"483\" height=\"352\" style=\"--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"sequence\">\u003Cg transform=\"translate(64.91,8)\">\u003Cg class=\"pele-lifelines\" fill=\"none\" stroke=\"var(--_b)\">\u003Cpath class=\"pele-lifeline\" data-id=\"CLI\" d=\"M0,44V292\"\u002F>\u003Cpath class=\"pele-lifeline\" data-id=\"You\" d=\"M226.95,44V292\"\u002F>\u003Cpath class=\"pele-lifeline\" data-id=\"Studio\" d=\"M370.68,44V292\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\">\u003Cg class=\"pele-edge pele-message\" data-id=\"i0\">\u003Cpath d=\"M0,87H219.95\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M226.95,87L218.95,90.36L218.95,83.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i1\">\u003Cpath d=\"M226.95,124H363.68\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M370.68,124L362.68,127.36L362.68,120.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i2\">\u003Cpath d=\"M370.68,161H7\" stroke-dasharray=\"4 4\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M0,161L8,157.64L8,164.36Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i3\">\u003Cpath d=\"M0,198H219.95\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M226.95,198L218.95,201.36L218.95,194.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i4\">\u003Cpath d=\"M0,235H363.68\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M370.68,235L362.68,238.36L362.68,231.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-message\" data-id=\"i5\">\u003Cpath d=\"M370.68,272H7\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M0,272L8,268.64L8,275.36Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-edge-labels\" font-size=\"14\">\u003Cg class=\"pele-edge-label\" data-id=\"i0\">\u003Ctext x=\"113.47\" y=\"77.4\" text-anchor=\"middle\">Show pairing code and page\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i1\">\u003Ctext x=\"298.81\" y=\"114.4\" text-anchor=\"middle\">Approve the code\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i2\">\u003Ctext x=\"185.34\" y=\"151.4\" text-anchor=\"middle\">Token\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i3\">\u003Ctext x=\"113.47\" y=\"188.4\" text-anchor=\"middle\">Ask which permissions to grant\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i4\">\u003Ctext x=\"185.34\" y=\"225.4\" text-anchor=\"middle\">Connect\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"i5\">\u003Crect x=\"132.93\" y=\"249\" width=\"104.83\" height=\"17\" rx=\"3\" fill=\"var(--_bg)\" stroke=\"none\"\u002F>\u003Ctext x=\"185.34\" y=\"262.4\" text-anchor=\"middle\">Generation jobs\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-nodes\">\u003Cg class=\"pele-node pele-actor pele-actor-participant pele-actor-footer\" data-id=\"CLI\">\u003Crect x=\"-56.91\" y=\"292\" width=\"113.82\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"319.6\" text-anchor=\"middle\">kubb studio\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant pele-actor-footer\" data-id=\"You\">\u003Crect x=\"194.95\" y=\"292\" width=\"64\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"226.95\" y=\"319.6\" text-anchor=\"middle\">You\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant pele-actor-footer\" data-id=\"Studio\">\u003Crect x=\"332\" y=\"292\" width=\"77.36\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"370.68\" y=\"319.6\" text-anchor=\"middle\">Studio\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant\" data-id=\"CLI\">\u003Crect x=\"-56.91\" y=\"0\" width=\"113.82\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"27.6\" text-anchor=\"middle\">kubb studio\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant\" data-id=\"You\">\u003Crect x=\"194.95\" y=\"0\" width=\"64\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"226.95\" y=\"27.6\" text-anchor=\"middle\">You\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-actor pele-actor-participant\" data-id=\"Studio\">\u003Crect x=\"332\" y=\"0\" width=\"77.36\" height=\"44\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"370.68\" y=\"27.6\" text-anchor=\"middle\">Studio\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>",[67,68,69,73,76,79],"ul",{},[70,71,72],"li",{},"Approve the code before it expires. The CLI copies it to the clipboard when it can.",[70,74,75],{},"The permission list starts unchecked. The CLI remembers your answers per project folder.",[70,77,78],{},"Each job logs one line: time, command, requester, and result. Steps and diagnostics stay in Studio.",[70,80,81,82,85,86,89],{},"Press ",[13,83,84],{},"b"," to move the session to the background worker, like ",[13,87,88],{},"kubb studio start",".",[55,91,93],{"id":92},"actions","Actions",[10,95,96,97,100],{},"The first argument picks the action, ",[13,98,99],{},"connect"," by default.",[102,103,104,117],"table",{},[105,106,107],"thead",{},[108,109,110,114],"tr",{},[111,112,113],"th",{},"Action",[111,115,116],{},"What it does",[118,119,120,130,140,150,160,170,180,189],"tbody",{},[108,121,122,127],{},[123,124,125],"td",{},[13,126,99],{},[123,128,129],{},"Holds a foreground session open and generates on request",[108,131,132,137],{},[123,133,134],{},[13,135,136],{},"start",[123,138,139],{},"Resolves pairing and permissions, then connects in the background",[108,141,142,147],{},[123,143,144],{},[13,145,146],{},"stop",[123,148,149],{},"Stops the background worker and keeps its pairing",[108,151,152,157],{},[123,153,154],{},[13,155,156],{},"login",[123,158,159],{},"Pairs this machine again without a session. Saved permissions reset.",[108,161,162,167],{},[123,163,164],{},[13,165,166],{},"logout",[123,168,169],{},"Stops the worker and forgets this project's token",[108,171,172,177],{},[123,173,174],{},[13,175,176],{},"status",[123,178,179],{},"Shows pairing, worker state, permissions, and the log path, each with the command that changes it",[108,181,182,186],{},[123,183,184],{},[13,185,26],{},[123,187,188],{},"Changes saved permissions without pairing again. Needs an interactive terminal.",[108,190,191,196],{},[123,192,193],{},[13,194,195],{},"snapshot",[123,197,198,199,89],{},"Generates, packs, and uploads a snapshot, then exits. See ",[18,200,202],{"href":201},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Fci","Publish snapshots from CI",[55,204,206],{"id":205},"background-connection","Background connection",[10,208,209,210,212,213,215,216,218,219,221,222,224],{},"Run ",[13,211,136],{},", ",[13,214,176],{},", and ",[13,217,146],{}," from the same project folder. ",[13,220,136],{}," asks its questions, then returns while the worker connects. ",[13,223,176],{}," reports its state:",[63,226],{"svg":227},"\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" class=\"pele pele-state\" viewBox=\"0 0 317 519\" width=\"317\" height=\"519\" style=\"--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"state\">\u003Cg class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\">\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge0\">\u003Cpath d=\"M146.02,22L146.02,84\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M146.02,91L142.66,83L149.38,83Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge1\">\u003Cpath d=\"M146.02,135L146.02,172\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M146.02,179L142.66,171L149.38,171Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge2\">\u003Cpath d=\"M130.02,223L130.02,231.09C130.02,236.3 85.33,236.3 85.33,241.5L85.33,285\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M85.33,292L81.97,284L88.69,284Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge3\">\u003Cpath d=\"M146.02,292L146.02,230\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M146.02,223L149.38,231L142.66,231Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge4\">\u003Cpath d=\"M105.38,336L105.38,398\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M105.38,405L102.02,397L108.74,397Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge5\">\u003Cpath d=\"M162.02,223L162.02,231.09C162.02,235.93 251.64,236.67 251.64,241.5L251.64,285\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M251.64,292L248.28,284L255,284Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge6\">\u003Cpath d=\"M105.38,449C105.38,464.5 178.51,464.5 178.51,480L178.51,486\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M178.51,493L175.15,485L181.87,485Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge pele-transition\" data-id=\"edge7\">\u003Cpath d=\"M251.64,336L251.64,449C251.64,464.5 178.51,464.5 178.51,480L178.51,486\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M178.51,493L175.15,485L181.87,485Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-edge-labels\" font-size=\"14\">\u003Cg class=\"pele-edge-label\" data-id=\"edge0\">\u003Crect x=\"90.66\" y=\"42.5\" width=\"110.72\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"146.02\" y=\"57.9\" text-anchor=\"middle\">kubb studio start\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"edge2\">\u003Crect x=\"34.64\" y=\"243.5\" width=\"101.38\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"85.33\" y=\"258.9\" text-anchor=\"middle\">connection lost\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"edge4\">\u003Crect x=\"57.41\" y=\"356.5\" width=\"95.93\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"105.38\" y=\"371.9\" text-anchor=\"middle\">token rejected\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-edge-label\" data-id=\"edge5\">\u003Crect x=\"196.67\" y=\"243.5\" width=\"109.95\" height=\"21\" rx=\"3\" fill=\"var(--_bg)\"\u002F>\u003Ctext x=\"251.64\" y=\"258.9\" text-anchor=\"middle\">kubb studio stop\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-nodes\">\u003Cg class=\"pele-node pele-state\" data-id=\"auth\" transform=\"translate(105.38,427)\">\u003Crect x=\"-97.38\" y=\"-22\" width=\"194.75\" height=\"44\" rx=\"10\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">authentication required\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-state-start\" data-id=\"root_start\" transform=\"translate(146.02,15)\">\u003Ccircle r=\"7\" fill=\"var(--_l)\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-node pele-state\" data-id=\"starting\" transform=\"translate(146.02,113)\">\u003Crect x=\"-42.23\" y=\"-22\" width=\"84.46\" height=\"44\" rx=\"10\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">starting\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-state\" data-id=\"connected\" transform=\"translate(146.02,201)\">\u003Crect x=\"-52.91\" y=\"-22\" width=\"105.82\" height=\"44\" rx=\"10\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">connected\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-state\" data-id=\"reconnecting\" transform=\"translate(105.38,314)\">\u003Crect x=\"-61.8\" y=\"-22\" width=\"123.6\" height=\"44\" rx=\"10\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">reconnecting\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-state\" data-id=\"stopped\" transform=\"translate(251.64,314)\">\u003Crect x=\"-44.46\" y=\"-22\" width=\"88.93\" height=\"44\" rx=\"10\" fill=\"var(--_s)\" stroke=\"var(--_b)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">stopped\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-state-end\" data-id=\"root_end\" transform=\"translate(178.51,502)\">\u003Ccircle r=\"8.5\" fill=\"var(--_bg)\" stroke=\"var(--_l)\"\u002F>\u003Ccircle r=\"5\" fill=\"var(--_l)\"\u002F>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>",[67,229,230,235,238,247],{},[70,231,232,233,89],{},"One worker owns a project. Stop it before a foreground ",[13,234,99],{},[70,236,237],{},"The worker survives a closed terminal and retries temporary failures. Start it again after a crash or reboot.",[70,239,240,241,244,245,89],{},"When its token is rejected, run ",[13,242,243],{},"kubb studio login",", then ",[13,246,88],{},[70,248,249],{},"To change the URL or config, stop the worker and start it with the new flags.",[251,252,254,255,258,259,262],"blockquote",{"as":253},"warning","Flags only add permissions. To turn one off, run ",[13,256,257],{},"kubb studio permissions",", then restart without that ",[13,260,261],{},"--allow-*"," flag. A running connection keeps the old permissions until it restarts.",[264,265,267],"h3",{"id":266},"credentials","Credentials",[10,269,270,271,212,277,280,281,89],{},"Credentials, worker state, and the worker log live in ",[18,272,274],{"href":273},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#environment-variables",[13,275,276],{},"KUBB_HOME",[13,278,279],{},"~\u002F.kubb"," by default. See ",[18,282,284],{"href":283},"#studio-credentials","Studio credentials",[55,286,288],{"id":287},"options","Options",[10,290,291,212,293,215,295,297,298,300,301,304,305,307],{},[13,292,99],{},[13,294,136],{},[13,296,156],{}," take the connection and permission flags. ",[13,299,176],{}," takes ",[13,302,303],{},"--url"," only, and ",[13,306,195],{}," has its own set.",[264,309,311],{"id":310},"connection","Connection",[102,313,314,329],{},[105,315,316],{},[108,317,318,321,324,327],{},[111,319,320],{},"Flag",[111,322,323],{},"Alias",[111,325,326],{},"Default",[111,328,116],{},[118,330,331,351,381,395],{},[108,332,333,338,343,345],{},[123,334,335],{},[13,336,337],{},"--config \u003Cpath>",[123,339,340],{},[13,341,342],{},"-c",[123,344],{},[123,346,347,348],{},"Config file path, such as ",[13,349,350],{},".\u002Fkubb.staging.ts",[108,352,353,358,360,364],{},[123,354,355],{},[13,356,357],{},"--url \u003Curl>",[123,359],{},[123,361,362],{},[13,363,20],{},[123,365,366,367,370,371,212,374,377,378,89],{},"Studio URL. Plain ",[13,368,369],{},"http:\u002F\u002F"," works only for ",[13,372,373],{},"localhost",[13,375,376],{},"127.0.0.1",", or ",[13,379,380],{},"[::1]",[108,382,383,388,390,392],{},[123,384,385],{},[13,386,387],{},"--no-open",[123,389],{},[123,391],{},[123,393,394],{},"Skips opening the approval page",[108,396,397,402,407,412],{},[123,398,399],{},[13,400,401],{},"--log-level \u003Clevel>",[123,403,404],{},[13,405,406],{},"-l",[123,408,409],{},[13,410,411],{},"info",[123,413,414,212,417,377,419],{},[13,415,416],{},"silent",[13,418,411],{},[13,420,421],{},"verbose",[264,423,424],{"id":26},"Permissions",[10,426,427],{},"Each permission is off by default. The CLI asks once per project for each one you do not pass. Outside an interactive terminal, it skips the questions, so pass the flags the run needs.",[102,429,430,439],{},[105,431,432],{},[108,433,434,436],{},[111,435,320],{},[111,437,438],{},"Lets Studio",[118,440,441,450,460,470,483,499,513,528,544,558],{},[108,442,443,447],{},[123,444,445],{},[13,446,30],{},[123,448,449],{},"Read generated file contents",[108,451,452,457],{},[123,453,454],{},[13,455,456],{},"--allow-read-ast",[123,458,459],{},"Read the parsed spec (the Kubb AST)",[108,461,462,467],{},[123,463,464],{},[13,465,466],{},"--allow-write",[123,468,469],{},"Write generated files to disk",[108,471,472,477],{},[123,473,474],{},[13,475,476],{},"--allow-config-edit",[123,478,479,480],{},"Change plugin options in ",[13,481,482],{},"kubb.config.ts",[108,484,485,490],{},[123,486,487],{},[13,488,489],{},"--allow-install",[123,491,492,493,496,497,89],{},"Install extensions with ",[13,494,495],{},"kubb add",". Needs ",[13,498,476],{},[108,500,501,506],{},[123,502,503],{},[13,504,505],{},"--allow-update",[123,507,508,509,512],{},"Update extensions with ",[13,510,511],{},"kubb update",", leaving the config as is",[108,514,515,520],{},[123,516,517],{},[13,518,519],{},"--allow-remove",[123,521,522,523,496,526,89],{},"Remove extensions with ",[13,524,525],{},"kubb remove",[13,527,476],{},[108,529,530,535],{},[123,531,532],{},[13,533,534],{},"--allow-save-input",[123,536,537,538,541,542,89],{},"Save the spec it sends and point ",[13,539,540],{},"input"," at it. Needs ",[13,543,476],{},[108,545,546,551],{},[123,547,548],{},[13,549,550],{},"--allow-file-refs",[123,552,553,554,557],{},"Let a ",[13,555,556],{},"$ref"," read a local file outside the project, or a URL on a host that is not public",[108,559,560,565],{},[123,561,562],{},[13,563,564],{},"--allow-exec",[123,566,567,568],{},"Run the formatter, the linter, and ",[13,569,570],{},"output.postGenerate",[10,572,573,574,578],{},"See ",[18,575,577],{"href":576},"#studio-permissions","Studio permissions"," for what each one changes.",[264,580,581],{"id":195},"Snapshot",[10,583,584,300,586,212,589,212,591,594,595,597],{},[13,585,195],{},[13,587,588],{},"--config",[13,590,303],{},[13,592,593],{},"--log-level",", and these flags, but no ",[13,596,261],{}," flag.",[102,599,600,610],{},[105,601,602],{},[108,603,604,606,608],{},[111,605,320],{},[111,607,326],{},[111,609,116],{},[118,611,612,627,640,656,675,691],{},[108,613,614,619,624],{},[123,615,616],{},[13,617,618],{},"--token \u003Ckey>",[123,620,621],{},[13,622,623],{},"KUBB_TOKEN",[123,625,626],{},"Organization CI API key",[108,628,629,634,637],{},[123,630,631],{},[13,632,633],{},"--id \u003Cid>",[123,635,636],{},"Detected",[123,638,639],{},"Stable CI agent identity",[108,641,642,647,649],{},[123,643,644],{},[13,645,646],{},"--base-id \u003Cid>",[123,648,636],{},[123,650,651,652,655],{},"Another CI agent's ",[13,653,654],{},"--id"," to also compare with, such as the base branch's",[108,657,658,663,669],{},[123,659,660],{},[13,661,662],{},"--name \u003Cname>",[123,664,665,666],{},"From ",[13,667,668],{},"package.json",[123,670,671,672,674],{},"Tarball package name, from the nearest ",[13,673,668],{}," with a name and version",[108,676,677,682,686],{},[123,678,679],{},[13,680,681],{},"--package-version \u003Cversion>",[123,683,665,684],{},[13,685,668],{},[123,687,688,689],{},"Tarball package version, from the same ",[13,690,668],{},[108,692,693,698,703],{},[123,694,695],{},[13,696,697],{},"--json",[123,699,700],{},[13,701,702],{},"false",[123,704,705],{},"Prints the result as one JSON object",[10,707,708,710,711,714,715,717,718,720],{},[13,709,195],{}," generates like ",[13,712,713],{},"kubb generate",", then runs the formatter, the linter, and ",[13,716,570],{},". It refuses a tarball over 50 MB. In CI, the CLI refuses to pair and needs stored credentials, so use ",[13,719,195],{}," there.",[251,722,724,725,728,729,732,733,735,736,739],{"as":723},"important","Install ",[13,726,727],{},"tsdown"," first: ",[13,730,731],{},"npm i -D tsdown",". ",[13,734,195],{}," builds the package's ",[13,737,738],{},"dist"," files with it.",[55,741,743],{"id":742},"snapshot-output","Snapshot output",[10,745,746,748,749,753],{},[13,747,697],{}," prints one object with the snapshot's id, version, URLs, and comparisons. See ",[18,750,752],{"href":751},"#studio-ci-snapshots","CI snapshots"," for its fields.",[55,755,757],{"id":756},"ci-agent-identity","CI agent identity",[10,759,760,762,763,765,766,89],{},[13,761,195],{}," detects GitHub Actions, GitLab CI, Bitbucket Pipelines, and CircleCI. Other providers need a stable ",[13,764,654],{},". See ",[18,767,752],{"href":751},[55,769,771],{"id":770},"plugins-in-studio","Plugins in Studio",[10,773,774,775,779,780,783,784,789],{},"Studio builds its plugin list and option forms from ",[18,776,778],{"href":777},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fmanifest","extension manifests",". A third-party plugin works once it is installed and ships a manifest with ",[13,781,782],{},"kind: \"plugin\"",", without a registry entry. Install it with your package manager or ",[18,785,787],{"href":786},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fadd",[13,788,495],{},", then reconnect.",[251,791,793,794,797,798,800],{"as":792},"note","The agent imports only ",[13,795,796],{},"@kubb\u002Fplugin-*"," packages and installed packages whose manifest has ",[13,799,782],{},". It refuses any other package name before importing anything.",[10,802,573,803,807],{},[18,804,806],{"href":805},"#studio-agent","Studio agent"," for where the agent finds extensions.",[55,809,811],{"id":810},"exit-codes","Exit codes",[102,813,814,824],{},[105,815,816],{},[108,817,818,821],{},[111,819,820],{},"Code",[111,822,823],{},"When",[118,825,826,836],{},[108,827,828,833],{},[123,829,830],{},[13,831,832],{},"0",[123,834,835],{},"The action succeeds.",[108,837,838,843],{},[123,839,840],{},[13,841,842],{},"1",[123,844,845],{},"The action fails.",[55,847,849],{"id":848},"less-common-cases","Less common cases",[264,851,752],{"id":852},"studio-ci-snapshots",[10,854,855,856,859],{},"In CI, ",[13,857,858],{},"kubb studio snapshot"," identifies the CI agent and compares the new snapshot with earlier ones.",[861,862,864],"h4",{"id":863},"json-output","JSON output",[10,866,867,869,870,212,873,212,876,212,879,212,882,212,885,212,888,215,891,89],{},[13,868,697],{}," prints one object with ",[13,871,872],{},"id",[13,874,875],{},"name",[13,877,878],{},"version",[13,880,881],{},"integrity",[13,883,884],{},"url",[13,886,887],{},"snapshotIdUrl",[13,889,890],{},"expiresAt",[13,892,893],{},"agentUrl",[67,895,896,911,920],{},[70,897,898,899,902,903,906,907,910],{},"It adds ",[13,900,901],{},"number"," and ",[13,904,905],{},"webUrl"," when Studio sends them, and the summary shows the number and a ",[13,908,909],{},"View"," link.",[70,912,898,913,902,916,919],{},[13,914,915],{},"changes",[13,917,918],{},"branchChanges"," when a comparison exists.",[70,921,922,923,926],{},"Installing a snapshot needs a separate ",[13,924,925],{},"registry"," API key.",[102,928,929,939],{},[105,930,931],{},[108,932,933,936],{},[111,934,935],{},"Field",[111,937,938],{},"Compared with",[118,940,941,950],{},[108,942,943,947],{},[123,944,945],{},[13,946,915],{},[123,948,949],{},"The previous snapshot on the same pull request or branch.",[108,951,952,956],{},[123,953,954],{},[13,955,918],{},[123,957,958,959,962,963,966,967,970,971,973,974,977],{},"The latest snapshot of the ",[13,960,961],{},"--base-id"," agent, or of the base branch of a GitHub pull request or GitLab merge request. ",[13,964,965],{},"branch"," names that agent. ",[13,968,969],{},"baseFound"," is ",[13,972,702],{}," when that agent does not exist yet, and ",[13,975,976],{},"true"," when it has no snapshot of this package.",[861,979,981],{"id":980},"ci-agent-identity-details","CI agent identity details",[102,983,984,996],{},[105,985,986],{},[108,987,988,991,993],{},[111,989,990],{},"Option",[111,992,326],{},[111,994,995],{},"Description",[118,997,998,1009],{},[108,999,1000,1004,1006],{},[123,1001,1002],{},[13,1003,633],{},[123,1005,636],{},[123,1007,1008],{},"Stable CI agent identity. Detected on GitHub Actions, GitLab CI, Bitbucket Pipelines, and CircleCI.",[108,1010,1011,1015,1017],{},[123,1012,1013],{},[13,1014,646],{},[123,1016,636],{},[123,1018,1019,1020,1022],{},"The ",[13,1021,654],{}," of another CI agent to also compare with, such as the base branch's. Detected on GitHub pull requests and GitLab merge requests.",[67,1024,1025,1034],{},[70,1026,1027,1028,1030,1031,1033],{},"Other providers need a stable ",[13,1029,654],{},". Use one on the base branch and pass it as ",[13,1032,961],{}," on pull request runs.",[70,1035,1036,1038,1039,1041,1042,89],{},[13,1037,654],{}," turns off base detection, so also pass ",[13,1040,961],{}," to get ",[13,1043,918],{},[861,1045,1047],{"id":1046},"gitlab-ci","GitLab CI",[102,1049,1050,1062],{},[105,1051,1052],{},[108,1053,1054,1057,1060],{},[111,1055,1056],{},"Pipeline",[111,1058,1059],{},"CI agent",[111,1061,938],{},[118,1063,1064,1080],{},[108,1065,1066,1069,1072],{},[123,1067,1068],{},"Merge request",[123,1070,1071],{},"One agent per merge request",[123,1073,1074,1076,1077,1079],{},[13,1075,918],{},": the target branch's latest snapshot. ",[13,1078,915],{},": the merge request's previous pipeline.",[108,1081,1082,1085,1088],{},[123,1083,1084],{},"Branch",[123,1086,1087],{},"One agent per branch, the default branch included",[123,1089,1090,1092],{},[13,1091,915],{},": the branch's previous pipeline.",[10,1094,1095,1096,1098],{},"A merge request snapshot records the head commit of the source branch. Pass ",[13,1097,654],{}," to group runs your own way.",[264,1100,806],{"id":1101},"studio-agent",[10,1103,1104,1105,89],{},"When Studio lists a plugin as not installed, check where the agent looks. Studio builds its plugin list and option forms from ",[18,1106,778],{"href":777},[10,1108,1109,1110,1113],{},"On connect, the agent reports each extension with a valid ",[13,1111,1112],{},"kubb-extension.json"," from:",[67,1115,1116,1127,1133],{},[70,1117,1019,1118,902,1121,1124,1125,89],{},[13,1119,1120],{},"dependencies",[13,1122,1123],{},"devDependencies"," in ",[13,1126,668],{},[70,1128,1129,1130,1132],{},"The packages ",[13,1131,482],{}," imports.",[70,1134,1135,1136,1139,1140,212,1143,212,1146,215,1149,89],{},"The extensions bundled with ",[13,1137,1138],{},"kubb",": ",[13,1141,1142],{},"@kubb\u002Fadapter-oas",[13,1144,1145],{},"@kubb\u002Fparser-ts",[13,1147,1148],{},"@kubb\u002Fparser-md",[13,1150,1151],{},"@kubb\u002Fplugin-barrel",[861,1153,1155],{"id":1154},"settings-forms","Settings forms",[67,1157,1158,1164,1169,1176],{},[70,1159,1160,1161,1163],{},"The config's adapter and parsers get a settings form from the ",[13,1162,287],{}," in their manifest.",[70,1165,1166,1167,89],{},"The agent sends a JSON copy of their options on connect. On generate, Studio's edits merge over the options in ",[13,1168,482],{},[70,1170,1171,1172,1175],{},"A ",[13,1173,1174],{},"null"," value unsets an option for that run, so its default applies.",[70,1177,1178,1179,1182],{},"An extension without a manifest, such as ",[13,1180,1181],{},"parserTsx",", is listed without fields.",[861,1184,1186],{"id":1185},"plugins-the-agent-runs","Plugins the agent runs",[102,1188,1189,1199],{},[105,1190,1191],{},[108,1192,1193,1196],{},[111,1194,1195],{},"Agent",[111,1197,1198],{},"Plugins it can run",[118,1200,1201,1215],{},[108,1202,1203,1208],{},[123,1204,1205,1207],{},[13,1206,15],{}," on your machine",[123,1209,1210,1212,1213],{},[13,1211,796],{}," packages, and installed packages whose manifest has ",[13,1214,782],{},[108,1216,1217,1220],{},[123,1218,1219],{},"Docker agent and hosted sandbox",[123,1221,1222],{},"Only the packages in their image, with no runtime installs",[10,1224,1225,1226,1229],{},"The agent calls the factory the manifest names in ",[13,1227,1228],{},"export",". It refuses any other package name before importing anything, and config edits follow the same rule.",[10,1231,1232,1233,1237,1238,1241],{},"Studio also lists ",[18,1234,1236],{"href":1235},"\u002Fextensions","extension registry"," plugins. A plugin the agent cannot run shows as not installed, with a ",[13,1239,1240],{},"kubb add \u003Cid>"," hint.",[264,1243,284],{"id":1244},"studio-credentials",[10,1246,1247,1248,212,1252,1254,1255,1257],{},"When you pair a machine, the CLI stores the credentials, worker state, and worker log in ",[18,1249,1250],{"href":273},[13,1251,276],{},[13,1253,279],{}," by default. ",[13,1256,176],{}," prints the log path.",[67,1259,1260,1276,1279,1282,1288],{},[70,1261,1262,1263,212,1266,212,1269,377,1272,1275],{},"Approve the pairing code before it expires. The CLI copies it with ",[13,1264,1265],{},"pbcopy",[13,1267,1268],{},"clip.exe",[13,1270,1271],{},"xclip",[13,1273,1274],{},"wl-copy"," when one is available.",[70,1277,1278],{},"A connected CLI renews its token daily, so it does not pair again.",[70,1280,1281],{},"Pairing also creates a key that never leaves your machine. It goes in the system keychain (macOS Keychain, Windows Credential Manager, or Secret Service on Linux), or next to the token when no keychain allows access, such as in CI or a container.",[70,1283,1284,1285,1287],{},"A project paired with an earlier release has no key and keeps working. ",[13,1286,243],{}," adds one.",[70,1289,1290,1292],{},[13,1291,146],{}," waits for a running generation to clean up. An interrupted job does not run again.",[264,1294,577],{"id":1295},"studio-permissions",[67,1297,1298,1323,1329,1343],{},[70,1299,1300,1302,1303,1305,1306,1308,1309,377,1312,1315,1316,1319,1320,1322],{},[13,1301,534],{}," saves the spec Studio sends and points ",[13,1304,540],{}," at it. Grant ",[13,1307,476],{}," too. A pasted document goes to ",[13,1310,1311],{},"openapi.yaml",[13,1313,1314],{},"openapi.json"," for JSON (",[13,1317,1318],{},"openapi-\u003Centry>"," for a later config entry). A URL or git file goes into ",[13,1321,540],{}," as is.",[70,1324,1325,1326,1328],{},"Without ",[13,1327,30],{},", a session still generates and reports file paths, but Studio cannot show their contents.",[70,1330,1331,1332,1334,1335,1338,1339,89],{},"With ",[13,1333,30],{},", Studio loads the files already in ",[13,1336,1337],{},"output.path"," on connect, so you can browse them before you select ",[1340,1341,1342],"strong",{},"Generate",[70,1344,1345,1346,1351],{},"The agent keeps recent generations up to the ",[18,1347,1348],{"href":273},[13,1349,1350],{},"KUBB_AGENT_MAX_GENERATIONS"," caps, with a separate budget for the initial output. Unchanged output keeps its ID across reconnects.",[251,1353,1354,1355,1357,1358,1360,1361,902,1363,1365,1366,1368],{"as":253},"Flags only add permissions, and ",[13,1356,156],{}," resets the saved ones. To turn one off, run ",[13,1359,257],{},", then restart a running connection, since it keeps the old permissions. Restart with the same ",[13,1362,303],{},[13,1364,588],{},", but without that permission's ",[13,1367,261],{}," flag, which would grant it again.",{"title":1370,"searchDepth":1371,"depth":1371,"links":1372},"",5,[1373,1375,1376,1380,1385,1386,1387,1388,1389],{"id":57,"depth":1374,"text":58},2,{"id":92,"depth":1374,"text":93},{"id":205,"depth":1374,"text":206,"children":1377},[1378],{"id":266,"depth":1379,"text":267},3,{"id":287,"depth":1374,"text":288,"children":1381},[1382,1383,1384],{"id":310,"depth":1379,"text":311},{"id":26,"depth":1379,"text":424},{"id":195,"depth":1379,"text":581},{"id":742,"depth":1374,"text":743},{"id":756,"depth":1374,"text":757},{"id":770,"depth":1374,"text":771},{"id":810,"depth":1374,"text":811},{"id":848,"depth":1374,"text":849,"children":1390},[1391,1397,1401,1402],{"id":852,"depth":1379,"text":752,"children":1392},[1393,1395,1396],{"id":863,"depth":1394,"text":864},4,{"id":980,"depth":1394,"text":981},{"id":1046,"depth":1394,"text":1047},{"id":1101,"depth":1379,"text":806,"children":1398},[1399,1400],{"id":1154,"depth":1394,"text":1155},{"id":1185,"depth":1394,"text":1186},{"id":1244,"depth":1379,"text":284},{"id":1295,"depth":1379,"text":577},"Command reference for kubb studio. Connect a project to Kubb Studio, run it in the background, manage pairing and permissions, and publish CI snapshots.","md",{"layout":1406,"title":5,"description":1403,"outline":1407,"order":1408,"navigation":1409},"doc",[1374,1379],8,{"title":15,"icon":1410},"i-iconoir-cube",{"layout":1406,"outline":1412},[1374,1379],{"title":15,"icon":1410},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio",{"title":5,"description":1403},{"loc":1414},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio.md","docs\u002F5.x\u002Freference\u002Fcommands\u002Fstudio","-uiIWI3k59M0iOwa8cWp4qotgEn4Ekh7m-z4bTa43L8",1795727677248,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]