[{"data":1,"prerenderedAt":411},["ShallowReactive",2],{"docs-\u002Fagent\u002Fcommands":3},{"id":4,"title":5,"body":6,"description":404,"extension":405,"meta":406,"navigation":182,"path":407,"seo":408,"stem":409,"__hash__":410},"docs\u002Fdocs\u002Fagent\u002Fcommands.md","Commands & options",{"type":7,"value":8,"toc":397},"minimark",[9,13,16,21,47,55,60,149,152,234,236,240,243,316,323,325,329,340,372,379,381,393],[10,11,5],"h1",{"id":12},"commands-options",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"init-main-entry-point","init — main entry point",[22,23,28],"pre",{"className":24,"code":25,"language":26,"meta":27,"style":27},"language-bash shiki shiki-themes github-dark","npx @synchronized-studio\u002Fcmsassets-agent init\n","bash","",[29,30,31],"code",{"__ignoreMap":27},[32,33,36,40,44],"span",{"class":34,"line":35},"line",1,[32,37,39],{"class":38},"svObZ","npx",[32,41,43],{"class":42},"sU2Wk"," @synchronized-studio\u002Fcmsassets-agent",[32,45,46],{"class":42}," init\n",[48,49,50,51,54],"p",{},"Runs the full flow: scan → plan → install transformer → apply patches → add ",[29,52,53],{},"cmsassets:transform"," script.",[56,57,59],"h3",{"id":58},"init-options","init options",[61,62,63,76],"table",{},[64,65,66],"thead",{},[67,68,69,73],"tr",{},[70,71,72],"th",{},"Option",[70,74,75],{},"Description",[77,78,79,90,100,117],"tbody",{},[67,80,81,87],{},[82,83,84],"td",{},[29,85,86],{},"--dry-run",[82,88,89],{},"Show which files would be patched without writing changes",[67,91,92,97],{},[82,93,94],{},[29,95,96],{},"--yes",[82,98,99],{},"Skip confirmation prompt (CI-friendly)",[67,101,102,107],{},[82,103,104],{},[29,105,106],{},"--slug \u003Cslug>",[82,108,109,110,113,114],{},"Your tenant slug (e.g. ",[29,111,112],{},"my-project",") so the agent can set ",[29,115,116],{},"CMS_ASSETS_URL",[67,118,119,124],{},[82,120,121],{},[29,122,123],{},"--cms \u003Ctype>",[82,125,126,127,130,131,130,134,130,137,130,140,130,143,130,146],{},"Override CMS: ",[29,128,129],{},"prismic",", ",[29,132,133],{},"contentful",[29,135,136],{},"sanity",[29,138,139],{},"shopify",[29,141,142],{},"cloudinary",[29,144,145],{},"imgix",[29,147,148],{},"generic",[48,150,151],{},"Examples:",[22,153,155],{"className":24,"code":154,"language":26,"meta":27,"style":27},"# Preview first\nnpx @synchronized-studio\u002Fcmsassets-agent init --dry-run\n\n# Non-interactive with slug\nnpx @synchronized-studio\u002Fcmsassets-agent init --yes --slug my-project\n\n# Force Prismic\nnpx @synchronized-studio\u002Fcmsassets-agent init --cms prismic\n",[29,156,157,163,177,184,190,208,213,219],{"__ignoreMap":27},[32,158,159],{"class":34,"line":35},[32,160,162],{"class":161},"sAwPA","# Preview first\n",[32,164,166,168,170,173],{"class":34,"line":165},2,[32,167,39],{"class":38},[32,169,43],{"class":42},[32,171,172],{"class":42}," init",[32,174,176],{"class":175},"sDLfK"," --dry-run\n",[32,178,180],{"class":34,"line":179},3,[32,181,183],{"emptyLinePlaceholder":182},true,"\n",[32,185,187],{"class":34,"line":186},4,[32,188,189],{"class":161},"# Non-interactive with slug\n",[32,191,193,195,197,199,202,205],{"class":34,"line":192},5,[32,194,39],{"class":38},[32,196,43],{"class":42},[32,198,172],{"class":42},[32,200,201],{"class":175}," --yes",[32,203,204],{"class":175}," --slug",[32,206,207],{"class":42}," my-project\n",[32,209,211],{"class":34,"line":210},6,[32,212,183],{"emptyLinePlaceholder":182},[32,214,216],{"class":34,"line":215},7,[32,217,218],{"class":161},"# Force Prismic\n",[32,220,222,224,226,228,231],{"class":34,"line":221},8,[32,223,39],{"class":38},[32,225,43],{"class":42},[32,227,172],{"class":42},[32,229,230],{"class":175}," --cms",[32,232,233],{"class":42}," prismic\n",[14,235],{},[17,237,239],{"id":238},"advanced-commands","Advanced commands",[48,241,242],{},"Use these when you want to run only part of the pipeline or inspect the plan.",[61,244,245,254],{},[64,246,247],{},[67,248,249,252],{},[70,250,251],{},"Command",[70,253,75],{},[77,255,256,266,276,286,296,306],{},[67,257,258,263],{},[82,259,260],{},[29,261,262],{},"scan --dir .",[82,264,265],{},"Scan the project and list injection points (no install, no patches)",[67,267,268,273],{},[82,269,270],{},[29,271,272],{},"plan --dir .",[82,274,275],{},"Generate a plan file for review without applying",[67,277,278,283],{},[82,279,280],{},[29,281,282],{},"apply --dir .",[82,284,285],{},"Apply patches (installs the transformer if needed)",[67,287,288,293],{},[82,289,290],{},[29,291,292],{},"verify --dir .",[82,294,295],{},"Run lint \u002F build \u002F test to verify the integration",[67,297,298,303],{},[82,299,300],{},[29,301,302],{},"doctor --dir .",[82,304,305],{},"Diagnose project setup and compatibility",[67,307,308,313],{},[82,309,310],{},[29,311,312],{},"rollback --dir .",[82,314,315],{},"Undo the last apply (restore patched files from backup)",[48,317,318,319,322],{},"All commands accept ",[29,320,321],{},"--dir \u003Cpath>","; default is current directory.",[14,324],{},[17,326,328],{"id":327},"re-run-script","Re-run script",[48,330,331,332,335,336,339],{},"After ",[29,333,334],{},"init",", the agent adds to your ",[29,337,338],{},"package.json",":",[22,341,345],{"className":342,"code":343,"language":344,"meta":27,"style":27},"language-json shiki shiki-themes github-dark","\"scripts\": {\n  \"cmsassets:transform\": \"cmsassets-agent apply --dir .\"\n}\n","json",[29,346,347,356,367],{"__ignoreMap":27},[32,348,349,352],{"class":34,"line":35},[32,350,351],{"class":42},"\"scripts\"",[32,353,355],{"class":354},"s95oV",": {\n",[32,357,358,361,364],{"class":34,"line":165},[32,359,360],{"class":175},"  \"cmsassets:transform\"",[32,362,363],{"class":354},": ",[32,365,366],{"class":42},"\"cmsassets-agent apply --dir .\"\n",[32,368,369],{"class":34,"line":179},[32,370,371],{"class":354},"}\n",[48,373,374,375,378],{},"Run ",[29,376,377],{},"npm run cmsassets:transform"," whenever you add new CMS-backed code. Only files that are not yet transformed will be patched.",[14,380],{},[48,382,383,388,389],{},[384,385,387],"a",{"href":386},"\u002Fdocs\u002Fagent","← CLI Agent overview"," · ",[384,390,392],{"href":391},"\u002Fdocs\u002Fagent\u002Fpatch-mode","Patch mode & AI →",[394,395,396],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}",{"title":27,"searchDepth":165,"depth":165,"links":398},[399,402,403],{"id":19,"depth":165,"text":20,"children":400},[401],{"id":58,"depth":179,"text":59},{"id":238,"depth":165,"text":239},{"id":327,"depth":165,"text":328},"init flags, scan, plan, apply, verify, doctor, rollback.","md",{"parent":386},"\u002Fdocs\u002Fagent\u002Fcommands",{"title":5,"description":404},"docs\u002Fagent\u002Fcommands","yzLcVkpYQ4mcsM9Cxuk3NIK3NGXZvyXr8hW9kCUH9DA",1777579477694]