[{"data":1,"prerenderedAt":3239},["ShallowReactive",2],{"navigation_docs":3,"-run-console":613,"-run-console-surround":3236},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":50,"body":615,"description":961,"extension":3230,"links":3231,"meta":3232,"navigation":3233,"path":51,"seo":3234,"stem":52,"__hash__":3235},"docs\u002F2.run\u002F10.console.md",{"type":616,"value":617,"toc":3215},"minimark",[618,649,671,682,952,955,1047,1099,1101,1163,1432,1434,1505,1536,1538,1613,1687,1689,1746,1792,1794,1810,1868,1870,1882,1893,1900,1902,1924,1929,1937,1966,1971,2200,2210,2212,2238,2244,2261,2263,2291,2299,2451,2474,2545,2563,2566,2595,2612,2618,2633,2635,2691,2712,3039,3055,3080,3084,3087,3197,3211],[619,620,621,622,626,627,630,631,634,635,638,639,642,643,648],"p",{},"The console commands work on an instance without the admin: for its first admin, for setting it up from a script, and\nfor the way back when the admin cannot be reached. Run them where the API runs, with the API's settings\n(",[623,624,625],"code",{},"DATABASE_URL"," and the rest, from the environment or ",[623,628,629],{},"SHADE_ENV_FILE","). ",[623,632,633],{},"migrate"," and ",[623,636,637],{},"restore"," change the schema, so they\nalso need ",[623,640,641],{},"DATABASE_OWNER_URL",", the owner's address (",[644,645,647],"a",{"href":646},"\u002Frun\u002Fown-server#the-databases-roles","The database's roles","): run them\nin the admin container, which holds it:",[650,651,652,660],"ul",{},[653,654,655,656,659],"li",{},"in the image: ",[623,657,658],{},"node console\u002F\u003Ccommand>.mjs",";",[653,661,662,663,666,667,670],{},"in a checkout of SHADE: ",[623,664,665],{},"pnpm \u003Ccommand>"," from the repository root (it reads the repository's ",[623,668,669],{},".env",").",[619,672,673,674,677,678,681],{},"Every change a command makes goes through the same rules as the admin, and the audit log records it as made from the\nconsole (",[623,675,676],{},"CLI","). A password or secret is read from the terminal or from stdin (",[623,679,680],{},"--password-stdin","), never from a flag:\na flag ends up in your shell's history and in the list of running processes.",[683,684,685,698],"table",{},[686,687,688],"thead",{},[689,690,691,695],"tr",{},[692,693,694],"th",{},"Command",[692,696,697],{},"What it does",[699,700,701,715,725,735,745,757,768,778,792,805,823,845,859,871,880,890,900,910,920,930],"tbody",{},[689,702,703,709],{},[704,705,706],"td",{},[623,707,708],{},"create-admin",[704,710,711,712,670],{},"An admin, asked for on the terminal: from a script, from Desk, or the first admin where the browser cannot open the owner's page (the guides start with that page instead: ",[644,713,714],{"href":47},"Coolify",[689,716,717,722],{},[704,718,719],{},[623,720,721],{},"create-member",[704,723,724],{},"A team member of any role, from a script.",[689,726,727,732],{},[704,728,729],{},[623,730,731],{},"create-token",[704,733,734],{},"An API token for a team member, from a script.",[689,736,737,742],{},[704,738,739],{},[623,740,741],{},"settings",[704,743,744],{},"The email settings, from a script.",[689,746,747,752],{},[704,748,749],{},[623,750,751],{},"maintenance",[704,753,754,755,670],{},"Maintenance mode on or off (",[644,756,94],{"href":95},[689,758,759,763],{},[704,760,761],{},[623,762,637],{},[704,764,765,766,670],{},"Lists, checks and restores backups (",[644,767,82],{"href":83},[689,769,770,775],{},[704,771,772],{},[623,773,774],{},"backup-target",[704,776,777],{},"Sets where the built-in backups go and the bucket's keys, in the backup secrets volume, from the admin container.",[689,779,780,785],{},[704,781,782],{},[623,783,784],{},"export",[704,786,787,788,791],{},"The content and settings, without people, as one ",[623,789,790],{},".tar",".",[689,793,794,799],{},[704,795,796],{},[623,797,798],{},"import",[704,800,801,802,804],{},"Loads such a ",[623,803,790],{}," into an empty instance.",[689,806,807,812],{},[704,808,809],{},[623,810,811],{},"generate-secrets",[704,813,814,815,818,819,822],{},"Generates the instance's secrets that are not set into ",[623,816,817],{},"SHADE_SECRETS_DIR",", once: what the deployment template's ",[623,820,821],{},"secrets"," service runs before the others start.",[689,824,825,830],{},[704,826,827],{},[623,828,829],{},"new-env-file",[704,831,832,833,836,837,840,841,844],{},"A new env file with a fresh ",[623,834,835],{},"APP_SECRET"," (",[644,838,839],{"href":63},"by hand","; ",[623,842,843],{},"shade install"," writes one itself).",[689,846,847,852],{},[704,848,849],{},[623,850,851],{},"rotate-secrets",[704,853,854,855,836,857,670],{},"Seals the stored secrets again with a new ",[623,856,835],{},[644,858,54],{"href":55},[689,860,861,866],{},[704,862,863],{},[623,864,865],{},"doctor",[704,867,868,869,670],{},"Checks the environment, Redis, the stored secrets, the backup key and the database's migrations, and prints one report (",[644,870,58],{"href":59},[689,872,873,877],{},[704,874,875],{},[623,876,633],{},[704,878,879],{},"Applies SHADE's own migrations, then exits.",[689,881,882,887],{},[704,883,884],{},[623,885,886],{},"status",[704,888,889],{},"Says whether the instance is ready: the database, pending migrations, the worker and the modules.",[689,891,892,897],{},[704,893,894],{},[623,895,896],{},"schema",[704,898,899],{},"Lists the database's secret columns.",[689,901,902,907],{},[704,903,904],{},[623,905,906],{},"env",[704,908,909],{},"Lists the variables SHADE reads, and checks an env file before it is used.",[689,911,912,917],{},[704,913,914],{},[623,915,916],{},"plugin",[704,918,919],{},"Checks modules under development, every problem at once.",[689,921,922,927],{},[704,923,924],{},[623,925,926],{},"queue",[704,928,929],{},"The queue's jobs per queue, the ones not finished and the ones that failed; sends a failed event delivery again, or cancels a job.",[689,931,932,937],{},[704,933,934],{},[623,935,936],{},"install",[704,938,939,940,943,944,634,946,949,950,670],{},"Writes a server's files into ",[623,941,942],{},"\u002Fetc\u002Fshade",", as root: what ",[623,945,843],{},[623,947,948],{},"shade update"," run in the image, not a command to run by hand (",[644,951,70],{"href":71},[953,954,721],"h2",{"id":721},[956,957,962],"pre",{"className":958,"code":959,"language":960,"meta":961,"style":961},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","echo \"$PASSWORD\" | node console\u002Fcreate-member.mjs --email ann@example.org --name \"Ann\" --role editor --password-stdin\nnode console\u002Fcreate-member.mjs --email assistant@example.org --name \"Assistant\" --role ai\n","bash","",[623,963,964,1020],{"__ignoreMap":961},[965,966,969,973,977,981,984,987,991,995,998,1001,1004,1006,1009,1011,1014,1017],"span",{"class":967,"line":968},"line",1,[965,970,972],{"class":971},"s2Zo4","echo",[965,974,976],{"class":975},"sMK4o"," \"",[965,978,980],{"class":979},"sTEyZ","$PASSWORD",[965,982,983],{"class":975},"\"",[965,985,986],{"class":975}," |",[965,988,990],{"class":989},"sBMFI"," node",[965,992,994],{"class":993},"sfazB"," console\u002Fcreate-member.mjs",[965,996,997],{"class":993}," --email",[965,999,1000],{"class":993}," ann@example.org",[965,1002,1003],{"class":993}," --name",[965,1005,976],{"class":975},[965,1007,1008],{"class":993},"Ann",[965,1010,983],{"class":975},[965,1012,1013],{"class":993}," --role",[965,1015,1016],{"class":993}," editor",[965,1018,1019],{"class":993}," --password-stdin\n",[965,1021,1023,1026,1028,1030,1033,1035,1037,1040,1042,1044],{"class":967,"line":1022},2,[965,1024,1025],{"class":989},"node",[965,1027,994],{"class":993},[965,1029,997],{"class":993},[965,1031,1032],{"class":993}," assistant@example.org",[965,1034,1003],{"class":993},[965,1036,976],{"class":975},[965,1038,1039],{"class":993},"Assistant",[965,1041,983],{"class":975},[965,1043,1013],{"class":993},[965,1045,1046],{"class":993}," ai\n",[650,1048,1049,1070,1076,1083],{},[653,1050,1051,1054,1055,1058,1059,1062,1063,1066,1067,791],{},[623,1052,1053],{},"--role"," is ",[623,1056,1057],{},"admin",", ",[623,1060,1061],{},"editor"," or ",[623,1064,1065],{},"ai",". An editor can get a custom role with ",[623,1068,1069],{},"--custom-role \u003Ckey>",[653,1071,1072,1073,1075],{},"An admin's or editor's password is asked on the terminal, twice, without showing it, or read from the first line of\nstdin with ",[623,1074,680],{},". It follows the same rules as in the admin (at least 12 characters).",[653,1077,1078,1079,1082],{},"An AI account has no password. It works with an MCP token only, which ",[623,1080,1081],{},"create-token --kind mcp"," makes.",[653,1084,1085,1088,1089,1092,1093,1095,1096,1098],{},[623,1086,1087],{},"--json"," prints the member as one JSON object, ",[623,1090,1091],{},"{ \"id\", \"email\", \"role\" }",", for a script that reads it. ",[623,1094,708],{},"\ntakes ",[623,1097,1087],{}," too. When the member is refused, nothing is printed on stdout and the reason goes to stderr.",[953,1100,731],{"id":731},[956,1102,1104],{"className":958,"code":1103,"language":960,"meta":961,"style":961},"node console\u002Fcreate-token.mjs --email ann@example.org --kind build --name \"Website\" --out website.token\nnode console\u002Fcreate-token.mjs --email assistant@example.org --kind mcp --name \"Assistant\" --stdout\n",[623,1105,1106,1137],{"__ignoreMap":961},[965,1107,1108,1110,1113,1115,1117,1120,1123,1125,1127,1129,1131,1134],{"class":967,"line":968},[965,1109,1025],{"class":989},[965,1111,1112],{"class":993}," console\u002Fcreate-token.mjs",[965,1114,997],{"class":993},[965,1116,1000],{"class":993},[965,1118,1119],{"class":993}," --kind",[965,1121,1122],{"class":993}," build",[965,1124,1003],{"class":993},[965,1126,976],{"class":975},[965,1128,148],{"class":993},[965,1130,983],{"class":975},[965,1132,1133],{"class":993}," --out",[965,1135,1136],{"class":993}," website.token\n",[965,1138,1139,1141,1143,1145,1147,1149,1152,1154,1156,1158,1160],{"class":967,"line":1022},[965,1140,1025],{"class":989},[965,1142,1112],{"class":993},[965,1144,997],{"class":993},[965,1146,1032],{"class":993},[965,1148,1119],{"class":993},[965,1150,1151],{"class":993}," mcp",[965,1153,1003],{"class":993},[965,1155,976],{"class":975},[965,1157,1039],{"class":993},[965,1159,983],{"class":975},[965,1161,1162],{"class":993}," --stdout\n",[650,1164,1165,1215,1222,1421,1424],{},[653,1166,1167,1170,1171],{},[623,1168,1169],{},"--kind"," is one of these:",[650,1172,1173,1179,1185,1195,1201],{},[653,1174,1175,1178],{},[623,1176,1177],{},"build",": a frontend's build;",[653,1180,1181,1184],{},[623,1182,1183],{},"read",": reading only;",[653,1186,1187,1190,1191,1194],{},[623,1188,1189],{},"data",": chosen collections, with ",[623,1192,1193],{},"--grant posts=read",", which you can repeat;",[653,1196,1197,1200],{},[623,1198,1199],{},"mcp",": an AI account's MCP;",[653,1202,1203,1206,1207,1210,1211,1214],{},[623,1204,1205],{},"automation",": a script acting as the member. It needs ",[623,1208,1209],{},"--expires 2027-01-01"," and one ",[623,1212,1213],{},"--action \u003Caction>"," for each\naction it may do, chosen from the member's own.",[653,1216,1217,1218,1221],{},"The member named by ",[623,1219,1220],{},"--email"," owns the token.",[653,1223,1224,1225,1412,1415,1416,1062,1418,1420],{},"A token is shown once and never again, so say where it goes:",[650,1226,1227,1233,1239],{},[653,1228,1229,1232],{},[623,1230,1231],{},"--out \u003Cfile>"," writes it to a new file that only you can read, and never over an existing file;",[653,1234,1235,1238],{},[623,1236,1237],{},"--stdout"," prints it, for a script that captures it;",[653,1240,1241,1243,1244],{},[623,1242,1087],{}," prints one JSON object with the token in it, for a script that also wants to know which token it is:",[956,1245,1249],{"className":1246,"code":1247,"language":1248,"meta":961,"style":961},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{ \"id\": \"…\", \"token\": \"shd_…\", \"prefix\": \"shd_…\", \"kind\": \"build\", \"name\": \"Website\",\n  \"member\": { \"id\": \"…\", \"email\": \"ann@example.org\" }, \"expiresAt\": null }\n","json",[623,1250,1251,1347],{"__ignoreMap":961},[965,1252,1253,1256,1258,1262,1264,1267,1269,1272,1274,1277,1279,1282,1284,1286,1288,1291,1293,1295,1297,1300,1302,1304,1306,1308,1310,1312,1314,1317,1319,1321,1323,1325,1327,1329,1331,1334,1336,1338,1340,1342,1344],{"class":967,"line":968},[965,1254,1255],{"class":975},"{",[965,1257,976],{"class":975},[965,1259,1261],{"class":1260},"spNyl","id",[965,1263,983],{"class":975},[965,1265,1266],{"class":975},":",[965,1268,976],{"class":975},[965,1270,1271],{"class":993},"…",[965,1273,983],{"class":975},[965,1275,1276],{"class":975},",",[965,1278,976],{"class":975},[965,1280,1281],{"class":1260},"token",[965,1283,983],{"class":975},[965,1285,1266],{"class":975},[965,1287,976],{"class":975},[965,1289,1290],{"class":993},"shd_…",[965,1292,983],{"class":975},[965,1294,1276],{"class":975},[965,1296,976],{"class":975},[965,1298,1299],{"class":1260},"prefix",[965,1301,983],{"class":975},[965,1303,1266],{"class":975},[965,1305,976],{"class":975},[965,1307,1290],{"class":993},[965,1309,983],{"class":975},[965,1311,1276],{"class":975},[965,1313,976],{"class":975},[965,1315,1316],{"class":1260},"kind",[965,1318,983],{"class":975},[965,1320,1266],{"class":975},[965,1322,976],{"class":975},[965,1324,1177],{"class":993},[965,1326,983],{"class":975},[965,1328,1276],{"class":975},[965,1330,976],{"class":975},[965,1332,1333],{"class":1260},"name",[965,1335,983],{"class":975},[965,1337,1266],{"class":975},[965,1339,976],{"class":975},[965,1341,148],{"class":993},[965,1343,983],{"class":975},[965,1345,1346],{"class":975},",\n",[965,1348,1349,1352,1355,1357,1359,1362,1364,1366,1368,1370,1372,1374,1376,1378,1380,1383,1385,1387,1389,1392,1394,1397,1399,1402,1404,1406,1409],{"class":967,"line":1022},[965,1350,1351],{"class":975},"  \"",[965,1353,1354],{"class":1260},"member",[965,1356,983],{"class":975},[965,1358,1266],{"class":975},[965,1360,1361],{"class":975}," {",[965,1363,976],{"class":975},[965,1365,1261],{"class":989},[965,1367,983],{"class":975},[965,1369,1266],{"class":975},[965,1371,976],{"class":975},[965,1373,1271],{"class":993},[965,1375,983],{"class":975},[965,1377,1276],{"class":975},[965,1379,976],{"class":975},[965,1381,1382],{"class":989},"email",[965,1384,983],{"class":975},[965,1386,1266],{"class":975},[965,1388,976],{"class":975},[965,1390,1391],{"class":993},"ann@example.org",[965,1393,983],{"class":975},[965,1395,1396],{"class":975}," },",[965,1398,976],{"class":975},[965,1400,1401],{"class":1260},"expiresAt",[965,1403,983],{"class":975},[965,1405,1266],{"class":975},[965,1407,1408],{"class":975}," null",[965,1410,1411],{"class":975}," }\n",[1413,1414],"br",{},"Without one of them, no token is made. With ",[623,1417,1237],{},[623,1419,1087],{},", stdout holds the token only; the log goes to\nstderr.",[653,1422,1423],{},"The same rules as in the admin hold. An MCP token belongs to an AI account only. An automation token only holds actions\nits member has, and never one that stays with people, such as managing the team or tokens.",[653,1425,1426,1429,1430,670],{},[623,1427,1428],{},"--expires"," sets an end date for any kind. Without it, the token works until it is revoked in the admin\n(",[644,1431,257],{"href":258},[953,1433,741],{"id":741},[956,1435,1437],{"className":958,"code":1436,"language":960,"meta":961,"style":961},"echo \"$SMTP_PASSWORD\" | node console\u002Fsettings.mjs email smtp --host smtp.example.org --port 587 --username mailer \\\n  --from-name \"Voorbeeld\" --from-address hello@example.org --password-stdin\n",[623,1438,1439,1485],{"__ignoreMap":961},[965,1440,1441,1443,1445,1448,1450,1452,1454,1457,1460,1463,1466,1469,1472,1476,1479,1482],{"class":967,"line":968},[965,1442,972],{"class":971},[965,1444,976],{"class":975},[965,1446,1447],{"class":979},"$SMTP_PASSWORD",[965,1449,983],{"class":975},[965,1451,986],{"class":975},[965,1453,990],{"class":989},[965,1455,1456],{"class":993}," console\u002Fsettings.mjs",[965,1458,1459],{"class":993}," email",[965,1461,1462],{"class":993}," smtp",[965,1464,1465],{"class":993}," --host",[965,1467,1468],{"class":993}," smtp.example.org",[965,1470,1471],{"class":993}," --port",[965,1473,1475],{"class":1474},"sbssI"," 587",[965,1477,1478],{"class":993}," --username",[965,1480,1481],{"class":993}," mailer",[965,1483,1484],{"class":979}," \\\n",[965,1486,1487,1490,1492,1495,1497,1500,1503],{"class":967,"line":1022},[965,1488,1489],{"class":993},"  --from-name",[965,1491,976],{"class":975},[965,1493,1494],{"class":993},"Voorbeeld",[965,1496,983],{"class":975},[965,1498,1499],{"class":993}," --from-address",[965,1501,1502],{"class":993}," hello@example.org",[965,1504,1019],{"class":993},[650,1506,1507,1515,1521,1527,1533],{},[653,1508,1509,1510,1514],{},"This saves the email settings for sending over SMTP, the same as ",[1511,1512,1513],"strong",{},"Settings → Email"," in the admin.",[653,1516,1517,1520],{},[623,1518,1519],{},"--secure"," means TLS from the start (port 465). Without it, the mail server must offer STARTTLS.",[653,1522,1523,1524,1526],{},"The SMTP password comes from stdin with ",[623,1525,680],{},". Without that option, a password stored before is kept.",[653,1528,1529,1530,1532],{},"The password is stored encrypted with the instance's ",[623,1531,835],{},", as the admin stores it. The audit log names it as\nchanged, never its value.",[653,1534,1535],{},"A change that leaves email unusable is refused while accounts or a module that sends email still need it.",[953,1537,774],{"id":774},[956,1539,1541],{"className":958,"code":1540,"language":960,"meta":961,"style":961},"node console\u002Fbackup-target.mjs set --url s3:\u002F\u002Fvoorbeeld-backups\u002Fshade --access-key-id \u003Ckey id> \\\n  --endpoint https:\u002F\u002Fs3.nl-ams.scw.cloud --region nl-ams\nnode console\u002Fbackup-target.mjs show\nnode console\u002Fbackup-target.mjs clear\n",[623,1542,1543,1579,1593,1603],{"__ignoreMap":961},[965,1544,1545,1547,1550,1553,1556,1559,1562,1565,1568,1571,1574,1577],{"class":967,"line":968},[965,1546,1025],{"class":989},[965,1548,1549],{"class":993}," console\u002Fbackup-target.mjs",[965,1551,1552],{"class":993}," set",[965,1554,1555],{"class":993}," --url",[965,1557,1558],{"class":993}," s3:\u002F\u002Fvoorbeeld-backups\u002Fshade",[965,1560,1561],{"class":993}," --access-key-id",[965,1563,1564],{"class":975}," \u003C",[965,1566,1567],{"class":993},"key",[965,1569,1570],{"class":993}," i",[965,1572,1573],{"class":979},"d",[965,1575,1576],{"class":975},">",[965,1578,1484],{"class":979},[965,1580,1581,1584,1587,1590],{"class":967,"line":1022},[965,1582,1583],{"class":993},"  --endpoint",[965,1585,1586],{"class":993}," https:\u002F\u002Fs3.nl-ams.scw.cloud",[965,1588,1589],{"class":993}," --region",[965,1591,1592],{"class":993}," nl-ams\n",[965,1594,1596,1598,1600],{"class":967,"line":1595},3,[965,1597,1025],{"class":989},[965,1599,1549],{"class":993},[965,1601,1602],{"class":993}," show\n",[965,1604,1606,1608,1610],{"class":967,"line":1605},4,[965,1607,1025],{"class":989},[965,1609,1549],{"class":993},[965,1611,1612],{"class":993}," clear\n",[650,1614,1615,1626,1649,1656,1669],{},[653,1616,1617,1618,1621,1622,1625],{},"Run it in the admin container of the deployment template, the only running container that mounts the ",[623,1619,1620],{},"secrets-backup","\nvolume writable. It writes ",[623,1623,1624],{},"backup-target.json"," there, which the admin and the worker read when they start, so restart\nboth afterwards. The public container never reads it.",[653,1627,1628,1629,1632,1633,1636,1637,1640,1641,1644,1645,1648],{},"The secret access key is asked on the terminal without showing it, or read from the first line of stdin with\n",[623,1630,1631],{},"--secret-stdin",". ",[623,1634,1635],{},"--endpoint"," is the service's address without the bucket, ",[623,1638,1639],{},"--region"," its region (",[623,1642,1643],{},"auto"," when left\nout) and ",[623,1646,1647],{},"--path-style"," addresses the bucket path-style.",[653,1650,1651,1652,1655],{},"Before it saves anything, it checks the settings with the API's own rules and asks the bucket for its backups;\n",[623,1653,1654],{},"--skip-check"," saves without asking the bucket. The audit log records the change with the bucket's address, never a\nkey, before anything is saved; when the database can't be reached, nothing is saved. A save that fails after that is\nrecorded as failed.",[653,1657,1658,1661,1662,1062,1665,1668],{},[623,1659,1660],{},"--no-audit"," (with ",[623,1663,1664],{},"set",[623,1666,1667],{},"clear",") is for recovery only, such as setting the target for a restore before the database\nis up: it saves without recording the change in the audit log and warns that it did.",[653,1670,1671,1674,1675,1677,1678,1680,1681,1683,1684,1686],{},[623,1672,1673],{},"show"," says where each setting comes from (the file, the environment, or not set) and shows no key. A variable set in\nthe environment wins over its line in the file. ",[623,1676,1667],{}," removes the file. A file the API can't use (not JSON, or\nholding another variable) stops the admin and the worker at their start; ",[623,1679,1673],{}," and the doctor say why, and ",[623,1682,1664],{}," or\n",[623,1685,1667],{}," replace or remove it.",[953,1688,784],{"id":784},[956,1690,1692],{"className":958,"code":1691,"language":960,"meta":961,"style":961},"node console\u002Fexport.mjs --content --out content.tar\ndocker exec \u003Capi container> node console\u002Fexport.mjs --content --out - > content.tar\n",[623,1693,1694,1709],{"__ignoreMap":961},[965,1695,1696,1698,1701,1704,1706],{"class":967,"line":968},[965,1697,1025],{"class":989},[965,1699,1700],{"class":993}," console\u002Fexport.mjs",[965,1702,1703],{"class":993}," --content",[965,1705,1133],{"class":993},[965,1707,1708],{"class":993}," content.tar\n",[965,1710,1711,1714,1717,1719,1722,1725,1728,1730,1732,1734,1736,1738,1741,1744],{"class":967,"line":1022},[965,1712,1713],{"class":989},"docker",[965,1715,1716],{"class":993}," exec",[965,1718,1564],{"class":975},[965,1720,1721],{"class":993},"api",[965,1723,1724],{"class":993}," containe",[965,1726,1727],{"class":979},"r",[965,1729,1576],{"class":975},[965,1731,990],{"class":993},[965,1733,1700],{"class":993},[965,1735,1703],{"class":993},[965,1737,1133],{"class":993},[965,1739,1740],{"class":993}," -",[965,1742,1743],{"class":975}," >",[965,1745,1708],{"class":993},[650,1747,1748,1765,1768,1777,1783,1786],{},[653,1749,1750,1751,1753,1754,1757,1758,1761,1762,791],{},"This writes the instance's content and settings as one ",[623,1752,790],{},": every collection's entries with their drafts (forms\nare a collection too), the media library with its originals, the site's settings, the email and user\naccounts settings, the wording of the emails, and each module's settings. It is the same format as ",[644,1755,1756],{"href":230},"Exporting an\ninstance",", and its ",[623,1759,1760],{},"manifest.json"," says ",[623,1763,1764],{},"\"scope\": \"content\"",[653,1766,1767],{},"It never holds people or secrets: no team members or users, no module's own data (form submissions, orders and\nbookings stay home), no passwords, tokens, two-factor data or sessions, no setting marked secret, no visitor IP\nhashes, and not the audit or error log. A developer can take it to their own machine.",[653,1769,1770,1772,1773,1776],{},[623,1771,1231],{}," writes a new file and never overwrites one. ",[623,1774,1775],{},"--out -"," writes the file to stdout, so you can copy it\nout of a container. Messages and the log then go to stderr.",[653,1778,1779,1782],{},[623,1780,1781],{},"--content"," is required. The whole instance, with its people, is exported only from the admin, after signing in again.",[653,1784,1785],{},"The command loads the installed modules without starting them. It refuses when a module can't be loaded, or is\nswitched on but not installed: that module's content would be missing.",[653,1787,1788,1789,1791],{},"The audit log records it as an export by ",[623,1790,676],{},", with its size and what it holds.",[953,1793,798],{"id":798},[956,1795,1797],{"className":958,"code":1796,"language":960,"meta":961,"style":961},"node console\u002Fimport.mjs --content content.tar\n",[623,1798,1799],{"__ignoreMap":961},[965,1800,1801,1803,1806,1808],{"class":967,"line":968},[965,1802,1025],{"class":989},[965,1804,1805],{"class":993}," console\u002Fimport.mjs",[965,1807,1703],{"class":993},[965,1809,1708],{"class":993},[650,1811,1812,1819,1822,1828,1851,1854,1857,1860,1863],{},[653,1813,1814,1815,1818],{},"This loads a file that ",[623,1816,1817],{},"export --content"," wrote into an instance that holds no content yet: no entries in any\ncollection and no media. Start a new instance, or empty one first.",[653,1820,1821],{},"The instance needs the same modules installed. Each collection's fields must be the same as in the file: update\nSHADE and the modules to the versions of the instance the file came from.",[653,1823,1824,1825,1827],{},"Nothing is written until the whole file is checked: every file against the sizes and SHA-256 hashes in its\n",[623,1826,1760],{},", with nothing extra. A changed or incomplete file is refused.",[653,1829,1830,1831],{},"Then it loads everything in one go:\n",[650,1832,1833,1836,1839,1842,1845,1848],{},[653,1834,1835],{},"the media library, through the same checks as an upload; images get their smaller versions made again;",[653,1837,1838],{},"the site's settings;",[653,1840,1841],{},"the email and accounts settings;",[653,1843,1844],{},"the wording of the emails;",[653,1846,1847],{},"every entry with its id, its status, its draft and its other languages;",[653,1849,1850],{},"each module's settings.",[653,1852,1853],{},"Secrets are never in the file. Set the SMTP password or Brevo key, the payment keys and modules' secret settings\nagain. A setting that can't work without its secret is left as it was, and the command names it. For example, user\naccounts stay off while email isn't set up.",[653,1855,1856],{},"Modules aren't switched on. The command names the ones that were on, and you switch them on in the admin.",[653,1858,1859],{},"It clears what modules keep in their cache in Redis, so nothing from before the import comes back. When Redis can't\nbe reached it says so: empty Redis before you start the containers.",[653,1861,1862],{},"Afterwards, build the site.",[653,1864,1865,1866,791],{},"The audit log records it as an import by ",[623,1867,676],{},[953,1869,633],{"id":633},[956,1871,1873],{"className":958,"code":1872,"language":960,"meta":961,"style":961},"node console\u002Fmigrate.mjs\n",[623,1874,1875],{"__ignoreMap":961},[965,1876,1877,1879],{"class":967,"line":968},[965,1878,1025],{"class":989},[965,1880,1881],{"class":993}," console\u002Fmigrate.mjs\n",[619,1883,1884,1885,1632,1888,1890,1891,791],{},"The admin container applies new migrations itself when it starts with ",[623,1886,1887],{},"MIGRATE_ON_START=true",[623,1889,633],{}," is for a\ndeploy script or CI job that wants them in before anything starts. It applies SHADE's own migrations and exits; the\nmodules' migrations still run when SHADE starts, since they come with the modules it loads. It connects as the owner, with\n",[623,1892,641],{},[619,1894,1895,1896,1899],{},"It keeps to the order an update follows at start. Where backups are set up, it takes the backup first\n(",[623,1897,1898],{},"SHADE_BACKUP_BEFORE_MIGRATE","), and when the backup fails nothing is applied. Then it applies the migrations and adds\na row to the upgrade history naming them. A database migrated before SHADE squashed its migrations is refused, as at\nstart. It exits 0 when the migrations are in or there were none, and 1 when something failed.",[953,1901,886],{"id":886},[956,1903,1905],{"className":958,"code":1904,"language":960,"meta":961,"style":961},"node console\u002Fstatus.mjs\nnode console\u002Fstatus.mjs --json\n",[623,1906,1907,1914],{"__ignoreMap":961},[965,1908,1909,1911],{"class":967,"line":968},[965,1910,1025],{"class":989},[965,1912,1913],{"class":993}," console\u002Fstatus.mjs\n",[965,1915,1916,1918,1921],{"class":967,"line":1022},[965,1917,1025],{"class":989},[965,1919,1920],{"class":993}," console\u002Fstatus.mjs",[965,1922,1923],{"class":993}," --json\n",[619,1925,1926,1928],{},[623,1927,886],{}," answers whether an instance is ready, from its database and Redis, without going through the API. A deploy\nscript or a monitor can poll it while the containers come up. It prints one line per part:",[956,1930,1935],{"className":1931,"code":1933,"language":1934,"meta":961},[1932],"language-text","database   ok     The database answered.\nmigrations ok     None pending.\nworker     ok     Last heartbeat 5 seconds ago, from worker-1.\nplugins    ok     Loaded: website.\n","text",[623,1936,1933],{"__ignoreMap":961},[650,1938,1939,1945,1951,1960],{},[653,1940,1941,1944],{},[623,1942,1943],{},"database",": whether it answers.",[653,1946,1947,1950],{},[623,1948,1949],{},"migrations",": SHADE's own and the installed modules' that the database lacks. While SHADE's own are pending, the\nmodules aren't loaded, since their code reads SHADE's tables.",[653,1952,1953,1956,1957,670],{},[623,1954,1955],{},"worker",": whether a worker wrote its heartbeat in the last two minutes (",[644,1958,1959],{"href":402},"Background work",[653,1961,1962,1965],{},[623,1963,1964],{},"plugins",": the modules that load, and those left out because they could not be loaded or are switched on but not\ninstalled here. The log says why.",[619,1967,1968,1970],{},[623,1969,1087],{}," prints the same as one object on stdout, with the log on stderr:",[956,1972,1974],{"className":1246,"code":1973,"language":1248,"meta":961,"style":961},"{ \"ok\": true,\n  \"database\": { \"ok\": true, \"message\": \"The database answered.\" },\n  \"migrations\": { \"ok\": true, \"core\": [], \"plugins\": {} },\n  \"worker\": { \"ok\": true, \"lastSeenAt\": \"2026-11-26T11:59:55.000Z\", \"worker\": \"worker-1\" },\n  \"plugins\": { \"ok\": true, \"loaded\": [\"website\"], \"leftOut\": [] } }\n",[623,1975,1976,1992,2034,2081,2138],{"__ignoreMap":961},[965,1977,1978,1980,1982,1985,1987,1989],{"class":967,"line":968},[965,1979,1255],{"class":975},[965,1981,976],{"class":975},[965,1983,1984],{"class":1260},"ok",[965,1986,983],{"class":975},[965,1988,1266],{"class":975},[965,1990,1991],{"class":975}," true,\n",[965,1993,1994,1996,1998,2000,2002,2004,2006,2008,2010,2012,2015,2017,2020,2022,2024,2026,2029,2031],{"class":967,"line":1022},[965,1995,1351],{"class":975},[965,1997,1943],{"class":1260},[965,1999,983],{"class":975},[965,2001,1266],{"class":975},[965,2003,1361],{"class":975},[965,2005,976],{"class":975},[965,2007,1984],{"class":989},[965,2009,983],{"class":975},[965,2011,1266],{"class":975},[965,2013,2014],{"class":975}," true,",[965,2016,976],{"class":975},[965,2018,2019],{"class":989},"message",[965,2021,983],{"class":975},[965,2023,1266],{"class":975},[965,2025,976],{"class":975},[965,2027,2028],{"class":993},"The database answered.",[965,2030,983],{"class":975},[965,2032,2033],{"class":975}," },\n",[965,2035,2036,2038,2040,2042,2044,2046,2048,2050,2052,2054,2056,2058,2061,2063,2065,2068,2070,2072,2074,2076,2079],{"class":967,"line":1595},[965,2037,1351],{"class":975},[965,2039,1949],{"class":1260},[965,2041,983],{"class":975},[965,2043,1266],{"class":975},[965,2045,1361],{"class":975},[965,2047,976],{"class":975},[965,2049,1984],{"class":989},[965,2051,983],{"class":975},[965,2053,1266],{"class":975},[965,2055,2014],{"class":975},[965,2057,976],{"class":975},[965,2059,2060],{"class":989},"core",[965,2062,983],{"class":975},[965,2064,1266],{"class":975},[965,2066,2067],{"class":975}," [],",[965,2069,976],{"class":975},[965,2071,1964],{"class":989},[965,2073,983],{"class":975},[965,2075,1266],{"class":975},[965,2077,2078],{"class":975}," {}",[965,2080,2033],{"class":975},[965,2082,2083,2085,2087,2089,2091,2093,2095,2097,2099,2101,2103,2105,2108,2110,2112,2114,2117,2119,2121,2123,2125,2127,2129,2131,2134,2136],{"class":967,"line":1605},[965,2084,1351],{"class":975},[965,2086,1955],{"class":1260},[965,2088,983],{"class":975},[965,2090,1266],{"class":975},[965,2092,1361],{"class":975},[965,2094,976],{"class":975},[965,2096,1984],{"class":989},[965,2098,983],{"class":975},[965,2100,1266],{"class":975},[965,2102,2014],{"class":975},[965,2104,976],{"class":975},[965,2106,2107],{"class":989},"lastSeenAt",[965,2109,983],{"class":975},[965,2111,1266],{"class":975},[965,2113,976],{"class":975},[965,2115,2116],{"class":993},"2026-11-26T11:59:55.000Z",[965,2118,983],{"class":975},[965,2120,1276],{"class":975},[965,2122,976],{"class":975},[965,2124,1955],{"class":989},[965,2126,983],{"class":975},[965,2128,1266],{"class":975},[965,2130,976],{"class":975},[965,2132,2133],{"class":993},"worker-1",[965,2135,983],{"class":975},[965,2137,2033],{"class":975},[965,2139,2141,2143,2145,2147,2149,2151,2153,2155,2157,2159,2161,2163,2166,2168,2170,2173,2175,2178,2180,2183,2185,2188,2190,2192,2195,2198],{"class":967,"line":2140},5,[965,2142,1351],{"class":975},[965,2144,1964],{"class":1260},[965,2146,983],{"class":975},[965,2148,1266],{"class":975},[965,2150,1361],{"class":975},[965,2152,976],{"class":975},[965,2154,1984],{"class":989},[965,2156,983],{"class":975},[965,2158,1266],{"class":975},[965,2160,2014],{"class":975},[965,2162,976],{"class":975},[965,2164,2165],{"class":989},"loaded",[965,2167,983],{"class":975},[965,2169,1266],{"class":975},[965,2171,2172],{"class":975}," [",[965,2174,983],{"class":975},[965,2176,2177],{"class":993},"website",[965,2179,983],{"class":975},[965,2181,2182],{"class":975},"],",[965,2184,976],{"class":975},[965,2186,2187],{"class":989},"leftOut",[965,2189,983],{"class":975},[965,2191,1266],{"class":975},[965,2193,2194],{"class":975}," []",[965,2196,2197],{"class":975}," }",[965,2199,1411],{"class":975},[619,2201,2202,2203,2206,2207,2209],{},"A part it could not read has ",[623,2204,2205],{},"ok: false"," and a ",[623,2208,2019],{}," saying why. It exits 0 when every part is ok and 1 otherwise,\nand prints the report either way. It changes nothing in the database or Redis.",[953,2211,896],{"id":896},[956,2213,2215],{"className":958,"code":2214,"language":960,"meta":961,"style":961},"node console\u002Fschema.mjs --secrets\nnode console\u002Fschema.mjs --secrets --json\n",[623,2216,2217,2227],{"__ignoreMap":961},[965,2218,2219,2221,2224],{"class":967,"line":968},[965,2220,1025],{"class":989},[965,2222,2223],{"class":993}," console\u002Fschema.mjs",[965,2225,2226],{"class":993}," --secrets\n",[965,2228,2229,2231,2233,2236],{"class":967,"line":1022},[965,2230,1025],{"class":989},[965,2232,2223],{"class":993},[965,2234,2235],{"class":993}," --secrets",[965,2237,1923],{"class":993},[619,2239,2240,2243],{},[623,2241,2242],{},"schema --secrets"," lists the columns that hold what signs someone in or opens something: passwords, session and API\ntokens and their hashes, two-factor secrets, sealed values, and a build hook's address, which is itself the key. Use it\nwhen you give a person or a tool read access to the database and want to leave those columns out. Shade Desk's\nread-only database role is granted every column but these.",[619,2245,2246,2247,2250,2251,2253,2254,2257,2258,2260],{},"The list comes from where SHADE's tables and the installed modules' tables are defined, never from a column's name.\nIt prints one ",[623,2248,2249],{},"table.column"," per line, or with ",[623,2252,1087],{}," one object, ",[623,2255,2256],{},"{ \"secrets\": [{ \"table\", \"column\", \"plugin\" }] }",",\nwhere ",[623,2259,916],{}," names the module a table belongs to. When a module could not be loaded its columns aren't known, so the\ncommand names it and exits 1.",[953,2262,906],{"id":906},[956,2264,2266],{"className":958,"code":2265,"language":960,"meta":961,"style":961},"node console\u002Fenv.mjs --json\nnode console\u002Fenv.mjs --check \u002Fetc\u002Fshade\u002Fshade.env --json\n",[623,2267,2268,2277],{"__ignoreMap":961},[965,2269,2270,2272,2275],{"class":967,"line":968},[965,2271,1025],{"class":989},[965,2273,2274],{"class":993}," console\u002Fenv.mjs",[965,2276,1923],{"class":993},[965,2278,2279,2281,2283,2286,2289],{"class":967,"line":1022},[965,2280,1025],{"class":989},[965,2282,2274],{"class":993},[965,2284,2285],{"class":993}," --check",[965,2287,2288],{"class":993}," \u002Fetc\u002Fshade\u002Fshade.env",[965,2290,1923],{"class":993},[619,2292,2293,2295,2296,2298],{},[623,2294,906],{}," lists every variable SHADE reads, one per line, with what it is for and whether it is required or holds a\nsecret. With ",[623,2297,1087],{}," it prints one object, which is how Shade Desk builds its env file editor:",[956,2300,2302],{"className":1246,"code":2301,"language":1248,"meta":961,"style":961},"{ \"variables\": [\n  { \"name\": \"APP_SECRET\", \"description\": \"Signs sessions and preview tokens. Long, random, stable.\", \"secret\": true, \"required\": true },\n  { \"name\": \"SHADE_API_URL\", \"description\": \"Where the API answers …\", \"secret\": false, \"required\": false } ] }\n",[623,2303,2304,2320,2384],{"__ignoreMap":961},[965,2305,2306,2308,2310,2313,2315,2317],{"class":967,"line":968},[965,2307,1255],{"class":975},[965,2309,976],{"class":975},[965,2311,2312],{"class":1260},"variables",[965,2314,983],{"class":975},[965,2316,1266],{"class":975},[965,2318,2319],{"class":975}," [\n",[965,2321,2322,2325,2327,2329,2331,2333,2335,2337,2339,2341,2343,2346,2348,2350,2352,2355,2357,2359,2361,2364,2366,2368,2370,2372,2375,2377,2379,2382],{"class":967,"line":1022},[965,2323,2324],{"class":975},"  {",[965,2326,976],{"class":975},[965,2328,1333],{"class":989},[965,2330,983],{"class":975},[965,2332,1266],{"class":975},[965,2334,976],{"class":975},[965,2336,835],{"class":993},[965,2338,983],{"class":975},[965,2340,1276],{"class":975},[965,2342,976],{"class":975},[965,2344,2345],{"class":989},"description",[965,2347,983],{"class":975},[965,2349,1266],{"class":975},[965,2351,976],{"class":975},[965,2353,2354],{"class":993},"Signs sessions and preview tokens. Long, random, stable.",[965,2356,983],{"class":975},[965,2358,1276],{"class":975},[965,2360,976],{"class":975},[965,2362,2363],{"class":989},"secret",[965,2365,983],{"class":975},[965,2367,1266],{"class":975},[965,2369,2014],{"class":975},[965,2371,976],{"class":975},[965,2373,2374],{"class":989},"required",[965,2376,983],{"class":975},[965,2378,1266],{"class":975},[965,2380,2381],{"class":975}," true",[965,2383,2033],{"class":975},[965,2385,2386,2388,2390,2392,2394,2396,2398,2401,2403,2405,2407,2409,2411,2413,2415,2418,2420,2422,2424,2426,2428,2430,2433,2435,2437,2439,2441,2444,2446,2449],{"class":967,"line":1595},[965,2387,2324],{"class":975},[965,2389,976],{"class":975},[965,2391,1333],{"class":989},[965,2393,983],{"class":975},[965,2395,1266],{"class":975},[965,2397,976],{"class":975},[965,2399,2400],{"class":993},"SHADE_API_URL",[965,2402,983],{"class":975},[965,2404,1276],{"class":975},[965,2406,976],{"class":975},[965,2408,2345],{"class":989},[965,2410,983],{"class":975},[965,2412,1266],{"class":975},[965,2414,976],{"class":975},[965,2416,2417],{"class":993},"Where the API answers …",[965,2419,983],{"class":975},[965,2421,1276],{"class":975},[965,2423,976],{"class":975},[965,2425,2363],{"class":989},[965,2427,983],{"class":975},[965,2429,1266],{"class":975},[965,2431,2432],{"class":975}," false,",[965,2434,976],{"class":975},[965,2436,2374],{"class":989},[965,2438,983],{"class":975},[965,2440,1266],{"class":975},[965,2442,2443],{"class":975}," false",[965,2445,2197],{"class":975},[965,2447,2448],{"class":975}," ]",[965,2450,1411],{"class":975},[619,2452,2453,2455,2456,2459,2460,1632,2463,2466,2467,2470,2471,2473],{},[623,2454,2374],{}," means SHADE does not start without it. A few others are needed only together with another one, such as\n",[623,2457,2458],{},"SHADE_BACKUP_KEY"," with ",[623,2461,2462],{},"SHADE_BACKUP_URL",[623,2464,2465],{},"--check \u003Cfile>"," finds those too. It reads the file's ",[623,2468,2469],{},"NAME=value"," lines\non their own (not the shell's environment, nor a checkout's ",[623,2472,669],{},"), runs them through the same checks SHADE runs at\nstart, and prints each problem by variable:",[956,2475,2477],{"className":1246,"code":2476,"language":1248,"meta":961,"style":961},"{ \"ok\": false, \"problems\": [\n  { \"name\": \"SHADE_BACKUP_KEY\", \"message\": \"SHADE_BACKUP_KEY is required with SHADE_BACKUP_URL: 32 random bytes in base64 (openssl rand -base64 32)\" } ] }\n",[623,2478,2479,2504],{"__ignoreMap":961},[965,2480,2481,2483,2485,2487,2489,2491,2493,2495,2498,2500,2502],{"class":967,"line":968},[965,2482,1255],{"class":975},[965,2484,976],{"class":975},[965,2486,1984],{"class":1260},[965,2488,983],{"class":975},[965,2490,1266],{"class":975},[965,2492,2432],{"class":975},[965,2494,976],{"class":975},[965,2496,2497],{"class":1260},"problems",[965,2499,983],{"class":975},[965,2501,1266],{"class":975},[965,2503,2319],{"class":975},[965,2505,2506,2508,2510,2512,2514,2516,2518,2520,2522,2524,2526,2528,2530,2532,2534,2537,2539,2541,2543],{"class":967,"line":1022},[965,2507,2324],{"class":975},[965,2509,976],{"class":975},[965,2511,1333],{"class":989},[965,2513,983],{"class":975},[965,2515,1266],{"class":975},[965,2517,976],{"class":975},[965,2519,2458],{"class":993},[965,2521,983],{"class":975},[965,2523,1276],{"class":975},[965,2525,976],{"class":975},[965,2527,2019],{"class":989},[965,2529,983],{"class":975},[965,2531,1266],{"class":975},[965,2533,976],{"class":975},[965,2535,2536],{"class":993},"SHADE_BACKUP_KEY is required with SHADE_BACKUP_URL: 32 random bytes in base64 (openssl rand -base64 32)",[965,2538,983],{"class":975},[965,2540,2197],{"class":975},[965,2542,2448],{"class":975},[965,2544,1411],{"class":975},[619,2546,2547,2548,2551,2552,2554,2555,2558,2559,2562],{},"A problem of the whole file has ",[623,2549,2550],{},"\"name\": null",". When the file sets ",[623,2553,817],{},", the secrets it leaves unset count\nas generated on the first start, and the report names which are set and which will be generated\n(",[623,2556,2557],{},"\"secrets\": [{ \"name\": \"APP_SECRET\", \"origin\": \"generated\" }]","), never a value. The command never prints a value, and a secret a message would\nrepeat is shown as ",[623,2560,2561],{},"***",". It exits 0 when the file is valid and 1 when it is not, or cannot be read.",[953,2564,2565],{"id":2565},"module",[956,2567,2569],{"className":958,"code":2568,"language":960,"meta":961,"style":961},"node console\u002Fmodule.mjs check\nnode console\u002Fmodule.mjs check ..\u002Fmodules\u002Fmy-plugin --json\n",[623,2570,2571,2581],{"__ignoreMap":961},[965,2572,2573,2575,2578],{"class":967,"line":968},[965,2574,1025],{"class":989},[965,2576,2577],{"class":993}," console\u002Fmodule.mjs",[965,2579,2580],{"class":993}," check\n",[965,2582,2583,2585,2587,2590,2593],{"class":967,"line":1022},[965,2584,1025],{"class":989},[965,2586,2577],{"class":993},[965,2588,2589],{"class":993}," check",[965,2591,2592],{"class":993}," ..\u002Fmodules\u002Fmy-plugin",[965,2594,1923],{"class":993},[619,2596,2597,2600,2601,2604,2605,2608,2609,2611],{},[623,2598,2599],{},"plugin check"," imports each folder's ",[623,2602,2603],{},"module.ts",", as ",[623,2606,2607],{},"SHADE_DEV_MODULES"," does, and checks it as SHADE checks a module\nbefore it runs it: its name, capabilities, tables, actions, routes and the rest of the manifest, and its files. A\nmodule that would stop the instance from starting is listed here with every problem at once. Without a folder it\nchecks the folders ",[623,2610,2607],{}," names. It needs no database.",[956,2613,2616],{"className":2614,"code":2615,"language":1934,"meta":961},[1932],"ok       my-plugin\nfailed   other-plugin: capabilities.telepathy is not a capability this SHADE knows\n",[623,2617,2615],{"__ignoreMap":961},[619,2619,2620,2621,2623,2624,1632,2627,2629,2630,2632],{},"With ",[623,2622,1087],{},": ",[623,2625,2626],{},"{ \"ok\": false, \"plugins\": [{ \"folder\", \"name\", \"problems\": [] }] }",[623,2628,1333],{}," is null when the folder's\nmodule could not be imported, and ",[623,2631,2497],{}," says why. It exits 1 when any module has a problem.",[953,2634,926],{"id":926},[956,2636,2638],{"className":958,"code":2637,"language":960,"meta":961,"style":961},"node console\u002Fqueue.mjs --json\nnode console\u002Fqueue.mjs --days 1 --limit 20\nnode console\u002Fqueue.mjs --run-again 3f0c…\nnode console\u002Fqueue.mjs --cancel 8a21…\n",[623,2639,2640,2649,2667,2679],{"__ignoreMap":961},[965,2641,2642,2644,2647],{"class":967,"line":968},[965,2643,1025],{"class":989},[965,2645,2646],{"class":993}," console\u002Fqueue.mjs",[965,2648,1923],{"class":993},[965,2650,2651,2653,2655,2658,2661,2664],{"class":967,"line":1022},[965,2652,1025],{"class":989},[965,2654,2646],{"class":993},[965,2656,2657],{"class":993}," --days",[965,2659,2660],{"class":1474}," 1",[965,2662,2663],{"class":993}," --limit",[965,2665,2666],{"class":1474}," 20\n",[965,2668,2669,2671,2673,2676],{"class":967,"line":1595},[965,2670,1025],{"class":989},[965,2672,2646],{"class":993},[965,2674,2675],{"class":993}," --run-again",[965,2677,2678],{"class":993}," 3f0c…\n",[965,2680,2681,2683,2685,2688],{"class":967,"line":1605},[965,2682,1025],{"class":989},[965,2684,2646],{"class":993},[965,2686,2687],{"class":993}," --cancel",[965,2689,2690],{"class":993}," 8a21…\n",[619,2692,2693,2695,2696,2699,2700,2703,2704,2707,2708,2711],{},[623,2694,926],{}," reads the queue's jobs from the database: per queue how many wait, how many are in flight, and how many\nfailed, finished or were cancelled in the last 7 days (",[623,2697,2698],{},"--days",", up to 30, the time finished jobs are kept). Then come\nthe newest 50 jobs not finished yet, each waiting (until its ",[623,2701,2702],{},"runAt",") or in flight (since its ",[623,2705,2706],{},"sentAt","), and the newest\n50 that failed, with their tries and last error. ",[623,2709,2710],{},"--limit"," (up to 500) caps each of the two lists.",[956,2713,2715],{"className":1246,"code":2714,"language":1248,"meta":961,"style":961},"{ \"since\": \"2026-11-20T12:00:00.000Z\",\n  \"queues\": [{ \"queue\": \"webhooks.deliver\", \"waiting\": 2, \"inFlight\": 1, \"failed\": 1, \"finished\": 40, \"cancelled\": 0 }],\n  \"pending\": [{ \"id\": \"8a21…\", \"queue\": \"webhooks.deliver\", \"createdAt\": \"…\", \"runAt\": \"…\", \"sentAt\": null }],\n  \"failed\": [{ \"id\": \"3f0c…\", \"queue\": \"webhooks.deliver\", \"attempts\": 5, \"error\": \"…\", \"failedAt\": \"…\", \"runAgain\": true }] }\n",[623,2716,2717,2739,2839,2930],{"__ignoreMap":961},[965,2718,2719,2721,2723,2726,2728,2730,2732,2735,2737],{"class":967,"line":968},[965,2720,1255],{"class":975},[965,2722,976],{"class":975},[965,2724,2725],{"class":1260},"since",[965,2727,983],{"class":975},[965,2729,1266],{"class":975},[965,2731,976],{"class":975},[965,2733,2734],{"class":993},"2026-11-20T12:00:00.000Z",[965,2736,983],{"class":975},[965,2738,1346],{"class":975},[965,2740,2741,2743,2746,2748,2750,2753,2755,2757,2759,2761,2763,2766,2768,2770,2772,2775,2777,2779,2782,2784,2786,2789,2791,2793,2795,2797,2799,2802,2804,2806,2808,2810,2812,2815,2817,2819,2822,2824,2826,2829,2831,2833,2836],{"class":967,"line":1022},[965,2742,1351],{"class":975},[965,2744,2745],{"class":1260},"queues",[965,2747,983],{"class":975},[965,2749,1266],{"class":975},[965,2751,2752],{"class":975}," [{",[965,2754,976],{"class":975},[965,2756,926],{"class":989},[965,2758,983],{"class":975},[965,2760,1266],{"class":975},[965,2762,976],{"class":975},[965,2764,2765],{"class":993},"webhooks.deliver",[965,2767,983],{"class":975},[965,2769,1276],{"class":975},[965,2771,976],{"class":975},[965,2773,2774],{"class":989},"waiting",[965,2776,983],{"class":975},[965,2778,1266],{"class":975},[965,2780,2781],{"class":1474}," 2",[965,2783,1276],{"class":975},[965,2785,976],{"class":975},[965,2787,2788],{"class":989},"inFlight",[965,2790,983],{"class":975},[965,2792,1266],{"class":975},[965,2794,2660],{"class":1474},[965,2796,1276],{"class":975},[965,2798,976],{"class":975},[965,2800,2801],{"class":989},"failed",[965,2803,983],{"class":975},[965,2805,1266],{"class":975},[965,2807,2660],{"class":1474},[965,2809,1276],{"class":975},[965,2811,976],{"class":975},[965,2813,2814],{"class":989},"finished",[965,2816,983],{"class":975},[965,2818,1266],{"class":975},[965,2820,2821],{"class":1474}," 40",[965,2823,1276],{"class":975},[965,2825,976],{"class":975},[965,2827,2828],{"class":989},"cancelled",[965,2830,983],{"class":975},[965,2832,1266],{"class":975},[965,2834,2835],{"class":1474}," 0",[965,2837,2838],{"class":975}," }],\n",[965,2840,2841,2843,2846,2848,2850,2852,2854,2856,2858,2860,2862,2865,2867,2869,2871,2873,2875,2877,2879,2881,2883,2885,2887,2890,2892,2894,2896,2898,2900,2902,2904,2906,2908,2910,2912,2914,2916,2918,2920,2922,2924,2926,2928],{"class":967,"line":1595},[965,2842,1351],{"class":975},[965,2844,2845],{"class":1260},"pending",[965,2847,983],{"class":975},[965,2849,1266],{"class":975},[965,2851,2752],{"class":975},[965,2853,976],{"class":975},[965,2855,1261],{"class":989},[965,2857,983],{"class":975},[965,2859,1266],{"class":975},[965,2861,976],{"class":975},[965,2863,2864],{"class":993},"8a21…",[965,2866,983],{"class":975},[965,2868,1276],{"class":975},[965,2870,976],{"class":975},[965,2872,926],{"class":989},[965,2874,983],{"class":975},[965,2876,1266],{"class":975},[965,2878,976],{"class":975},[965,2880,2765],{"class":993},[965,2882,983],{"class":975},[965,2884,1276],{"class":975},[965,2886,976],{"class":975},[965,2888,2889],{"class":989},"createdAt",[965,2891,983],{"class":975},[965,2893,1266],{"class":975},[965,2895,976],{"class":975},[965,2897,1271],{"class":993},[965,2899,983],{"class":975},[965,2901,1276],{"class":975},[965,2903,976],{"class":975},[965,2905,2702],{"class":989},[965,2907,983],{"class":975},[965,2909,1266],{"class":975},[965,2911,976],{"class":975},[965,2913,1271],{"class":993},[965,2915,983],{"class":975},[965,2917,1276],{"class":975},[965,2919,976],{"class":975},[965,2921,2706],{"class":989},[965,2923,983],{"class":975},[965,2925,1266],{"class":975},[965,2927,1408],{"class":975},[965,2929,2838],{"class":975},[965,2931,2932,2934,2936,2938,2940,2942,2944,2946,2948,2950,2952,2955,2957,2959,2961,2963,2965,2967,2969,2971,2973,2975,2977,2980,2982,2984,2987,2989,2991,2994,2996,2998,3000,3002,3004,3006,3008,3011,3013,3015,3017,3019,3021,3023,3025,3028,3030,3032,3034,3037],{"class":967,"line":1605},[965,2933,1351],{"class":975},[965,2935,2801],{"class":1260},[965,2937,983],{"class":975},[965,2939,1266],{"class":975},[965,2941,2752],{"class":975},[965,2943,976],{"class":975},[965,2945,1261],{"class":989},[965,2947,983],{"class":975},[965,2949,1266],{"class":975},[965,2951,976],{"class":975},[965,2953,2954],{"class":993},"3f0c…",[965,2956,983],{"class":975},[965,2958,1276],{"class":975},[965,2960,976],{"class":975},[965,2962,926],{"class":989},[965,2964,983],{"class":975},[965,2966,1266],{"class":975},[965,2968,976],{"class":975},[965,2970,2765],{"class":993},[965,2972,983],{"class":975},[965,2974,1276],{"class":975},[965,2976,976],{"class":975},[965,2978,2979],{"class":989},"attempts",[965,2981,983],{"class":975},[965,2983,1266],{"class":975},[965,2985,2986],{"class":1474}," 5",[965,2988,1276],{"class":975},[965,2990,976],{"class":975},[965,2992,2993],{"class":989},"error",[965,2995,983],{"class":975},[965,2997,1266],{"class":975},[965,2999,976],{"class":975},[965,3001,1271],{"class":993},[965,3003,983],{"class":975},[965,3005,1276],{"class":975},[965,3007,976],{"class":975},[965,3009,3010],{"class":989},"failedAt",[965,3012,983],{"class":975},[965,3014,1266],{"class":975},[965,3016,976],{"class":975},[965,3018,1271],{"class":993},[965,3020,983],{"class":975},[965,3022,1276],{"class":975},[965,3024,976],{"class":975},[965,3026,3027],{"class":989},"runAgain",[965,3029,983],{"class":975},[965,3031,1266],{"class":975},[965,3033,2381],{"class":975},[965,3035,3036],{"class":975}," }]",[965,3038,1411],{"class":975},[619,3040,3041,3042,630,3045,3048,3049,3052,3053,791],{},"A job's data is never shown: it may hold a person's details, and a job that finished keeps none. For the same reason\nonly an event's delivery can run again (",[623,3043,3044],{},"runAgain: true",[623,3046,3047],{},"--run-again \u003Cid>"," sends it to its subscriber once more, as\n",[1511,3050,3051],{},"Resend"," on the admin's Errors page does, and the audit log records it as the console's. Any other failed job's\nwork can't be repeated from here. An error that holds one of the instance's secrets shows it as ",[623,3054,2561],{},[619,3056,3057,3060,3061,3063,3064,634,3067,3070,3071,2459,3074,3076,3077,791],{},[623,3058,3059],{},"--cancel \u003Cid>"," takes back a job that hasn't finished, whether it still waits or is in flight. It is kept for the same\n7 days as ",[623,3062,2828],{},", without its data, and the audit log records it as the console's. A job in flight is skipped at\nits next try, but a try that is running at that moment still ends. A job that finished can't be cancelled: the command\nsays so and exits 1. Both ",[623,3065,3066],{},"--run-again",[623,3068,3069],{},"--cancel"," answer ",[623,3072,3073],{},"{ \"ok\": true, \"id\": \"…\" }",[623,3075,1087],{},", or\n",[623,3078,3079],{},"{ \"ok\": false, \"message\": \"…\" }",[953,3081,3083],{"id":3082},"switching-a-module-from-a-script","Switching a module from a script",[619,3085,3086],{},"There is no console command for switching a module. A module is switched on in the running instance, where its code is\nloaded: it gets ready for work, the other modules hear about it, and the site rebuilds when the module shows anything there.\nA script does it through the admin API, with an automation token that may manage modules:",[956,3088,3090],{"className":958,"code":3089,"language":960,"meta":961,"style":961},"node console\u002Fcreate-token.mjs --email ann@example.org --kind automation --name \"Set-up script\" \\\n  --expires 2026-12-31 --action packages.manage --out setup.token\ncurl -X PUT https:\u002F\u002Fadmin.example.com\u002Fapi\u002Fpackages\u002Fcatalog\u002Fwebsite\u002Fenabled \\\n  -H \"Authorization: Bearer $(cat setup.token)\" -H \"Content-Type: application\u002Fjson\" -d '{\"enabled\":true}'\n",[623,3091,3092,3118,3137,3153],{"__ignoreMap":961},[965,3093,3094,3096,3098,3100,3102,3104,3107,3109,3111,3114,3116],{"class":967,"line":968},[965,3095,1025],{"class":989},[965,3097,1112],{"class":993},[965,3099,997],{"class":993},[965,3101,1000],{"class":993},[965,3103,1119],{"class":993},[965,3105,3106],{"class":993}," automation",[965,3108,1003],{"class":993},[965,3110,976],{"class":975},[965,3112,3113],{"class":993},"Set-up script",[965,3115,983],{"class":975},[965,3117,1484],{"class":979},[965,3119,3120,3123,3126,3129,3132,3134],{"class":967,"line":1022},[965,3121,3122],{"class":993},"  --expires",[965,3124,3125],{"class":993}," 2026-12-31",[965,3127,3128],{"class":993}," --action",[965,3130,3131],{"class":993}," packages.manage",[965,3133,1133],{"class":993},[965,3135,3136],{"class":993}," setup.token\n",[965,3138,3139,3142,3145,3148,3151],{"class":967,"line":1595},[965,3140,3141],{"class":989},"curl",[965,3143,3144],{"class":993}," -X",[965,3146,3147],{"class":993}," PUT",[965,3149,3150],{"class":993}," https:\u002F\u002Fadmin.example.com\u002Fapi\u002Fpackages\u002Fcatalog\u002Fwebsite\u002Fenabled",[965,3152,1484],{"class":979},[965,3154,3155,3158,3160,3163,3166,3169,3172,3175,3178,3180,3183,3185,3188,3191,3194],{"class":967,"line":1605},[965,3156,3157],{"class":993},"  -H",[965,3159,976],{"class":975},[965,3161,3162],{"class":993},"Authorization: Bearer ",[965,3164,3165],{"class":975},"$(",[965,3167,3168],{"class":989},"cat",[965,3170,3171],{"class":993}," setup.token",[965,3173,3174],{"class":975},")\"",[965,3176,3177],{"class":993}," -H",[965,3179,976],{"class":975},[965,3181,3182],{"class":993},"Content-Type: application\u002Fjson",[965,3184,983],{"class":975},[965,3186,3187],{"class":993}," -d",[965,3189,3190],{"class":975}," '",[965,3192,3193],{"class":993},"{\"enabled\":true}",[965,3195,3196],{"class":975},"'\n",[650,3198,3199,3205],{},[653,3200,3201,3202,3204],{},"The same rules as ",[1511,3203,317],{}," in the admin hold. A module that needs setup first, or another module that is off, is refused\nwith the reason.",[653,3206,3207,3208,3210],{},"Give the token a short life with ",[623,3209,1428],{},", and revoke it in the admin when the script is done.",[3212,3213,3214],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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 .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":961,"searchDepth":1022,"depth":1022,"links":3216},[3217,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229],{"id":721,"depth":1022,"text":721},{"id":731,"depth":1022,"text":731},{"id":741,"depth":1022,"text":741},{"id":774,"depth":1022,"text":774},{"id":784,"depth":1022,"text":784},{"id":798,"depth":1022,"text":798},{"id":633,"depth":1022,"text":633},{"id":886,"depth":1022,"text":886},{"id":896,"depth":1022,"text":896},{"id":906,"depth":1022,"text":906},{"id":2565,"depth":1022,"text":2565},{"id":926,"depth":1022,"text":926},{"id":3082,"depth":1022,"text":3083},"md",null,{},true,{"title":50,"description":961},"Oj9jybNNOmCM5DhQL3YNqZ-XeUlcAUZJGTWQdtGRc-0",[3237,3238],{"title":46,"path":47,"stem":48,"description":961,"children":-1},{"title":54,"path":55,"stem":56,"description":961,"children":-1},1796500157406]