[{"data":1,"prerenderedAt":1237},["ShallowReactive",2],{"navigation_docs":3,"-docs-cli-overview":478,"-docs-cli-overview-surround":1232},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":50,"body":480,"description":1225,"extension":1226,"links":1227,"meta":1228,"navigation":1229,"path":452,"seo":1230,"stem":453,"__hash__":1231},"docs\u002Fdocs\u002F3.cli\u002F1.overview.md",{"type":481,"value":482,"toc":1210},"minimark",[483,495,500,609,620,636,646,657,661,664,669,680,733,739,753,757,772,788,792,880,886,890,903,944,948,1001,1005,1011,1059,1068,1081,1085,1183,1187,1206],[484,485,486,487,490,491,494],"p",{},"Tenon has two command-line tools. ",[488,489,455],"code",{}," starts a new project. ",[488,492,493],{},"tenon"," maintains a project: it backs it up, restores it, upgrades it and manages its users. Both need Node 24 or newer.",[496,497,499],"h2",{"id":498},"commands","Commands",[501,502,503,516],"table",{},[504,505,506],"thead",{},[507,508,509,513],"tr",{},[510,511,512],"th",{},"Command",[510,514,515],{},"What it does",[517,518,519,533,544,557,568,580,594],"tbody",{},[507,520,521,530],{},[522,523,524],"td",{},[525,526,527],"a",{"href":456},[488,528,529],{},"npm create tenoncms",[522,531,532],{},"Creates a new project from a starter",[507,534,535,541],{},[522,536,537],{},[525,538,539],{"href":460},[488,540,459],{},[522,542,543],{},"Writes all data into a ZIP file",[507,545,546,554],{},[522,547,548],{},[525,549,551],{"href":550},"\u002Fdocs\u002Fcli\u002Fbackup#tenon-restore",[488,552,553],{},"tenon restore",[522,555,556],{},"Replaces all data with a backup",[507,558,559,565],{},[522,560,561],{},[525,562,563],{"href":464},[488,564,463],{},[522,566,567],{},"Invites, recovers and manages users",[507,569,570,577],{},[522,571,572],{},[525,573,574],{"href":468},[488,575,576],{},"tenon media regenerate",[522,578,579],{},"Renders image variants again",[507,581,582,588],{},[522,583,584],{},[525,585,586],{"href":472},[488,587,471],{},[522,589,590,591],{},"Installs the latest ",[488,592,593],{},"tenoncms",[507,595,596,606],{},[522,597,598],{},[525,599,600,602,603],{"href":476},[488,601,475],{},", ",[488,604,605],{},"tenon logout",[522,607,608],{},"Signs in to a deployed site, and out again",[484,610,611,613,614,616,617,619],{},[488,612,493],{}," comes with the ",[488,615,593],{}," package, so every project that has ",[488,618,593],{}," has it. Run it with your package manager:",[621,622,627],"pre",{"className":623,"code":624,"language":625,"meta":626,"style":626},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx tenon backup\n","sh","",[488,628,629],{"__ignoreMap":626},[630,631,634],"span",{"class":632,"line":633},"line",1,[630,635,624],{},[484,637,638,641,642,645],{},[488,639,640],{},"npx tenoncms backup"," is the same command. ",[488,643,644],{},"npx tenon --help"," lists every command and flag.",[647,648,649,650,653,654,656],"note",{},"Older projects MAY still have the ",[488,651,652],{},"@tenoncms\u002Fcli"," package. Remove it: ",[488,655,593],{}," has the command now.",[496,658,660],{"id":659},"local-or-remote","Local or remote",[484,662,663],{},"Each command works on the project in the current folder, or on a running site.",[665,666,668],"h3",{"id":667},"on-the-local-project","On the local project",[484,670,671,672,675,676,679],{},"Without ",[488,673,674],{},"--url",", the CLI loads ",[488,677,678],{},"tenon.config.ts"," and opens the database itself, like your dev server does. It needs no sign-in.",[681,682,683,701,712,727],"ul",{},[684,685,686,687,602,690,602,693,696,697,700],"li",{},"It reads ",[488,688,689],{},".env",[488,691,692],{},".env.local",[488,694,695],{},".env.production"," and ",[488,698,699],{},".env.production.local",", like a production build. A variable set in the shell wins.",[684,702,703,704,707,708,711],{},"In Astro, the defaults of ",[488,705,706],{},"env.schema"," in ",[488,709,710],{},"astro.config.ts"," apply.",[684,713,714,715,718,719,722,723,726],{},"In Nuxt, it loads ",[488,716,717],{},"runtimeConfig"," from ",[488,720,721],{},"nuxt.config.ts",", with the ",[488,724,725],{},"NUXT_"," variables over it.",[684,728,729,732],{},[488,730,731],{},"--config \u003Cfile>"," loads another config file.",[484,734,735,736,738],{},"This works for SQLite, Turso, Postgres and PGlite. A config for Cloudflare runs only on Cloudflare, so use ",[488,737,674],{}," there.",[740,741,742,743,745,746,696,749,752],"warning",{},"If ",[488,744,695],{}," points at the production database, local commands work on production too, ",[488,747,748],{},"restore",[488,750,751],{},"users remove"," included.",[665,754,756],{"id":755},"on-a-running-site","On a running site",[484,758,759,760,762,763,767,768,771],{},"With ",[488,761,674],{},", the CLI talks to a running site over HTTP, local or deployed. Sign in first with ",[525,764,765],{"href":476},[488,766,475],{},", or pass an ",[525,769,770],{"href":210},"API key",":",[621,773,775],{"className":623,"code":774,"language":625,"meta":626,"style":626},"npx tenon login https:\u002F\u002Fexample.com\nnpx tenon backup --url https:\u002F\u002Fexample.com\n",[488,776,777,782],{"__ignoreMap":626},[630,778,779],{"class":632,"line":633},[630,780,781],{},"npx tenon login https:\u002F\u002Fexample.com\n",[630,783,785],{"class":632,"line":784},2,[630,786,787],{},"npx tenon backup --url https:\u002F\u002Fexample.com\n",[665,789,791],{"id":790},"which-command-works-where","Which command works where",[501,793,794,807],{},[504,795,796],{},[507,797,798,800,803],{},[510,799,512],{},[510,801,802],{},"Local",[510,804,805],{},[488,806,674],{},[517,808,809,823,834,858,869],{},[507,810,811,818,821],{},[522,812,813,602,816],{},[488,814,815],{},"backup",[488,817,748],{},[522,819,820],{},"Yes",[522,822,820],{},[507,824,825,830,832],{},[522,826,827],{},[488,828,829],{},"users create",[522,831,820],{},[522,833,820],{},[507,835,836,853,855],{},[522,837,838,602,841,602,844,602,847,602,850],{},[488,839,840],{},"users recover",[488,842,843],{},"list",[488,845,846],{},"deactivate",[488,848,849],{},"reactivate",[488,851,852],{},"remove",[522,854,820],{},[522,856,857],{},"No",[507,859,860,865,867],{},[522,861,862],{},[488,863,864],{},"media regenerate",[522,866,820],{},[522,868,857],{},[507,870,871,876,878],{},[522,872,873],{},[488,874,875],{},"upgrade",[522,877,820],{},[522,879,857],{},[484,881,882,883,885],{},"The local-only commands need the database or the media storage itself. ",[488,884,840],{}," works even when nobody can sign in, for that reason.",[496,887,889],{"id":888},"options-for-every-command","Options for every command",[484,891,892,602,894,602,896,696,899,902],{},[488,893,815],{},[488,895,748],{},[488,897,898],{},"users",[488,900,901],{},"media"," share these options. Each command page lists its own.",[904,905,906,918,925,935,940],"field-group",{},[907,908,911,912,914,915,917],"field",{"name":909,"type":910},"--config","file","The config to load without ",[488,913,674],{},". Default: ",[488,916,678],{},".",[907,919,921,922,917],{"name":674,"type":920},"url","A running site instead of the local project. Default: ",[488,923,924],{},"TENON_URL",[907,926,929,930,914,932,917],{"name":927,"type":928},"--api-key","string","An API key instead of the session of ",[488,931,475],{},[488,933,934],{},"TENON_API_KEY",[907,936,939],{"name":937,"type":938},"--yes, -y","boolean","Asks nothing and takes the defaults. A command that asks before it changes data needs it without a terminal.",[907,941,943],{"name":942,"type":938},"--help, -h","Lists every command and option.",[665,945,947],{"id":946},"environment-variables","Environment variables",[501,949,950,960],{},[504,951,952],{},[507,953,954,957],{},[510,955,956],{},"Variable",[510,958,959],{},"What it sets",[517,961,962,974,985],{},[507,963,964,968],{},[522,965,966],{},[488,967,924],{},[522,969,970,971,973],{},"The site for ",[488,972,674],{},". With it, local-only commands refuse to run",[507,975,976,980],{},[522,977,978],{},[488,979,934],{},[522,981,982,983],{},"The key for ",[488,984,927],{},[507,986,987,992],{},[522,988,989],{},[488,990,991],{},"XDG_CONFIG_HOME",[522,993,994,995,997,998],{},"Where ",[488,996,475],{}," stores its sessions. Default: ",[488,999,1000],{},"~\u002F.config",[496,1002,1004],{"id":1003},"run-in-ci","Run in CI",[484,1006,1007,1008,1010],{},"A script has no browser for ",[488,1009,475],{}," and no terminal for questions:",[681,1012,1013,1021,1042],{},[684,1014,1015,1016,1018,1019,917],{},"Set ",[488,1017,924],{}," instead of ",[488,1020,674],{},[684,1022,1023,1024,1028,1029,1018,1031,1033,1034,1037,1038,1041],{},"Create an API key with the ",[1025,1026,1027],"strong",{},"Backup"," permission, and set it as ",[488,1030,934],{},[488,1032,927],{},". ",[488,1035,1036],{},"read"," backs up, ",[488,1039,1040],{},"update"," restores.",[684,1043,1044,1045,1048,1049,602,1051,602,1053,602,1055,696,1057,917],{},"Pass ",[488,1046,1047],{},"--yes"," to the commands that ask first: ",[488,1050,748],{},[488,1052,875],{},[488,1054,840],{},[488,1056,846],{},[488,1058,852],{},[621,1060,1062],{"className":623,"code":1061,"language":625,"meta":626,"style":626},"TENON_URL=https:\u002F\u002Fexample.com TENON_API_KEY=$BACKUP_KEY npx tenon backup --out backup.zip\n",[488,1063,1064],{"__ignoreMap":626},[630,1065,1066],{"class":632,"line":633},[630,1067,1061],{},[484,1069,1070,1071,1074,1075,1078,1079,917],{},"A command exits with ",[488,1072,1073],{},"0"," on success, and with ",[488,1076,1077],{},"1"," and a message on failure. A cancelled question also exits with ",[488,1080,1077],{},[496,1082,1084],{"id":1083},"common-errors","Common errors",[501,1086,1087,1097],{},[504,1088,1089],{},[507,1090,1091,1094],{},[510,1092,1093],{},"Message",[510,1095,1096],{},"What to do",[517,1098,1099,1116,1133,1148,1160,1173],{},[507,1100,1101,1106],{},[522,1102,1103],{},[488,1104,1105],{},"Not signed in to \u003Curl>. Run tenon login \u003Curl>, or pass --api-key.",[522,1107,1108,1109,1113,1114,917],{},"Run ",[525,1110,1111],{"href":476},[488,1112,475],{},", or set ",[488,1115,934],{},[507,1117,1118,1123],{},[522,1119,1120],{},[488,1121,1122],{},"\u003Cconfig> only runs on Cloudflare. Pass --url …",[522,1124,1125,1126,1129,1130,1132],{},"The config imports ",[488,1127,1128],{},"cloudflare:*",". Use ",[488,1131,674],{}," with the deployed site.",[507,1134,1135,1140],{},[522,1136,1137],{},[488,1138,1139],{},"\u003Cconfig> has no default export of defineCms()",[522,1141,1142,1144,1145,917],{},[488,1143,909],{}," names the wrong file, or the file does not ",[488,1146,1147],{},"export default defineCms(…)",[507,1149,1150,1155],{},[522,1151,1152],{},[488,1153,1154],{},"Pass --yes to … without questions.",[522,1156,1157,1158,917],{},"The command asks first, and there is no terminal. Add ",[488,1159,1047],{},[507,1161,1162,1167],{},[522,1163,1164],{},[488,1165,1166],{},"tenon … works on the local project only.",[522,1168,1169,1170,1172],{},"The command needs the database itself. Unset ",[488,1171,924],{}," and run it where the config reaches it.",[507,1174,1175,1180],{},[522,1176,1177],{},[488,1178,1179],{},"tenon needs Node 24 or newer",[522,1181,1182],{},"Update Node.",[496,1184,1186],{"id":1185},"related-resources","Related resources",[681,1188,1189,1194,1200],{},[684,1190,1191,1193],{},[525,1192,475],{"href":476},": sign in to a deployed site.",[684,1195,1196,1199],{},[525,1197,1198],{"href":308},"Backup and restore",": what a backup holds, and other ways to make one.",[684,1201,1202,1205],{},[525,1203,1204],{"href":210},"API keys",": access for scripts.",[1207,1208,1209],"style",{},"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);}",{"title":626,"searchDepth":784,"depth":784,"links":1211},[1212,1213,1219,1222,1223,1224],{"id":498,"depth":784,"text":499},{"id":659,"depth":784,"text":660,"children":1214},[1215,1217,1218],{"id":667,"depth":1216,"text":668},3,{"id":755,"depth":1216,"text":756},{"id":790,"depth":1216,"text":791},{"id":888,"depth":784,"text":889,"children":1220},[1221],{"id":946,"depth":1216,"text":947},{"id":1003,"depth":784,"text":1004},{"id":1083,"depth":784,"text":1084},{"id":1185,"depth":784,"text":1186},"The commands, how they reach a project, and the options they share.","md",null,{},true,{"title":50,"description":1225},"EH66Y4UZv3xKhEKmTaaaRBlWDP53F43bB3F5cyZGvxc",[1233,1235],{"title":443,"path":444,"stem":445,"description":1234,"children":-1},"Common problems and how to fix them.",{"title":455,"path":456,"stem":457,"description":1236,"children":-1},"Scaffold a new project.",1795884655365]