[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-neon-neon-postgres-branches":3,"mdc-453quq-key":41,"related-org-neon-neon-postgres-branches":2679,"related-repo-neon-neon-postgres-branches":2854},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":30,"repoUrl":31,"updatedAt":32,"license":33,"forks":34,"topics":35,"repo":36,"sourceUrl":39,"mdContent":40},"neon-postgres-branches","manage Neon PostgreSQL database branches","Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, resetting a branch from its parent, branch expiration and CI\u002FCD branch lifecycles, or branch creation via Neon CLI or Neon MCP. Triggers include \"Neon branch\", \"test migrations safely\", \"branch production data\", \"schema-only branch\", \"reset branch\", \"branch per PR\" and \"sensitive data testing\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"neon","Neon","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fneon.png","neondatabase",[13,15,18,21,24,27],{"name":9,"slug":8,"type":14},"tag",{"name":16,"slug":17,"type":14},"DevOps","devops",{"name":19,"slug":20,"type":14},"Database","database",{"name":22,"slug":23,"type":14},"Migration","migration",{"name":25,"slug":26,"type":14},"PostgreSQL","postgresql",{"name":28,"slug":29,"type":14},"Testing","testing",81,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fagent-skills","2026-07-27T06:07:55.162249",null,12,[],{"repoUrl":31,"stars":30,"forks":34,"topics":37,"description":38},[],"Agent Skills for Neon Severless Postgres","https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fagent-skills\u002Ftree\u002FHEAD\u002Fskills\u002Fneon-postgres-branches","---\nname: neon-postgres-branches\ndescription: >-\n  Choose and create the right Neon branch type for testing and development.\n  Use when users ask about Neon branching, migration testing with real data,\n  isolated test environments, schema-only branch workflows for sensitive data,\n  resetting a branch from its parent, branch expiration and CI\u002FCD branch\n  lifecycles, or branch creation via Neon CLI or Neon MCP. Triggers include\n  \"Neon branch\", \"test migrations safely\", \"branch production data\",\n  \"schema-only branch\", \"reset branch\", \"branch per PR\" and\n  \"sensitive data testing\".\nmetadata:\n  parent: neon\n---\n\n**FIRST**: Use the parent `neon` skill for a Neon platform overview, getting started with Neon, Neon development best practices, and more.\n\nIf the `neon` skill is not installed, fetch it from https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fskills\u002Fneon\u002FSKILL.md or install it with:\n\n```bash\nnpx skills add neondatabase\u002Fagent-skills --skill neon\n```\n\n# Neon Postgres Branching\n\n**Outcome:** a created Neon branch — or a clear, actionable next step if creation cannot proceed. Choose the correct branch type, then execute branch creation with the CLI (or MCP where the CLI isn't usable).\n\n- **Normal branch** for realistic migration and query testing with real data.\n- **Schema-only branch (Beta)** for sensitive data workflows where structure is needed without copying rows.\n\n## Branch Type Decision\n\nUse this decision rule first:\n\n1. If the user wants to test complex migrations, performance, or behavior against production-like data, choose a **normal branch**.\n2. If the user needs to avoid copying sensitive data, choose a **schema-only branch**.\n\nIf the request is ambiguous, ask one clarifying question:\n\"Do you need realistic data for testing, or only schema structure because the data is sensitive?\"\n\n## Tool Selection: CLI or MCP\n\nSupport both the Neon CLI and the Neon MCP server, but **default to the CLI**. Use MCP only when the CLI is unavailable or blocked in your environment, cannot be authenticated, or the user explicitly asks for MCP.\n\n- CLI link: https:\u002F\u002Fneon.com\u002Fdocs\u002Fcli\u002Fquickstart.md\n- MCP link: https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fneon-mcp-server.md\n\n### Selection order\n\n1. Check the CLI first:\n   - Run `neon --version` to confirm the CLI is installed.\n   - Run `neon projects list` to confirm auth\u002Fcontext.\n2. If the CLI is missing, direct installation via quickstart.\n3. If the CLI is installed but not authenticated, guide the user through `neon auth` (or API key auth), then continue.\n4. Switch to MCP when the CLI cannot be used — no CLI access in the environment, execution blocked, or authentication not possible — or when the user explicitly asks for MCP. Confirm Neon MCP tools are available and authenticated (for example, listing projects works), then follow the MCP branch flow below.\n5. If neither path is successful, use the Neon REST API:\n   - https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-neon-api.md\n\n### MCP branch flow\n\n1. Choose normal vs schema-only based on data sensitivity and migration-testing goals.\n2. Use branch tools (for example, `create_branch`) to create the branch.\n3. Validate with read tools (for example, `describe_branch`).\n4. For migration workflows, prefer branch-based migration flows before applying to main.\n\n## Create a Normal Branch (Preferred for Real-Data Migration Testing)\n\nUse this when the user needs realistic testing conditions.\nReal production-like data can expose edge cases your seed or data migration scripts miss, which helps catch migration issues before going live.\n\nLink: https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fbranching.md\n\n### Steps\n\n1. Settle the tool path first (see [Selection order](#selection-order)): verify the CLI with `neon --version`, and fall back to MCP only if the CLI isn't usable.\n2. Ensure project context is set (`neon set-context --project-id \u003Cyour-project-id>`) or include `--project-id` on commands.\n3. Create the branch:\n\n   ```bash\n   neon branches create \\\n     --name \u003Cbranch-name> \\\n     --parent \u003Cparent-branch-id-or-name> \\\n     --expires-at 2026-12-15T18:02:16Z\n   ```\n\n4. Optionally fetch a connection string for the new branch:\n\n   ```bash\n   neon connection-string \u003Cbranch-name>\n   ```\n\n## Create a Schema-Only Branch (Beta, Sensitive Data)\n\nUse this when users must not copy production rows into the test branch.\n\nLink: https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-schema-only.md\n\n### Steps\n\n1. Settle the tool path first (see [Selection order](#selection-order)): verify the CLI with `neon --version`, and fall back to MCP only if the CLI isn't usable.\n2. Create the schema-only branch:\n\n   ```bash\n   neon branches create \\\n     --name \u003Cschema-only-branch-name> \\\n     --parent \u003Cparent-branch-id-or-name> \\\n     --schema-only \\\n     --expires-at 2026-12-15T18:02:16Z\n   ```\n\n   If multiple projects exist, include `--project-id`:\n\n   ```bash\n   neon branches create \\\n     --name \u003Cschema-only-branch-name> \\\n     --parent \u003Cparent-branch-id-or-name> \\\n     --schema-only \\\n     --project-id \u003Cyour-project-id> \\\n     --expires-at 2026-12-15T18:02:16Z\n   ```\n\n### Beta Support Guidance (Mandatory)\n\nSchema-only branching is in Beta. If users report unexpected behavior, errors, or missing capabilities:\n\n1. Ask them to share feedback in the Neon Console:\n   - https:\u002F\u002Fconsole.neon.tech\u002Fapp\u002Fprojects?modal=feedback\n2. Recommend opening a support conversation in the Neon Discord:\n   - https:\u002F\u002Fdiscord.gg\u002F92vNTzKDGp\n\n## Reset from Parent\n\nUse this when a child branch has drifted and the user wants a clean refresh from the parent branch's latest schema and data.\n\nLink: https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Freset-from-parent.md\n\n### What it does\n\n- Fully replaces the child branch schema and data with the parent's latest state.\n- Does not merge; local changes on the child branch are lost.\n- Keeps the same connection details, but active connections are briefly interrupted during reset.\n\n### When to recommend it\n\n- Development or staging branch is too far behind production.\n- User wants to start a new feature from a clean parent-aligned state.\n- Team wants to refresh staging from production for consistent testing baselines.\n\n### Hard constraints and blockers\n\n- Only child branches can be reset (root branches and schema-only root branches cannot be reset from parent).\n- If the target branch has children, reset is blocked until those child branches are removed.\n- After a parent branch is restored from snapshot, reset-from-parent may be unavailable for up to 24 hours.\n- Reset-from-parent always uses the current parent state; use Instant restore for point-in-time recovery needs.\n\n### CLI usage\n\n```bash\nneon branches reset \u003Cid|name> --parent --preserve-under-name \u003Cbackup-branch-name>\n```\n\nIf project context is not already set, include the project ID:\n\n```bash\nneon branches reset \u003Cid|name> --parent --preserve-under-name \u003Cbackup-branch-name> --project-id \u003Cproject-id>\n```\n\n`--preserve-under-name` keeps the pre-reset state as a backup branch for rollback, but adds one extra branch to clean up later.\n\nOptional context setup to avoid repeating `--project-id`:\n\n```bash\nneon set-context --project-id \u003Cproject-id>\n```\n\n### Console and API usage\n\n- **Console:** Open the target child branch, then select **Reset from parent** from **Actions**.\n- **API:** Use the restore endpoint for the branch and set `source_branch_id` to the parent branch ID.\n\n## Notes and Caveats\n\n- Schema-only branches are for structure-only cloning and sensitive\u002Fcompliant data controls.\n- Schema-only branches are independent root branches (no parent branch and no shared history), so reset-from-parent does not apply.\n- For migration testing that depends on real-world row shapes, volumes, and edge cases, prefer normal branches.\n- Root branch allowances and per-branch storage limits can cap how many schema-only branches users can create.\n- If a user is unsure, default recommendation is:\n  - **Normal branch** for migration validation.\n  - **Schema-only branch** for compliance and privacy constraints.\n\n## Useful Workflow Patterns\n\nIf the user asks for process recommendations (not just a single command), suggest these:\n\n- **One branch per PR:** Create branch when PR opens, delete when merged\u002Fclosed, keep migration tests isolated.\n- **One branch per test run:** Create branch at pipeline start, run migrations\u002Ftests, delete at end for deterministic CI.\n- **One branch per developer:** Isolated dev environments with production-like shape; avoid team collisions on shared test data.\n- **PII-aware branching:** If production has sensitive data, derive dev\u002FPR branches from an anonymized branch or use schema-only branches.\n- **Ephemeral lifecycle hygiene:** Set branch expiration and automate cleanup so old branches do not accumulate avoidable storage\u002Fhistory cost.\n\n### Post-creation environment update prompt\n\nAfter branch creation, ask whether the user wants to update local environment credentials to point at the new branch.\n\n- Ask: \"Do you want me to update your `.env` `DATABASE_URL` to this new branch connection string?\"\n- If yes, write the new branch connection string to the requested env file\u002Fkey.\n- If no, leave credentials unchanged and share the connection string for manual use.\n- Never overwrite an existing env key without explicit confirmation.\n\n## Neon Infrastructure as Code (`neon.ts`)\n\nBeyond creating branches imperatively (CLI \u002F MCP \u002F API above), you can **program what configuration new branches receive** declaratively in `neon.ts` — Neon's infrastructure-as-code file (see the `neon` skill for the full reference). The `branch` property is a function of the branch being evaluated that returns its settings, so every branch born from your project gets a consistent lifecycle and compute profile without per-branch flags.\n\n```bash\nnpm i @neon\u002Fconfig\n```\n\n```typescript\n\u002F\u002F neon.ts\nimport { defineConfig } from \"@neon\u002Fconfig\u002Fv1\";\n\nexport default defineConfig({\n  branch: (branch) => {\n    if (branch.exists) return {}; \u002F\u002F never reconcile existing branches\n    if (branch.isDefault) return { protected: true };\n    if (branch.name.startsWith(\"preview\u002F\") || branch.name.startsWith(\"dev\")) {\n      return {\n        parent: \"main\",\n        ttl: \"7d\", \u002F\u002F ephemeral: auto-expire 7 days after creation (max 30d)\n        postgres: {\n          computeSettings: {\n            autoscalingLimitMinCu: 0.25, \u002F\u002F scale to zero\n            autoscalingLimitMaxCu: 1, \u002F\u002F keep throwaway branches cheap\n            suspendTimeout: \"5m\",\n          },\n        },\n      };\n    }\n    return {};\n  },\n});\n```\n\nThe closure receives a read-only descriptor of the target branch — `name`, `exists`, `isDefault`, `parentId`, and more — and returns the tuning to apply: `parent`, `ttl` (auto-expiry), `protected`, and `postgres.computeSettings`. This is the declarative complement to the **Ephemeral lifecycle hygiene** and per-PR \u002F per-test patterns above: instead of remembering `--expires-at` on every `neon branches create`, the TTL and compute profile live in version control and apply to every matching branch.\n\nBecause `neon checkout` applies this policy when it **creates** a branch, a fresh `preview\u002F*` or `dev-*` branch comes up already expiring and scaled-to-zero. Checking out an _existing_ branch doesn't reconcile it — run `neon deploy` (alias for `neon config apply`) to apply changes to a branch that already exists.\n\n## Branching in CI\u002FCD\n\nCommon CI\u002FCD use cases for Neon branches:\n\n- **Per-PR preview deployments:** Branch on PR open, deploy the preview against it, delete on close. Each PR gets an isolated database branch. Injecting the branch's `DATABASE_URL` into the deployed app is hosting-provider-specific — see [preview-branches-with-cloudflare](https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-cloudflare), [preview-branches-with-vercel](https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-vercel), or [preview-branches-with-fly](https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-fly) for tested patterns.\n- **Migration testing in CI:** Run risky schema changes against a branch with production-like data before merge.\n- **Schema diff visibility:** Use the [schema-diff GitHub Action](https:\u002F\u002Fgithub.com\u002Fmarketplace\u002Factions\u002Fneon-schema-diff-github-action) to auto-comment a DB-layer diff on the PR.\n\n## Examples\n\n### Example 1: Migration testing with realistic data\n\n**User input:** \"I need to test a risky migration against production-like data.\"\n\n**Agent output shape:**\n\n1. Recommend a normal branch and explain why.\n2. Share docs link: https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fbranching\n3. Check the tool path first (CLI with `neon --version`; MCP only if the CLI isn't usable).\n4. Provide commands:\n   - `neon branches create --name migration-test --parent main --expires-at 2026-12-15T18:02:16Z`\n   - `neon connection-string migration-test`\n\n### Example 2: Sensitive data development workflow\n\n**User input:** \"We cannot copy production data because of compliance.\"\n\n**Agent output shape:**\n\n1. Recommend schema-only branch and explain why.\n2. Share docs link: https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-schema-only\n3. Check the tool path first (CLI with `neon --version`; MCP only if the CLI isn't usable).\n4. Provide command:\n   - `neon branches create --name compliance-dev --parent main --schema-only --project-id \u003Cyour-project-id> --expires-at 2026-12-15T18:02:16Z`\n5. Mention Beta support path:\n   - https:\u002F\u002Fconsole.neon.tech\u002Fapp\u002Fprojects?modal=feedback\n   - https:\u002F\u002Fdiscord.gg\u002F92vNTzKDGp\n\n## Further Reading\n\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranch-expiration.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fneon-github-integration.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fneon-mcp-server.md\n- https:\u002F\u002Fneon.com\u002Fbranching\n",{"data":42,"body":44},{"name":4,"description":6,"metadata":43},{"parent":8},{"type":45,"children":46},"root",[47,69,91,140,147,157,182,189,194,221,226,232,244,269,276,352,358,397,403,408,419,425,622,628,633,643,648,922,928,933,970,976,981,991,997,1015,1021,1039,1045,1068,1074,1148,1153,1241,1252,1263,1302,1308,1352,1358,1408,1414,1419,1472,1478,1483,1522,1536,1570,1595,2219,2305,2365,2371,2376,2451,2457,2463,2473,2481,2538,2544,2553,2560,2629,2635,2673],{"type":48,"tag":49,"props":50,"children":51},"element","p",{},[52,59,61,67],{"type":48,"tag":53,"props":54,"children":55},"strong",{},[56],{"type":57,"value":58},"text","FIRST",{"type":57,"value":60},": Use the parent ",{"type":48,"tag":62,"props":63,"children":65},"code",{"className":64},[],[66],{"type":57,"value":8},{"type":57,"value":68}," skill for a Neon platform overview, getting started with Neon, Neon development best practices, and more.",{"type":48,"tag":49,"props":70,"children":71},{},[72,74,79,81,89],{"type":57,"value":73},"If the ",{"type":48,"tag":62,"props":75,"children":77},{"className":76},[],[78],{"type":57,"value":8},{"type":57,"value":80}," skill is not installed, fetch it from ",{"type":48,"tag":82,"props":83,"children":87},"a",{"href":84,"rel":85},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fskills\u002Fneon\u002FSKILL.md",[86],"nofollow",[88],{"type":57,"value":84},{"type":57,"value":90}," or install it with:",{"type":48,"tag":92,"props":93,"children":98},"pre",{"className":94,"code":95,"language":96,"meta":97,"style":97},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx skills add neondatabase\u002Fagent-skills --skill neon\n","bash","",[99],{"type":48,"tag":62,"props":100,"children":101},{"__ignoreMap":97},[102],{"type":48,"tag":103,"props":104,"children":107},"span",{"class":105,"line":106},"line",1,[108,114,120,125,130,135],{"type":48,"tag":103,"props":109,"children":111},{"style":110},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[112],{"type":57,"value":113},"npx",{"type":48,"tag":103,"props":115,"children":117},{"style":116},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[118],{"type":57,"value":119}," skills",{"type":48,"tag":103,"props":121,"children":122},{"style":116},[123],{"type":57,"value":124}," add",{"type":48,"tag":103,"props":126,"children":127},{"style":116},[128],{"type":57,"value":129}," neondatabase\u002Fagent-skills",{"type":48,"tag":103,"props":131,"children":132},{"style":116},[133],{"type":57,"value":134}," --skill",{"type":48,"tag":103,"props":136,"children":137},{"style":116},[138],{"type":57,"value":139}," neon\n",{"type":48,"tag":141,"props":142,"children":144},"h1",{"id":143},"neon-postgres-branching",[145],{"type":57,"value":146},"Neon Postgres Branching",{"type":48,"tag":49,"props":148,"children":149},{},[150,155],{"type":48,"tag":53,"props":151,"children":152},{},[153],{"type":57,"value":154},"Outcome:",{"type":57,"value":156}," a created Neon branch — or a clear, actionable next step if creation cannot proceed. Choose the correct branch type, then execute branch creation with the CLI (or MCP where the CLI isn't usable).",{"type":48,"tag":158,"props":159,"children":160},"ul",{},[161,172],{"type":48,"tag":162,"props":163,"children":164},"li",{},[165,170],{"type":48,"tag":53,"props":166,"children":167},{},[168],{"type":57,"value":169},"Normal branch",{"type":57,"value":171}," for realistic migration and query testing with real data.",{"type":48,"tag":162,"props":173,"children":174},{},[175,180],{"type":48,"tag":53,"props":176,"children":177},{},[178],{"type":57,"value":179},"Schema-only branch (Beta)",{"type":57,"value":181}," for sensitive data workflows where structure is needed without copying rows.",{"type":48,"tag":183,"props":184,"children":186},"h2",{"id":185},"branch-type-decision",[187],{"type":57,"value":188},"Branch Type Decision",{"type":48,"tag":49,"props":190,"children":191},{},[192],{"type":57,"value":193},"Use this decision rule first:",{"type":48,"tag":195,"props":196,"children":197},"ol",{},[198,210],{"type":48,"tag":162,"props":199,"children":200},{},[201,203,208],{"type":57,"value":202},"If the user wants to test complex migrations, performance, or behavior against production-like data, choose a ",{"type":48,"tag":53,"props":204,"children":205},{},[206],{"type":57,"value":207},"normal branch",{"type":57,"value":209},".",{"type":48,"tag":162,"props":211,"children":212},{},[213,215,220],{"type":57,"value":214},"If the user needs to avoid copying sensitive data, choose a ",{"type":48,"tag":53,"props":216,"children":217},{},[218],{"type":57,"value":219},"schema-only branch",{"type":57,"value":209},{"type":48,"tag":49,"props":222,"children":223},{},[224],{"type":57,"value":225},"If the request is ambiguous, ask one clarifying question:\n\"Do you need realistic data for testing, or only schema structure because the data is sensitive?\"",{"type":48,"tag":183,"props":227,"children":229},{"id":228},"tool-selection-cli-or-mcp",[230],{"type":57,"value":231},"Tool Selection: CLI or MCP",{"type":48,"tag":49,"props":233,"children":234},{},[235,237,242],{"type":57,"value":236},"Support both the Neon CLI and the Neon MCP server, but ",{"type":48,"tag":53,"props":238,"children":239},{},[240],{"type":57,"value":241},"default to the CLI",{"type":57,"value":243},". Use MCP only when the CLI is unavailable or blocked in your environment, cannot be authenticated, or the user explicitly asks for MCP.",{"type":48,"tag":158,"props":245,"children":246},{},[247,258],{"type":48,"tag":162,"props":248,"children":249},{},[250,252],{"type":57,"value":251},"CLI link: ",{"type":48,"tag":82,"props":253,"children":256},{"href":254,"rel":255},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fcli\u002Fquickstart.md",[86],[257],{"type":57,"value":254},{"type":48,"tag":162,"props":259,"children":260},{},[261,263],{"type":57,"value":262},"MCP link: ",{"type":48,"tag":82,"props":264,"children":267},{"href":265,"rel":266},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fneon-mcp-server.md",[86],[268],{"type":57,"value":265},{"type":48,"tag":270,"props":271,"children":273},"h3",{"id":272},"selection-order",[274],{"type":57,"value":275},"Selection order",{"type":48,"tag":195,"props":277,"children":278},{},[279,312,317,330,335],{"type":48,"tag":162,"props":280,"children":281},{},[282,284],{"type":57,"value":283},"Check the CLI first:\n",{"type":48,"tag":158,"props":285,"children":286},{},[287,300],{"type":48,"tag":162,"props":288,"children":289},{},[290,292,298],{"type":57,"value":291},"Run ",{"type":48,"tag":62,"props":293,"children":295},{"className":294},[],[296],{"type":57,"value":297},"neon --version",{"type":57,"value":299}," to confirm the CLI is installed.",{"type":48,"tag":162,"props":301,"children":302},{},[303,304,310],{"type":57,"value":291},{"type":48,"tag":62,"props":305,"children":307},{"className":306},[],[308],{"type":57,"value":309},"neon projects list",{"type":57,"value":311}," to confirm auth\u002Fcontext.",{"type":48,"tag":162,"props":313,"children":314},{},[315],{"type":57,"value":316},"If the CLI is missing, direct installation via quickstart.",{"type":48,"tag":162,"props":318,"children":319},{},[320,322,328],{"type":57,"value":321},"If the CLI is installed but not authenticated, guide the user through ",{"type":48,"tag":62,"props":323,"children":325},{"className":324},[],[326],{"type":57,"value":327},"neon auth",{"type":57,"value":329}," (or API key auth), then continue.",{"type":48,"tag":162,"props":331,"children":332},{},[333],{"type":57,"value":334},"Switch to MCP when the CLI cannot be used — no CLI access in the environment, execution blocked, or authentication not possible — or when the user explicitly asks for MCP. Confirm Neon MCP tools are available and authenticated (for example, listing projects works), then follow the MCP branch flow below.",{"type":48,"tag":162,"props":336,"children":337},{},[338,340],{"type":57,"value":339},"If neither path is successful, use the Neon REST API:\n",{"type":48,"tag":158,"props":341,"children":342},{},[343],{"type":48,"tag":162,"props":344,"children":345},{},[346],{"type":48,"tag":82,"props":347,"children":350},{"href":348,"rel":349},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-neon-api.md",[86],[351],{"type":57,"value":348},{"type":48,"tag":270,"props":353,"children":355},{"id":354},"mcp-branch-flow",[356],{"type":57,"value":357},"MCP branch flow",{"type":48,"tag":195,"props":359,"children":360},{},[361,366,379,392],{"type":48,"tag":162,"props":362,"children":363},{},[364],{"type":57,"value":365},"Choose normal vs schema-only based on data sensitivity and migration-testing goals.",{"type":48,"tag":162,"props":367,"children":368},{},[369,371,377],{"type":57,"value":370},"Use branch tools (for example, ",{"type":48,"tag":62,"props":372,"children":374},{"className":373},[],[375],{"type":57,"value":376},"create_branch",{"type":57,"value":378},") to create the branch.",{"type":48,"tag":162,"props":380,"children":381},{},[382,384,390],{"type":57,"value":383},"Validate with read tools (for example, ",{"type":48,"tag":62,"props":385,"children":387},{"className":386},[],[388],{"type":57,"value":389},"describe_branch",{"type":57,"value":391},").",{"type":48,"tag":162,"props":393,"children":394},{},[395],{"type":57,"value":396},"For migration workflows, prefer branch-based migration flows before applying to main.",{"type":48,"tag":183,"props":398,"children":400},{"id":399},"create-a-normal-branch-preferred-for-real-data-migration-testing",[401],{"type":57,"value":402},"Create a Normal Branch (Preferred for Real-Data Migration Testing)",{"type":48,"tag":49,"props":404,"children":405},{},[406],{"type":57,"value":407},"Use this when the user needs realistic testing conditions.\nReal production-like data can expose edge cases your seed or data migration scripts miss, which helps catch migration issues before going live.",{"type":48,"tag":49,"props":409,"children":410},{},[411,413],{"type":57,"value":412},"Link: ",{"type":48,"tag":82,"props":414,"children":417},{"href":415,"rel":416},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fbranching.md",[86],[418],{"type":57,"value":415},{"type":48,"tag":270,"props":420,"children":422},{"id":421},"steps",[423],{"type":57,"value":424},"Steps",{"type":48,"tag":195,"props":426,"children":427},{},[428,447,468,581],{"type":48,"tag":162,"props":429,"children":430},{},[431,433,438,440,445],{"type":57,"value":432},"Settle the tool path first (see ",{"type":48,"tag":82,"props":434,"children":436},{"href":435},"#selection-order",[437],{"type":57,"value":275},{"type":57,"value":439},"): verify the CLI with ",{"type":48,"tag":62,"props":441,"children":443},{"className":442},[],[444],{"type":57,"value":297},{"type":57,"value":446},", and fall back to MCP only if the CLI isn't usable.",{"type":48,"tag":162,"props":448,"children":449},{},[450,452,458,460,466],{"type":57,"value":451},"Ensure project context is set (",{"type":48,"tag":62,"props":453,"children":455},{"className":454},[],[456],{"type":57,"value":457},"neon set-context --project-id \u003Cyour-project-id>",{"type":57,"value":459},") or include ",{"type":48,"tag":62,"props":461,"children":463},{"className":462},[],[464],{"type":57,"value":465},"--project-id",{"type":57,"value":467}," on commands.",{"type":48,"tag":162,"props":469,"children":470},{},[471,473],{"type":57,"value":472},"Create the branch:",{"type":48,"tag":92,"props":474,"children":476},{"className":94,"code":475,"language":96,"meta":97,"style":97},"neon branches create \\\n  --name \u003Cbranch-name> \\\n  --parent \u003Cparent-branch-id-or-name> \\\n  --expires-at 2026-12-15T18:02:16Z\n",[477],{"type":48,"tag":62,"props":478,"children":479},{"__ignoreMap":97},[480,503,537,567],{"type":48,"tag":103,"props":481,"children":482},{"class":105,"line":106},[483,487,492,497],{"type":48,"tag":103,"props":484,"children":485},{"style":110},[486],{"type":57,"value":8},{"type":48,"tag":103,"props":488,"children":489},{"style":116},[490],{"type":57,"value":491}," branches",{"type":48,"tag":103,"props":493,"children":494},{"style":116},[495],{"type":57,"value":496}," create",{"type":48,"tag":103,"props":498,"children":500},{"style":499},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[501],{"type":57,"value":502}," \\\n",{"type":48,"tag":103,"props":504,"children":506},{"class":105,"line":505},2,[507,512,518,523,528,533],{"type":48,"tag":103,"props":508,"children":509},{"style":116},[510],{"type":57,"value":511},"  --name",{"type":48,"tag":103,"props":513,"children":515},{"style":514},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[516],{"type":57,"value":517}," \u003C",{"type":48,"tag":103,"props":519,"children":520},{"style":116},[521],{"type":57,"value":522},"branch-nam",{"type":48,"tag":103,"props":524,"children":525},{"style":499},[526],{"type":57,"value":527},"e",{"type":48,"tag":103,"props":529,"children":530},{"style":514},[531],{"type":57,"value":532},">",{"type":48,"tag":103,"props":534,"children":535},{"style":499},[536],{"type":57,"value":502},{"type":48,"tag":103,"props":538,"children":540},{"class":105,"line":539},3,[541,546,550,555,559,563],{"type":48,"tag":103,"props":542,"children":543},{"style":116},[544],{"type":57,"value":545},"  --parent",{"type":48,"tag":103,"props":547,"children":548},{"style":514},[549],{"type":57,"value":517},{"type":48,"tag":103,"props":551,"children":552},{"style":116},[553],{"type":57,"value":554},"parent-branch-id-or-nam",{"type":48,"tag":103,"props":556,"children":557},{"style":499},[558],{"type":57,"value":527},{"type":48,"tag":103,"props":560,"children":561},{"style":514},[562],{"type":57,"value":532},{"type":48,"tag":103,"props":564,"children":565},{"style":499},[566],{"type":57,"value":502},{"type":48,"tag":103,"props":568,"children":570},{"class":105,"line":569},4,[571,576],{"type":48,"tag":103,"props":572,"children":573},{"style":116},[574],{"type":57,"value":575},"  --expires-at",{"type":48,"tag":103,"props":577,"children":578},{"style":116},[579],{"type":57,"value":580}," 2026-12-15T18:02:16Z\n",{"type":48,"tag":162,"props":582,"children":583},{},[584,586],{"type":57,"value":585},"Optionally fetch a connection string for the new branch:",{"type":48,"tag":92,"props":587,"children":589},{"className":94,"code":588,"language":96,"meta":97,"style":97},"neon connection-string \u003Cbranch-name>\n",[590],{"type":48,"tag":62,"props":591,"children":592},{"__ignoreMap":97},[593],{"type":48,"tag":103,"props":594,"children":595},{"class":105,"line":106},[596,600,605,609,613,617],{"type":48,"tag":103,"props":597,"children":598},{"style":110},[599],{"type":57,"value":8},{"type":48,"tag":103,"props":601,"children":602},{"style":116},[603],{"type":57,"value":604}," connection-string",{"type":48,"tag":103,"props":606,"children":607},{"style":514},[608],{"type":57,"value":517},{"type":48,"tag":103,"props":610,"children":611},{"style":116},[612],{"type":57,"value":522},{"type":48,"tag":103,"props":614,"children":615},{"style":499},[616],{"type":57,"value":527},{"type":48,"tag":103,"props":618,"children":619},{"style":514},[620],{"type":57,"value":621},">\n",{"type":48,"tag":183,"props":623,"children":625},{"id":624},"create-a-schema-only-branch-beta-sensitive-data",[626],{"type":57,"value":627},"Create a Schema-Only Branch (Beta, Sensitive Data)",{"type":48,"tag":49,"props":629,"children":630},{},[631],{"type":57,"value":632},"Use this when users must not copy production rows into the test branch.",{"type":48,"tag":49,"props":634,"children":635},{},[636,637],{"type":57,"value":412},{"type":48,"tag":82,"props":638,"children":641},{"href":639,"rel":640},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-schema-only.md",[86],[642],{"type":57,"value":639},{"type":48,"tag":270,"props":644,"children":646},{"id":645},"steps-1",[647],{"type":57,"value":424},{"type":48,"tag":195,"props":649,"children":650},{},[651,666],{"type":48,"tag":162,"props":652,"children":653},{},[654,655,659,660,665],{"type":57,"value":432},{"type":48,"tag":82,"props":656,"children":657},{"href":435},[658],{"type":57,"value":275},{"type":57,"value":439},{"type":48,"tag":62,"props":661,"children":663},{"className":662},[],[664],{"type":57,"value":297},{"type":57,"value":446},{"type":48,"tag":162,"props":667,"children":668},{},[669,671,776,780,782,787,789],{"type":57,"value":670},"Create the schema-only branch:",{"type":48,"tag":92,"props":672,"children":674},{"className":94,"code":673,"language":96,"meta":97,"style":97},"neon branches create \\\n  --name \u003Cschema-only-branch-name> \\\n  --parent \u003Cparent-branch-id-or-name> \\\n  --schema-only \\\n  --expires-at 2026-12-15T18:02:16Z\n",[675],{"type":48,"tag":62,"props":676,"children":677},{"__ignoreMap":97},[678,697,725,752,764],{"type":48,"tag":103,"props":679,"children":680},{"class":105,"line":106},[681,685,689,693],{"type":48,"tag":103,"props":682,"children":683},{"style":110},[684],{"type":57,"value":8},{"type":48,"tag":103,"props":686,"children":687},{"style":116},[688],{"type":57,"value":491},{"type":48,"tag":103,"props":690,"children":691},{"style":116},[692],{"type":57,"value":496},{"type":48,"tag":103,"props":694,"children":695},{"style":499},[696],{"type":57,"value":502},{"type":48,"tag":103,"props":698,"children":699},{"class":105,"line":505},[700,704,708,713,717,721],{"type":48,"tag":103,"props":701,"children":702},{"style":116},[703],{"type":57,"value":511},{"type":48,"tag":103,"props":705,"children":706},{"style":514},[707],{"type":57,"value":517},{"type":48,"tag":103,"props":709,"children":710},{"style":116},[711],{"type":57,"value":712},"schema-only-branch-nam",{"type":48,"tag":103,"props":714,"children":715},{"style":499},[716],{"type":57,"value":527},{"type":48,"tag":103,"props":718,"children":719},{"style":514},[720],{"type":57,"value":532},{"type":48,"tag":103,"props":722,"children":723},{"style":499},[724],{"type":57,"value":502},{"type":48,"tag":103,"props":726,"children":727},{"class":105,"line":539},[728,732,736,740,744,748],{"type":48,"tag":103,"props":729,"children":730},{"style":116},[731],{"type":57,"value":545},{"type":48,"tag":103,"props":733,"children":734},{"style":514},[735],{"type":57,"value":517},{"type":48,"tag":103,"props":737,"children":738},{"style":116},[739],{"type":57,"value":554},{"type":48,"tag":103,"props":741,"children":742},{"style":499},[743],{"type":57,"value":527},{"type":48,"tag":103,"props":745,"children":746},{"style":514},[747],{"type":57,"value":532},{"type":48,"tag":103,"props":749,"children":750},{"style":499},[751],{"type":57,"value":502},{"type":48,"tag":103,"props":753,"children":754},{"class":105,"line":569},[755,760],{"type":48,"tag":103,"props":756,"children":757},{"style":116},[758],{"type":57,"value":759},"  --schema-only",{"type":48,"tag":103,"props":761,"children":762},{"style":499},[763],{"type":57,"value":502},{"type":48,"tag":103,"props":765,"children":767},{"class":105,"line":766},5,[768,772],{"type":48,"tag":103,"props":769,"children":770},{"style":116},[771],{"type":57,"value":575},{"type":48,"tag":103,"props":773,"children":774},{"style":116},[775],{"type":57,"value":580},{"type":48,"tag":777,"props":778,"children":779},"br",{},[],{"type":57,"value":781},"If multiple projects exist, include ",{"type":48,"tag":62,"props":783,"children":785},{"className":784},[],[786],{"type":57,"value":465},{"type":57,"value":788},":",{"type":48,"tag":92,"props":790,"children":792},{"className":94,"code":791,"language":96,"meta":97,"style":97},"neon branches create \\\n  --name \u003Cschema-only-branch-name> \\\n  --parent \u003Cparent-branch-id-or-name> \\\n  --schema-only \\\n  --project-id \u003Cyour-project-id> \\\n  --expires-at 2026-12-15T18:02:16Z\n",[793],{"type":48,"tag":62,"props":794,"children":795},{"__ignoreMap":97},[796,815,842,869,880,910],{"type":48,"tag":103,"props":797,"children":798},{"class":105,"line":106},[799,803,807,811],{"type":48,"tag":103,"props":800,"children":801},{"style":110},[802],{"type":57,"value":8},{"type":48,"tag":103,"props":804,"children":805},{"style":116},[806],{"type":57,"value":491},{"type":48,"tag":103,"props":808,"children":809},{"style":116},[810],{"type":57,"value":496},{"type":48,"tag":103,"props":812,"children":813},{"style":499},[814],{"type":57,"value":502},{"type":48,"tag":103,"props":816,"children":817},{"class":105,"line":505},[818,822,826,830,834,838],{"type":48,"tag":103,"props":819,"children":820},{"style":116},[821],{"type":57,"value":511},{"type":48,"tag":103,"props":823,"children":824},{"style":514},[825],{"type":57,"value":517},{"type":48,"tag":103,"props":827,"children":828},{"style":116},[829],{"type":57,"value":712},{"type":48,"tag":103,"props":831,"children":832},{"style":499},[833],{"type":57,"value":527},{"type":48,"tag":103,"props":835,"children":836},{"style":514},[837],{"type":57,"value":532},{"type":48,"tag":103,"props":839,"children":840},{"style":499},[841],{"type":57,"value":502},{"type":48,"tag":103,"props":843,"children":844},{"class":105,"line":539},[845,849,853,857,861,865],{"type":48,"tag":103,"props":846,"children":847},{"style":116},[848],{"type":57,"value":545},{"type":48,"tag":103,"props":850,"children":851},{"style":514},[852],{"type":57,"value":517},{"type":48,"tag":103,"props":854,"children":855},{"style":116},[856],{"type":57,"value":554},{"type":48,"tag":103,"props":858,"children":859},{"style":499},[860],{"type":57,"value":527},{"type":48,"tag":103,"props":862,"children":863},{"style":514},[864],{"type":57,"value":532},{"type":48,"tag":103,"props":866,"children":867},{"style":499},[868],{"type":57,"value":502},{"type":48,"tag":103,"props":870,"children":871},{"class":105,"line":569},[872,876],{"type":48,"tag":103,"props":873,"children":874},{"style":116},[875],{"type":57,"value":759},{"type":48,"tag":103,"props":877,"children":878},{"style":499},[879],{"type":57,"value":502},{"type":48,"tag":103,"props":881,"children":882},{"class":105,"line":766},[883,888,892,897,902,906],{"type":48,"tag":103,"props":884,"children":885},{"style":116},[886],{"type":57,"value":887},"  --project-id",{"type":48,"tag":103,"props":889,"children":890},{"style":514},[891],{"type":57,"value":517},{"type":48,"tag":103,"props":893,"children":894},{"style":116},[895],{"type":57,"value":896},"your-project-i",{"type":48,"tag":103,"props":898,"children":899},{"style":499},[900],{"type":57,"value":901},"d",{"type":48,"tag":103,"props":903,"children":904},{"style":514},[905],{"type":57,"value":532},{"type":48,"tag":103,"props":907,"children":908},{"style":499},[909],{"type":57,"value":502},{"type":48,"tag":103,"props":911,"children":913},{"class":105,"line":912},6,[914,918],{"type":48,"tag":103,"props":915,"children":916},{"style":116},[917],{"type":57,"value":575},{"type":48,"tag":103,"props":919,"children":920},{"style":116},[921],{"type":57,"value":580},{"type":48,"tag":270,"props":923,"children":925},{"id":924},"beta-support-guidance-mandatory",[926],{"type":57,"value":927},"Beta Support Guidance (Mandatory)",{"type":48,"tag":49,"props":929,"children":930},{},[931],{"type":57,"value":932},"Schema-only branching is in Beta. If users report unexpected behavior, errors, or missing capabilities:",{"type":48,"tag":195,"props":934,"children":935},{},[936,953],{"type":48,"tag":162,"props":937,"children":938},{},[939,941],{"type":57,"value":940},"Ask them to share feedback in the Neon Console:\n",{"type":48,"tag":158,"props":942,"children":943},{},[944],{"type":48,"tag":162,"props":945,"children":946},{},[947],{"type":48,"tag":82,"props":948,"children":951},{"href":949,"rel":950},"https:\u002F\u002Fconsole.neon.tech\u002Fapp\u002Fprojects?modal=feedback",[86],[952],{"type":57,"value":949},{"type":48,"tag":162,"props":954,"children":955},{},[956,958],{"type":57,"value":957},"Recommend opening a support conversation in the Neon Discord:\n",{"type":48,"tag":158,"props":959,"children":960},{},[961],{"type":48,"tag":162,"props":962,"children":963},{},[964],{"type":48,"tag":82,"props":965,"children":968},{"href":966,"rel":967},"https:\u002F\u002Fdiscord.gg\u002F92vNTzKDGp",[86],[969],{"type":57,"value":966},{"type":48,"tag":183,"props":971,"children":973},{"id":972},"reset-from-parent",[974],{"type":57,"value":975},"Reset from Parent",{"type":48,"tag":49,"props":977,"children":978},{},[979],{"type":57,"value":980},"Use this when a child branch has drifted and the user wants a clean refresh from the parent branch's latest schema and data.",{"type":48,"tag":49,"props":982,"children":983},{},[984,985],{"type":57,"value":412},{"type":48,"tag":82,"props":986,"children":989},{"href":987,"rel":988},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Freset-from-parent.md",[86],[990],{"type":57,"value":987},{"type":48,"tag":270,"props":992,"children":994},{"id":993},"what-it-does",[995],{"type":57,"value":996},"What it does",{"type":48,"tag":158,"props":998,"children":999},{},[1000,1005,1010],{"type":48,"tag":162,"props":1001,"children":1002},{},[1003],{"type":57,"value":1004},"Fully replaces the child branch schema and data with the parent's latest state.",{"type":48,"tag":162,"props":1006,"children":1007},{},[1008],{"type":57,"value":1009},"Does not merge; local changes on the child branch are lost.",{"type":48,"tag":162,"props":1011,"children":1012},{},[1013],{"type":57,"value":1014},"Keeps the same connection details, but active connections are briefly interrupted during reset.",{"type":48,"tag":270,"props":1016,"children":1018},{"id":1017},"when-to-recommend-it",[1019],{"type":57,"value":1020},"When to recommend it",{"type":48,"tag":158,"props":1022,"children":1023},{},[1024,1029,1034],{"type":48,"tag":162,"props":1025,"children":1026},{},[1027],{"type":57,"value":1028},"Development or staging branch is too far behind production.",{"type":48,"tag":162,"props":1030,"children":1031},{},[1032],{"type":57,"value":1033},"User wants to start a new feature from a clean parent-aligned state.",{"type":48,"tag":162,"props":1035,"children":1036},{},[1037],{"type":57,"value":1038},"Team wants to refresh staging from production for consistent testing baselines.",{"type":48,"tag":270,"props":1040,"children":1042},{"id":1041},"hard-constraints-and-blockers",[1043],{"type":57,"value":1044},"Hard constraints and blockers",{"type":48,"tag":158,"props":1046,"children":1047},{},[1048,1053,1058,1063],{"type":48,"tag":162,"props":1049,"children":1050},{},[1051],{"type":57,"value":1052},"Only child branches can be reset (root branches and schema-only root branches cannot be reset from parent).",{"type":48,"tag":162,"props":1054,"children":1055},{},[1056],{"type":57,"value":1057},"If the target branch has children, reset is blocked until those child branches are removed.",{"type":48,"tag":162,"props":1059,"children":1060},{},[1061],{"type":57,"value":1062},"After a parent branch is restored from snapshot, reset-from-parent may be unavailable for up to 24 hours.",{"type":48,"tag":162,"props":1064,"children":1065},{},[1066],{"type":57,"value":1067},"Reset-from-parent always uses the current parent state; use Instant restore for point-in-time recovery needs.",{"type":48,"tag":270,"props":1069,"children":1071},{"id":1070},"cli-usage",[1072],{"type":57,"value":1073},"CLI usage",{"type":48,"tag":92,"props":1075,"children":1077},{"className":94,"code":1076,"language":96,"meta":97,"style":97},"neon branches reset \u003Cid|name> --parent --preserve-under-name \u003Cbackup-branch-name>\n",[1078],{"type":48,"tag":62,"props":1079,"children":1080},{"__ignoreMap":97},[1081],{"type":48,"tag":103,"props":1082,"children":1083},{"class":105,"line":106},[1084,1088,1092,1097,1101,1106,1111,1116,1121,1126,1131,1135,1140,1144],{"type":48,"tag":103,"props":1085,"children":1086},{"style":110},[1087],{"type":57,"value":8},{"type":48,"tag":103,"props":1089,"children":1090},{"style":116},[1091],{"type":57,"value":491},{"type":48,"tag":103,"props":1093,"children":1094},{"style":116},[1095],{"type":57,"value":1096}," reset",{"type":48,"tag":103,"props":1098,"children":1099},{"style":514},[1100],{"type":57,"value":517},{"type":48,"tag":103,"props":1102,"children":1103},{"style":116},[1104],{"type":57,"value":1105},"id",{"type":48,"tag":103,"props":1107,"children":1108},{"style":514},[1109],{"type":57,"value":1110},"|",{"type":48,"tag":103,"props":1112,"children":1113},{"style":110},[1114],{"type":57,"value":1115},"name",{"type":48,"tag":103,"props":1117,"children":1118},{"style":499},[1119],{"type":57,"value":1120},"> ",{"type":48,"tag":103,"props":1122,"children":1123},{"style":116},[1124],{"type":57,"value":1125},"--parent",{"type":48,"tag":103,"props":1127,"children":1128},{"style":116},[1129],{"type":57,"value":1130}," --preserve-under-name",{"type":48,"tag":103,"props":1132,"children":1133},{"style":514},[1134],{"type":57,"value":517},{"type":48,"tag":103,"props":1136,"children":1137},{"style":116},[1138],{"type":57,"value":1139},"backup-branch-nam",{"type":48,"tag":103,"props":1141,"children":1142},{"style":499},[1143],{"type":57,"value":527},{"type":48,"tag":103,"props":1145,"children":1146},{"style":514},[1147],{"type":57,"value":621},{"type":48,"tag":49,"props":1149,"children":1150},{},[1151],{"type":57,"value":1152},"If project context is not already set, include the project ID:",{"type":48,"tag":92,"props":1154,"children":1156},{"className":94,"code":1155,"language":96,"meta":97,"style":97},"neon branches reset \u003Cid|name> --parent --preserve-under-name \u003Cbackup-branch-name> --project-id \u003Cproject-id>\n",[1157],{"type":48,"tag":62,"props":1158,"children":1159},{"__ignoreMap":97},[1160],{"type":48,"tag":103,"props":1161,"children":1162},{"class":105,"line":106},[1163,1167,1171,1175,1179,1183,1187,1191,1195,1199,1203,1207,1211,1215,1219,1224,1228,1233,1237],{"type":48,"tag":103,"props":1164,"children":1165},{"style":110},[1166],{"type":57,"value":8},{"type":48,"tag":103,"props":1168,"children":1169},{"style":116},[1170],{"type":57,"value":491},{"type":48,"tag":103,"props":1172,"children":1173},{"style":116},[1174],{"type":57,"value":1096},{"type":48,"tag":103,"props":1176,"children":1177},{"style":514},[1178],{"type":57,"value":517},{"type":48,"tag":103,"props":1180,"children":1181},{"style":116},[1182],{"type":57,"value":1105},{"type":48,"tag":103,"props":1184,"children":1185},{"style":514},[1186],{"type":57,"value":1110},{"type":48,"tag":103,"props":1188,"children":1189},{"style":110},[1190],{"type":57,"value":1115},{"type":48,"tag":103,"props":1192,"children":1193},{"style":499},[1194],{"type":57,"value":1120},{"type":48,"tag":103,"props":1196,"children":1197},{"style":116},[1198],{"type":57,"value":1125},{"type":48,"tag":103,"props":1200,"children":1201},{"style":116},[1202],{"type":57,"value":1130},{"type":48,"tag":103,"props":1204,"children":1205},{"style":514},[1206],{"type":57,"value":517},{"type":48,"tag":103,"props":1208,"children":1209},{"style":116},[1210],{"type":57,"value":1139},{"type":48,"tag":103,"props":1212,"children":1213},{"style":499},[1214],{"type":57,"value":527},{"type":48,"tag":103,"props":1216,"children":1217},{"style":514},[1218],{"type":57,"value":532},{"type":48,"tag":103,"props":1220,"children":1221},{"style":116},[1222],{"type":57,"value":1223}," --project-id",{"type":48,"tag":103,"props":1225,"children":1226},{"style":514},[1227],{"type":57,"value":517},{"type":48,"tag":103,"props":1229,"children":1230},{"style":116},[1231],{"type":57,"value":1232},"project-i",{"type":48,"tag":103,"props":1234,"children":1235},{"style":499},[1236],{"type":57,"value":901},{"type":48,"tag":103,"props":1238,"children":1239},{"style":514},[1240],{"type":57,"value":621},{"type":48,"tag":49,"props":1242,"children":1243},{},[1244,1250],{"type":48,"tag":62,"props":1245,"children":1247},{"className":1246},[],[1248],{"type":57,"value":1249},"--preserve-under-name",{"type":57,"value":1251}," keeps the pre-reset state as a backup branch for rollback, but adds one extra branch to clean up later.",{"type":48,"tag":49,"props":1253,"children":1254},{},[1255,1257,1262],{"type":57,"value":1256},"Optional context setup to avoid repeating ",{"type":48,"tag":62,"props":1258,"children":1260},{"className":1259},[],[1261],{"type":57,"value":465},{"type":57,"value":788},{"type":48,"tag":92,"props":1264,"children":1266},{"className":94,"code":1265,"language":96,"meta":97,"style":97},"neon set-context --project-id \u003Cproject-id>\n",[1267],{"type":48,"tag":62,"props":1268,"children":1269},{"__ignoreMap":97},[1270],{"type":48,"tag":103,"props":1271,"children":1272},{"class":105,"line":106},[1273,1277,1282,1286,1290,1294,1298],{"type":48,"tag":103,"props":1274,"children":1275},{"style":110},[1276],{"type":57,"value":8},{"type":48,"tag":103,"props":1278,"children":1279},{"style":116},[1280],{"type":57,"value":1281}," set-context",{"type":48,"tag":103,"props":1283,"children":1284},{"style":116},[1285],{"type":57,"value":1223},{"type":48,"tag":103,"props":1287,"children":1288},{"style":514},[1289],{"type":57,"value":517},{"type":48,"tag":103,"props":1291,"children":1292},{"style":116},[1293],{"type":57,"value":1232},{"type":48,"tag":103,"props":1295,"children":1296},{"style":499},[1297],{"type":57,"value":901},{"type":48,"tag":103,"props":1299,"children":1300},{"style":514},[1301],{"type":57,"value":621},{"type":48,"tag":270,"props":1303,"children":1305},{"id":1304},"console-and-api-usage",[1306],{"type":57,"value":1307},"Console and API usage",{"type":48,"tag":158,"props":1309,"children":1310},{},[1311,1334],{"type":48,"tag":162,"props":1312,"children":1313},{},[1314,1319,1321,1326,1328,1333],{"type":48,"tag":53,"props":1315,"children":1316},{},[1317],{"type":57,"value":1318},"Console:",{"type":57,"value":1320}," Open the target child branch, then select ",{"type":48,"tag":53,"props":1322,"children":1323},{},[1324],{"type":57,"value":1325},"Reset from parent",{"type":57,"value":1327}," from ",{"type":48,"tag":53,"props":1329,"children":1330},{},[1331],{"type":57,"value":1332},"Actions",{"type":57,"value":209},{"type":48,"tag":162,"props":1335,"children":1336},{},[1337,1342,1344,1350],{"type":48,"tag":53,"props":1338,"children":1339},{},[1340],{"type":57,"value":1341},"API:",{"type":57,"value":1343}," Use the restore endpoint for the branch and set ",{"type":48,"tag":62,"props":1345,"children":1347},{"className":1346},[],[1348],{"type":57,"value":1349},"source_branch_id",{"type":57,"value":1351}," to the parent branch ID.",{"type":48,"tag":183,"props":1353,"children":1355},{"id":1354},"notes-and-caveats",[1356],{"type":57,"value":1357},"Notes and Caveats",{"type":48,"tag":158,"props":1359,"children":1360},{},[1361,1366,1371,1376,1381],{"type":48,"tag":162,"props":1362,"children":1363},{},[1364],{"type":57,"value":1365},"Schema-only branches are for structure-only cloning and sensitive\u002Fcompliant data controls.",{"type":48,"tag":162,"props":1367,"children":1368},{},[1369],{"type":57,"value":1370},"Schema-only branches are independent root branches (no parent branch and no shared history), so reset-from-parent does not apply.",{"type":48,"tag":162,"props":1372,"children":1373},{},[1374],{"type":57,"value":1375},"For migration testing that depends on real-world row shapes, volumes, and edge cases, prefer normal branches.",{"type":48,"tag":162,"props":1377,"children":1378},{},[1379],{"type":57,"value":1380},"Root branch allowances and per-branch storage limits can cap how many schema-only branches users can create.",{"type":48,"tag":162,"props":1382,"children":1383},{},[1384,1386],{"type":57,"value":1385},"If a user is unsure, default recommendation is:\n",{"type":48,"tag":158,"props":1387,"children":1388},{},[1389,1398],{"type":48,"tag":162,"props":1390,"children":1391},{},[1392,1396],{"type":48,"tag":53,"props":1393,"children":1394},{},[1395],{"type":57,"value":169},{"type":57,"value":1397}," for migration validation.",{"type":48,"tag":162,"props":1399,"children":1400},{},[1401,1406],{"type":48,"tag":53,"props":1402,"children":1403},{},[1404],{"type":57,"value":1405},"Schema-only branch",{"type":57,"value":1407}," for compliance and privacy constraints.",{"type":48,"tag":183,"props":1409,"children":1411},{"id":1410},"useful-workflow-patterns",[1412],{"type":57,"value":1413},"Useful Workflow Patterns",{"type":48,"tag":49,"props":1415,"children":1416},{},[1417],{"type":57,"value":1418},"If the user asks for process recommendations (not just a single command), suggest these:",{"type":48,"tag":158,"props":1420,"children":1421},{},[1422,1432,1442,1452,1462],{"type":48,"tag":162,"props":1423,"children":1424},{},[1425,1430],{"type":48,"tag":53,"props":1426,"children":1427},{},[1428],{"type":57,"value":1429},"One branch per PR:",{"type":57,"value":1431}," Create branch when PR opens, delete when merged\u002Fclosed, keep migration tests isolated.",{"type":48,"tag":162,"props":1433,"children":1434},{},[1435,1440],{"type":48,"tag":53,"props":1436,"children":1437},{},[1438],{"type":57,"value":1439},"One branch per test run:",{"type":57,"value":1441}," Create branch at pipeline start, run migrations\u002Ftests, delete at end for deterministic CI.",{"type":48,"tag":162,"props":1443,"children":1444},{},[1445,1450],{"type":48,"tag":53,"props":1446,"children":1447},{},[1448],{"type":57,"value":1449},"One branch per developer:",{"type":57,"value":1451}," Isolated dev environments with production-like shape; avoid team collisions on shared test data.",{"type":48,"tag":162,"props":1453,"children":1454},{},[1455,1460],{"type":48,"tag":53,"props":1456,"children":1457},{},[1458],{"type":57,"value":1459},"PII-aware branching:",{"type":57,"value":1461}," If production has sensitive data, derive dev\u002FPR branches from an anonymized branch or use schema-only branches.",{"type":48,"tag":162,"props":1463,"children":1464},{},[1465,1470],{"type":48,"tag":53,"props":1466,"children":1467},{},[1468],{"type":57,"value":1469},"Ephemeral lifecycle hygiene:",{"type":57,"value":1471}," Set branch expiration and automate cleanup so old branches do not accumulate avoidable storage\u002Fhistory cost.",{"type":48,"tag":270,"props":1473,"children":1475},{"id":1474},"post-creation-environment-update-prompt",[1476],{"type":57,"value":1477},"Post-creation environment update prompt",{"type":48,"tag":49,"props":1479,"children":1480},{},[1481],{"type":57,"value":1482},"After branch creation, ask whether the user wants to update local environment credentials to point at the new branch.",{"type":48,"tag":158,"props":1484,"children":1485},{},[1486,1507,1512,1517],{"type":48,"tag":162,"props":1487,"children":1488},{},[1489,1491,1497,1499,1505],{"type":57,"value":1490},"Ask: \"Do you want me to update your ",{"type":48,"tag":62,"props":1492,"children":1494},{"className":1493},[],[1495],{"type":57,"value":1496},".env",{"type":57,"value":1498}," ",{"type":48,"tag":62,"props":1500,"children":1502},{"className":1501},[],[1503],{"type":57,"value":1504},"DATABASE_URL",{"type":57,"value":1506}," to this new branch connection string?\"",{"type":48,"tag":162,"props":1508,"children":1509},{},[1510],{"type":57,"value":1511},"If yes, write the new branch connection string to the requested env file\u002Fkey.",{"type":48,"tag":162,"props":1513,"children":1514},{},[1515],{"type":57,"value":1516},"If no, leave credentials unchanged and share the connection string for manual use.",{"type":48,"tag":162,"props":1518,"children":1519},{},[1520],{"type":57,"value":1521},"Never overwrite an existing env key without explicit confirmation.",{"type":48,"tag":183,"props":1523,"children":1525},{"id":1524},"neon-infrastructure-as-code-neonts",[1526,1528,1534],{"type":57,"value":1527},"Neon Infrastructure as Code (",{"type":48,"tag":62,"props":1529,"children":1531},{"className":1530},[],[1532],{"type":57,"value":1533},"neon.ts",{"type":57,"value":1535},")",{"type":48,"tag":49,"props":1537,"children":1538},{},[1539,1541,1546,1548,1553,1555,1560,1562,1568],{"type":57,"value":1540},"Beyond creating branches imperatively (CLI \u002F MCP \u002F API above), you can ",{"type":48,"tag":53,"props":1542,"children":1543},{},[1544],{"type":57,"value":1545},"program what configuration new branches receive",{"type":57,"value":1547}," declaratively in ",{"type":48,"tag":62,"props":1549,"children":1551},{"className":1550},[],[1552],{"type":57,"value":1533},{"type":57,"value":1554}," — Neon's infrastructure-as-code file (see the ",{"type":48,"tag":62,"props":1556,"children":1558},{"className":1557},[],[1559],{"type":57,"value":8},{"type":57,"value":1561}," skill for the full reference). The ",{"type":48,"tag":62,"props":1563,"children":1565},{"className":1564},[],[1566],{"type":57,"value":1567},"branch",{"type":57,"value":1569}," property is a function of the branch being evaluated that returns its settings, so every branch born from your project gets a consistent lifecycle and compute profile without per-branch flags.",{"type":48,"tag":92,"props":1571,"children":1573},{"className":94,"code":1572,"language":96,"meta":97,"style":97},"npm i @neon\u002Fconfig\n",[1574],{"type":48,"tag":62,"props":1575,"children":1576},{"__ignoreMap":97},[1577],{"type":48,"tag":103,"props":1578,"children":1579},{"class":105,"line":106},[1580,1585,1590],{"type":48,"tag":103,"props":1581,"children":1582},{"style":110},[1583],{"type":57,"value":1584},"npm",{"type":48,"tag":103,"props":1586,"children":1587},{"style":116},[1588],{"type":57,"value":1589}," i",{"type":48,"tag":103,"props":1591,"children":1592},{"style":116},[1593],{"type":57,"value":1594}," @neon\u002Fconfig\n",{"type":48,"tag":92,"props":1596,"children":1600},{"className":1597,"code":1598,"language":1599,"meta":97,"style":97},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F neon.ts\nimport { defineConfig } from \"@neon\u002Fconfig\u002Fv1\";\n\nexport default defineConfig({\n  branch: (branch) => {\n    if (branch.exists) return {}; \u002F\u002F never reconcile existing branches\n    if (branch.isDefault) return { protected: true };\n    if (branch.name.startsWith(\"preview\u002F\") || branch.name.startsWith(\"dev\")) {\n      return {\n        parent: \"main\",\n        ttl: \"7d\", \u002F\u002F ephemeral: auto-expire 7 days after creation (max 30d)\n        postgres: {\n          computeSettings: {\n            autoscalingLimitMinCu: 0.25, \u002F\u002F scale to zero\n            autoscalingLimitMaxCu: 1, \u002F\u002F keep throwaway branches cheap\n            suspendTimeout: \"5m\",\n          },\n        },\n      };\n    }\n    return {};\n  },\n});\n","typescript",[1601],{"type":48,"tag":62,"props":1602,"children":1603},{"__ignoreMap":97},[1604,1613,1662,1671,1699,1736,1782,1839,1945,1958,1989,2025,2041,2058,2086,2113,2143,2152,2161,2170,2179,2193,2202],{"type":48,"tag":103,"props":1605,"children":1606},{"class":105,"line":106},[1607],{"type":48,"tag":103,"props":1608,"children":1610},{"style":1609},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1611],{"type":57,"value":1612},"\u002F\u002F neon.ts\n",{"type":48,"tag":103,"props":1614,"children":1615},{"class":105,"line":505},[1616,1622,1627,1632,1637,1642,1647,1652,1657],{"type":48,"tag":103,"props":1617,"children":1619},{"style":1618},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1620],{"type":57,"value":1621},"import",{"type":48,"tag":103,"props":1623,"children":1624},{"style":514},[1625],{"type":57,"value":1626}," {",{"type":48,"tag":103,"props":1628,"children":1629},{"style":499},[1630],{"type":57,"value":1631}," defineConfig",{"type":48,"tag":103,"props":1633,"children":1634},{"style":514},[1635],{"type":57,"value":1636}," }",{"type":48,"tag":103,"props":1638,"children":1639},{"style":1618},[1640],{"type":57,"value":1641}," from",{"type":48,"tag":103,"props":1643,"children":1644},{"style":514},[1645],{"type":57,"value":1646}," \"",{"type":48,"tag":103,"props":1648,"children":1649},{"style":116},[1650],{"type":57,"value":1651},"@neon\u002Fconfig\u002Fv1",{"type":48,"tag":103,"props":1653,"children":1654},{"style":514},[1655],{"type":57,"value":1656},"\"",{"type":48,"tag":103,"props":1658,"children":1659},{"style":514},[1660],{"type":57,"value":1661},";\n",{"type":48,"tag":103,"props":1663,"children":1664},{"class":105,"line":539},[1665],{"type":48,"tag":103,"props":1666,"children":1668},{"emptyLinePlaceholder":1667},true,[1669],{"type":57,"value":1670},"\n",{"type":48,"tag":103,"props":1672,"children":1673},{"class":105,"line":569},[1674,1679,1684,1689,1694],{"type":48,"tag":103,"props":1675,"children":1676},{"style":1618},[1677],{"type":57,"value":1678},"export",{"type":48,"tag":103,"props":1680,"children":1681},{"style":1618},[1682],{"type":57,"value":1683}," default",{"type":48,"tag":103,"props":1685,"children":1687},{"style":1686},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1688],{"type":57,"value":1631},{"type":48,"tag":103,"props":1690,"children":1691},{"style":499},[1692],{"type":57,"value":1693},"(",{"type":48,"tag":103,"props":1695,"children":1696},{"style":514},[1697],{"type":57,"value":1698},"{\n",{"type":48,"tag":103,"props":1700,"children":1701},{"class":105,"line":766},[1702,1707,1711,1716,1721,1725,1731],{"type":48,"tag":103,"props":1703,"children":1704},{"style":1686},[1705],{"type":57,"value":1706},"  branch",{"type":48,"tag":103,"props":1708,"children":1709},{"style":514},[1710],{"type":57,"value":788},{"type":48,"tag":103,"props":1712,"children":1713},{"style":514},[1714],{"type":57,"value":1715}," (",{"type":48,"tag":103,"props":1717,"children":1719},{"style":1718},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1720],{"type":57,"value":1567},{"type":48,"tag":103,"props":1722,"children":1723},{"style":514},[1724],{"type":57,"value":1535},{"type":48,"tag":103,"props":1726,"children":1728},{"style":1727},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1729],{"type":57,"value":1730}," =>",{"type":48,"tag":103,"props":1732,"children":1733},{"style":514},[1734],{"type":57,"value":1735}," {\n",{"type":48,"tag":103,"props":1737,"children":1738},{"class":105,"line":912},[1739,1744,1749,1753,1757,1762,1767,1772,1777],{"type":48,"tag":103,"props":1740,"children":1741},{"style":1618},[1742],{"type":57,"value":1743},"    if",{"type":48,"tag":103,"props":1745,"children":1747},{"style":1746},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1748],{"type":57,"value":1715},{"type":48,"tag":103,"props":1750,"children":1751},{"style":499},[1752],{"type":57,"value":1567},{"type":48,"tag":103,"props":1754,"children":1755},{"style":514},[1756],{"type":57,"value":209},{"type":48,"tag":103,"props":1758,"children":1759},{"style":499},[1760],{"type":57,"value":1761},"exists",{"type":48,"tag":103,"props":1763,"children":1764},{"style":1746},[1765],{"type":57,"value":1766},") ",{"type":48,"tag":103,"props":1768,"children":1769},{"style":1618},[1770],{"type":57,"value":1771},"return",{"type":48,"tag":103,"props":1773,"children":1774},{"style":514},[1775],{"type":57,"value":1776}," {};",{"type":48,"tag":103,"props":1778,"children":1779},{"style":1609},[1780],{"type":57,"value":1781}," \u002F\u002F never reconcile existing branches\n",{"type":48,"tag":103,"props":1783,"children":1785},{"class":105,"line":1784},7,[1786,1790,1794,1798,1802,1807,1811,1815,1819,1824,1828,1834],{"type":48,"tag":103,"props":1787,"children":1788},{"style":1618},[1789],{"type":57,"value":1743},{"type":48,"tag":103,"props":1791,"children":1792},{"style":1746},[1793],{"type":57,"value":1715},{"type":48,"tag":103,"props":1795,"children":1796},{"style":499},[1797],{"type":57,"value":1567},{"type":48,"tag":103,"props":1799,"children":1800},{"style":514},[1801],{"type":57,"value":209},{"type":48,"tag":103,"props":1803,"children":1804},{"style":499},[1805],{"type":57,"value":1806},"isDefault",{"type":48,"tag":103,"props":1808,"children":1809},{"style":1746},[1810],{"type":57,"value":1766},{"type":48,"tag":103,"props":1812,"children":1813},{"style":1618},[1814],{"type":57,"value":1771},{"type":48,"tag":103,"props":1816,"children":1817},{"style":514},[1818],{"type":57,"value":1626},{"type":48,"tag":103,"props":1820,"children":1821},{"style":1746},[1822],{"type":57,"value":1823}," protected",{"type":48,"tag":103,"props":1825,"children":1826},{"style":514},[1827],{"type":57,"value":788},{"type":48,"tag":103,"props":1829,"children":1831},{"style":1830},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1832],{"type":57,"value":1833}," true",{"type":48,"tag":103,"props":1835,"children":1836},{"style":514},[1837],{"type":57,"value":1838}," };\n",{"type":48,"tag":103,"props":1840,"children":1842},{"class":105,"line":1841},8,[1843,1847,1851,1855,1859,1863,1867,1872,1876,1880,1885,1889,1893,1898,1903,1907,1911,1915,1919,1923,1927,1932,1936,1941],{"type":48,"tag":103,"props":1844,"children":1845},{"style":1618},[1846],{"type":57,"value":1743},{"type":48,"tag":103,"props":1848,"children":1849},{"style":1746},[1850],{"type":57,"value":1715},{"type":48,"tag":103,"props":1852,"children":1853},{"style":499},[1854],{"type":57,"value":1567},{"type":48,"tag":103,"props":1856,"children":1857},{"style":514},[1858],{"type":57,"value":209},{"type":48,"tag":103,"props":1860,"children":1861},{"style":499},[1862],{"type":57,"value":1115},{"type":48,"tag":103,"props":1864,"children":1865},{"style":514},[1866],{"type":57,"value":209},{"type":48,"tag":103,"props":1868,"children":1869},{"style":1686},[1870],{"type":57,"value":1871},"startsWith",{"type":48,"tag":103,"props":1873,"children":1874},{"style":1746},[1875],{"type":57,"value":1693},{"type":48,"tag":103,"props":1877,"children":1878},{"style":514},[1879],{"type":57,"value":1656},{"type":48,"tag":103,"props":1881,"children":1882},{"style":116},[1883],{"type":57,"value":1884},"preview\u002F",{"type":48,"tag":103,"props":1886,"children":1887},{"style":514},[1888],{"type":57,"value":1656},{"type":48,"tag":103,"props":1890,"children":1891},{"style":1746},[1892],{"type":57,"value":1766},{"type":48,"tag":103,"props":1894,"children":1895},{"style":514},[1896],{"type":57,"value":1897},"||",{"type":48,"tag":103,"props":1899,"children":1900},{"style":499},[1901],{"type":57,"value":1902}," branch",{"type":48,"tag":103,"props":1904,"children":1905},{"style":514},[1906],{"type":57,"value":209},{"type":48,"tag":103,"props":1908,"children":1909},{"style":499},[1910],{"type":57,"value":1115},{"type":48,"tag":103,"props":1912,"children":1913},{"style":514},[1914],{"type":57,"value":209},{"type":48,"tag":103,"props":1916,"children":1917},{"style":1686},[1918],{"type":57,"value":1871},{"type":48,"tag":103,"props":1920,"children":1921},{"style":1746},[1922],{"type":57,"value":1693},{"type":48,"tag":103,"props":1924,"children":1925},{"style":514},[1926],{"type":57,"value":1656},{"type":48,"tag":103,"props":1928,"children":1929},{"style":116},[1930],{"type":57,"value":1931},"dev",{"type":48,"tag":103,"props":1933,"children":1934},{"style":514},[1935],{"type":57,"value":1656},{"type":48,"tag":103,"props":1937,"children":1938},{"style":1746},[1939],{"type":57,"value":1940},")) ",{"type":48,"tag":103,"props":1942,"children":1943},{"style":514},[1944],{"type":57,"value":1698},{"type":48,"tag":103,"props":1946,"children":1948},{"class":105,"line":1947},9,[1949,1954],{"type":48,"tag":103,"props":1950,"children":1951},{"style":1618},[1952],{"type":57,"value":1953},"      return",{"type":48,"tag":103,"props":1955,"children":1956},{"style":514},[1957],{"type":57,"value":1735},{"type":48,"tag":103,"props":1959,"children":1961},{"class":105,"line":1960},10,[1962,1967,1971,1975,1980,1984],{"type":48,"tag":103,"props":1963,"children":1964},{"style":1746},[1965],{"type":57,"value":1966},"        parent",{"type":48,"tag":103,"props":1968,"children":1969},{"style":514},[1970],{"type":57,"value":788},{"type":48,"tag":103,"props":1972,"children":1973},{"style":514},[1974],{"type":57,"value":1646},{"type":48,"tag":103,"props":1976,"children":1977},{"style":116},[1978],{"type":57,"value":1979},"main",{"type":48,"tag":103,"props":1981,"children":1982},{"style":514},[1983],{"type":57,"value":1656},{"type":48,"tag":103,"props":1985,"children":1986},{"style":514},[1987],{"type":57,"value":1988},",\n",{"type":48,"tag":103,"props":1990,"children":1992},{"class":105,"line":1991},11,[1993,1998,2002,2006,2011,2015,2020],{"type":48,"tag":103,"props":1994,"children":1995},{"style":1746},[1996],{"type":57,"value":1997},"        ttl",{"type":48,"tag":103,"props":1999,"children":2000},{"style":514},[2001],{"type":57,"value":788},{"type":48,"tag":103,"props":2003,"children":2004},{"style":514},[2005],{"type":57,"value":1646},{"type":48,"tag":103,"props":2007,"children":2008},{"style":116},[2009],{"type":57,"value":2010},"7d",{"type":48,"tag":103,"props":2012,"children":2013},{"style":514},[2014],{"type":57,"value":1656},{"type":48,"tag":103,"props":2016,"children":2017},{"style":514},[2018],{"type":57,"value":2019},",",{"type":48,"tag":103,"props":2021,"children":2022},{"style":1609},[2023],{"type":57,"value":2024}," \u002F\u002F ephemeral: auto-expire 7 days after creation (max 30d)\n",{"type":48,"tag":103,"props":2026,"children":2027},{"class":105,"line":34},[2028,2033,2037],{"type":48,"tag":103,"props":2029,"children":2030},{"style":1746},[2031],{"type":57,"value":2032},"        postgres",{"type":48,"tag":103,"props":2034,"children":2035},{"style":514},[2036],{"type":57,"value":788},{"type":48,"tag":103,"props":2038,"children":2039},{"style":514},[2040],{"type":57,"value":1735},{"type":48,"tag":103,"props":2042,"children":2044},{"class":105,"line":2043},13,[2045,2050,2054],{"type":48,"tag":103,"props":2046,"children":2047},{"style":1746},[2048],{"type":57,"value":2049},"          computeSettings",{"type":48,"tag":103,"props":2051,"children":2052},{"style":514},[2053],{"type":57,"value":788},{"type":48,"tag":103,"props":2055,"children":2056},{"style":514},[2057],{"type":57,"value":1735},{"type":48,"tag":103,"props":2059,"children":2061},{"class":105,"line":2060},14,[2062,2067,2071,2077,2081],{"type":48,"tag":103,"props":2063,"children":2064},{"style":1746},[2065],{"type":57,"value":2066},"            autoscalingLimitMinCu",{"type":48,"tag":103,"props":2068,"children":2069},{"style":514},[2070],{"type":57,"value":788},{"type":48,"tag":103,"props":2072,"children":2074},{"style":2073},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2075],{"type":57,"value":2076}," 0.25",{"type":48,"tag":103,"props":2078,"children":2079},{"style":514},[2080],{"type":57,"value":2019},{"type":48,"tag":103,"props":2082,"children":2083},{"style":1609},[2084],{"type":57,"value":2085}," \u002F\u002F scale to zero\n",{"type":48,"tag":103,"props":2087,"children":2089},{"class":105,"line":2088},15,[2090,2095,2099,2104,2108],{"type":48,"tag":103,"props":2091,"children":2092},{"style":1746},[2093],{"type":57,"value":2094},"            autoscalingLimitMaxCu",{"type":48,"tag":103,"props":2096,"children":2097},{"style":514},[2098],{"type":57,"value":788},{"type":48,"tag":103,"props":2100,"children":2101},{"style":2073},[2102],{"type":57,"value":2103}," 1",{"type":48,"tag":103,"props":2105,"children":2106},{"style":514},[2107],{"type":57,"value":2019},{"type":48,"tag":103,"props":2109,"children":2110},{"style":1609},[2111],{"type":57,"value":2112}," \u002F\u002F keep throwaway branches cheap\n",{"type":48,"tag":103,"props":2114,"children":2116},{"class":105,"line":2115},16,[2117,2122,2126,2130,2135,2139],{"type":48,"tag":103,"props":2118,"children":2119},{"style":1746},[2120],{"type":57,"value":2121},"            suspendTimeout",{"type":48,"tag":103,"props":2123,"children":2124},{"style":514},[2125],{"type":57,"value":788},{"type":48,"tag":103,"props":2127,"children":2128},{"style":514},[2129],{"type":57,"value":1646},{"type":48,"tag":103,"props":2131,"children":2132},{"style":116},[2133],{"type":57,"value":2134},"5m",{"type":48,"tag":103,"props":2136,"children":2137},{"style":514},[2138],{"type":57,"value":1656},{"type":48,"tag":103,"props":2140,"children":2141},{"style":514},[2142],{"type":57,"value":1988},{"type":48,"tag":103,"props":2144,"children":2146},{"class":105,"line":2145},17,[2147],{"type":48,"tag":103,"props":2148,"children":2149},{"style":514},[2150],{"type":57,"value":2151},"          },\n",{"type":48,"tag":103,"props":2153,"children":2155},{"class":105,"line":2154},18,[2156],{"type":48,"tag":103,"props":2157,"children":2158},{"style":514},[2159],{"type":57,"value":2160},"        },\n",{"type":48,"tag":103,"props":2162,"children":2164},{"class":105,"line":2163},19,[2165],{"type":48,"tag":103,"props":2166,"children":2167},{"style":514},[2168],{"type":57,"value":2169},"      };\n",{"type":48,"tag":103,"props":2171,"children":2173},{"class":105,"line":2172},20,[2174],{"type":48,"tag":103,"props":2175,"children":2176},{"style":514},[2177],{"type":57,"value":2178},"    }\n",{"type":48,"tag":103,"props":2180,"children":2182},{"class":105,"line":2181},21,[2183,2188],{"type":48,"tag":103,"props":2184,"children":2185},{"style":1618},[2186],{"type":57,"value":2187},"    return",{"type":48,"tag":103,"props":2189,"children":2190},{"style":514},[2191],{"type":57,"value":2192}," {};\n",{"type":48,"tag":103,"props":2194,"children":2196},{"class":105,"line":2195},22,[2197],{"type":48,"tag":103,"props":2198,"children":2199},{"style":514},[2200],{"type":57,"value":2201},"  },\n",{"type":48,"tag":103,"props":2203,"children":2205},{"class":105,"line":2204},23,[2206,2211,2215],{"type":48,"tag":103,"props":2207,"children":2208},{"style":514},[2209],{"type":57,"value":2210},"}",{"type":48,"tag":103,"props":2212,"children":2213},{"style":499},[2214],{"type":57,"value":1535},{"type":48,"tag":103,"props":2216,"children":2217},{"style":514},[2218],{"type":57,"value":1661},{"type":48,"tag":49,"props":2220,"children":2221},{},[2222,2224,2229,2231,2236,2237,2242,2243,2249,2251,2257,2258,2264,2266,2272,2274,2280,2282,2287,2289,2295,2297,2303],{"type":57,"value":2223},"The closure receives a read-only descriptor of the target branch — ",{"type":48,"tag":62,"props":2225,"children":2227},{"className":2226},[],[2228],{"type":57,"value":1115},{"type":57,"value":2230},", ",{"type":48,"tag":62,"props":2232,"children":2234},{"className":2233},[],[2235],{"type":57,"value":1761},{"type":57,"value":2230},{"type":48,"tag":62,"props":2238,"children":2240},{"className":2239},[],[2241],{"type":57,"value":1806},{"type":57,"value":2230},{"type":48,"tag":62,"props":2244,"children":2246},{"className":2245},[],[2247],{"type":57,"value":2248},"parentId",{"type":57,"value":2250},", and more — and returns the tuning to apply: ",{"type":48,"tag":62,"props":2252,"children":2254},{"className":2253},[],[2255],{"type":57,"value":2256},"parent",{"type":57,"value":2230},{"type":48,"tag":62,"props":2259,"children":2261},{"className":2260},[],[2262],{"type":57,"value":2263},"ttl",{"type":57,"value":2265}," (auto-expiry), ",{"type":48,"tag":62,"props":2267,"children":2269},{"className":2268},[],[2270],{"type":57,"value":2271},"protected",{"type":57,"value":2273},", and ",{"type":48,"tag":62,"props":2275,"children":2277},{"className":2276},[],[2278],{"type":57,"value":2279},"postgres.computeSettings",{"type":57,"value":2281},". This is the declarative complement to the ",{"type":48,"tag":53,"props":2283,"children":2284},{},[2285],{"type":57,"value":2286},"Ephemeral lifecycle hygiene",{"type":57,"value":2288}," and per-PR \u002F per-test patterns above: instead of remembering ",{"type":48,"tag":62,"props":2290,"children":2292},{"className":2291},[],[2293],{"type":57,"value":2294},"--expires-at",{"type":57,"value":2296}," on every ",{"type":48,"tag":62,"props":2298,"children":2300},{"className":2299},[],[2301],{"type":57,"value":2302},"neon branches create",{"type":57,"value":2304},", the TTL and compute profile live in version control and apply to every matching branch.",{"type":48,"tag":49,"props":2306,"children":2307},{},[2308,2310,2316,2318,2323,2325,2331,2333,2339,2341,2347,2349,2355,2357,2363],{"type":57,"value":2309},"Because ",{"type":48,"tag":62,"props":2311,"children":2313},{"className":2312},[],[2314],{"type":57,"value":2315},"neon checkout",{"type":57,"value":2317}," applies this policy when it ",{"type":48,"tag":53,"props":2319,"children":2320},{},[2321],{"type":57,"value":2322},"creates",{"type":57,"value":2324}," a branch, a fresh ",{"type":48,"tag":62,"props":2326,"children":2328},{"className":2327},[],[2329],{"type":57,"value":2330},"preview\u002F*",{"type":57,"value":2332}," or ",{"type":48,"tag":62,"props":2334,"children":2336},{"className":2335},[],[2337],{"type":57,"value":2338},"dev-*",{"type":57,"value":2340}," branch comes up already expiring and scaled-to-zero. Checking out an ",{"type":48,"tag":2342,"props":2343,"children":2344},"em",{},[2345],{"type":57,"value":2346},"existing",{"type":57,"value":2348}," branch doesn't reconcile it — run ",{"type":48,"tag":62,"props":2350,"children":2352},{"className":2351},[],[2353],{"type":57,"value":2354},"neon deploy",{"type":57,"value":2356}," (alias for ",{"type":48,"tag":62,"props":2358,"children":2360},{"className":2359},[],[2361],{"type":57,"value":2362},"neon config apply",{"type":57,"value":2364},") to apply changes to a branch that already exists.",{"type":48,"tag":183,"props":2366,"children":2368},{"id":2367},"branching-in-cicd",[2369],{"type":57,"value":2370},"Branching in CI\u002FCD",{"type":48,"tag":49,"props":2372,"children":2373},{},[2374],{"type":57,"value":2375},"Common CI\u002FCD use cases for Neon branches:",{"type":48,"tag":158,"props":2377,"children":2378},{},[2379,2422,2432],{"type":48,"tag":162,"props":2380,"children":2381},{},[2382,2387,2389,2394,2396,2403,2404,2411,2413,2420],{"type":48,"tag":53,"props":2383,"children":2384},{},[2385],{"type":57,"value":2386},"Per-PR preview deployments:",{"type":57,"value":2388}," Branch on PR open, deploy the preview against it, delete on close. Each PR gets an isolated database branch. Injecting the branch's ",{"type":48,"tag":62,"props":2390,"children":2392},{"className":2391},[],[2393],{"type":57,"value":1504},{"type":57,"value":2395}," into the deployed app is hosting-provider-specific — see ",{"type":48,"tag":82,"props":2397,"children":2400},{"href":2398,"rel":2399},"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-cloudflare",[86],[2401],{"type":57,"value":2402},"preview-branches-with-cloudflare",{"type":57,"value":2230},{"type":48,"tag":82,"props":2405,"children":2408},{"href":2406,"rel":2407},"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-vercel",[86],[2409],{"type":57,"value":2410},"preview-branches-with-vercel",{"type":57,"value":2412},", or ",{"type":48,"tag":82,"props":2414,"children":2417},{"href":2415,"rel":2416},"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-fly",[86],[2418],{"type":57,"value":2419},"preview-branches-with-fly",{"type":57,"value":2421}," for tested patterns.",{"type":48,"tag":162,"props":2423,"children":2424},{},[2425,2430],{"type":48,"tag":53,"props":2426,"children":2427},{},[2428],{"type":57,"value":2429},"Migration testing in CI:",{"type":57,"value":2431}," Run risky schema changes against a branch with production-like data before merge.",{"type":48,"tag":162,"props":2433,"children":2434},{},[2435,2440,2442,2449],{"type":48,"tag":53,"props":2436,"children":2437},{},[2438],{"type":57,"value":2439},"Schema diff visibility:",{"type":57,"value":2441}," Use the ",{"type":48,"tag":82,"props":2443,"children":2446},{"href":2444,"rel":2445},"https:\u002F\u002Fgithub.com\u002Fmarketplace\u002Factions\u002Fneon-schema-diff-github-action",[86],[2447],{"type":57,"value":2448},"schema-diff GitHub Action",{"type":57,"value":2450}," to auto-comment a DB-layer diff on the PR.",{"type":48,"tag":183,"props":2452,"children":2454},{"id":2453},"examples",[2455],{"type":57,"value":2456},"Examples",{"type":48,"tag":270,"props":2458,"children":2460},{"id":2459},"example-1-migration-testing-with-realistic-data",[2461],{"type":57,"value":2462},"Example 1: Migration testing with realistic data",{"type":48,"tag":49,"props":2464,"children":2465},{},[2466,2471],{"type":48,"tag":53,"props":2467,"children":2468},{},[2469],{"type":57,"value":2470},"User input:",{"type":57,"value":2472}," \"I need to test a risky migration against production-like data.\"",{"type":48,"tag":49,"props":2474,"children":2475},{},[2476],{"type":48,"tag":53,"props":2477,"children":2478},{},[2479],{"type":57,"value":2480},"Agent output shape:",{"type":48,"tag":195,"props":2482,"children":2483},{},[2484,2489,2500,2512],{"type":48,"tag":162,"props":2485,"children":2486},{},[2487],{"type":57,"value":2488},"Recommend a normal branch and explain why.",{"type":48,"tag":162,"props":2490,"children":2491},{},[2492,2494],{"type":57,"value":2493},"Share docs link: ",{"type":48,"tag":82,"props":2495,"children":2498},{"href":2496,"rel":2497},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fbranching",[86],[2499],{"type":57,"value":2496},{"type":48,"tag":162,"props":2501,"children":2502},{},[2503,2505,2510],{"type":57,"value":2504},"Check the tool path first (CLI with ",{"type":48,"tag":62,"props":2506,"children":2508},{"className":2507},[],[2509],{"type":57,"value":297},{"type":57,"value":2511},"; MCP only if the CLI isn't usable).",{"type":48,"tag":162,"props":2513,"children":2514},{},[2515,2517],{"type":57,"value":2516},"Provide commands:\n",{"type":48,"tag":158,"props":2518,"children":2519},{},[2520,2529],{"type":48,"tag":162,"props":2521,"children":2522},{},[2523],{"type":48,"tag":62,"props":2524,"children":2526},{"className":2525},[],[2527],{"type":57,"value":2528},"neon branches create --name migration-test --parent main --expires-at 2026-12-15T18:02:16Z",{"type":48,"tag":162,"props":2530,"children":2531},{},[2532],{"type":48,"tag":62,"props":2533,"children":2535},{"className":2534},[],[2536],{"type":57,"value":2537},"neon connection-string migration-test",{"type":48,"tag":270,"props":2539,"children":2541},{"id":2540},"example-2-sensitive-data-development-workflow",[2542],{"type":57,"value":2543},"Example 2: Sensitive data development workflow",{"type":48,"tag":49,"props":2545,"children":2546},{},[2547,2551],{"type":48,"tag":53,"props":2548,"children":2549},{},[2550],{"type":57,"value":2470},{"type":57,"value":2552}," \"We cannot copy production data because of compliance.\"",{"type":48,"tag":49,"props":2554,"children":2555},{},[2556],{"type":48,"tag":53,"props":2557,"children":2558},{},[2559],{"type":57,"value":2480},{"type":48,"tag":195,"props":2561,"children":2562},{},[2563,2568,2578,2588,2605],{"type":48,"tag":162,"props":2564,"children":2565},{},[2566],{"type":57,"value":2567},"Recommend schema-only branch and explain why.",{"type":48,"tag":162,"props":2569,"children":2570},{},[2571,2572],{"type":57,"value":2493},{"type":48,"tag":82,"props":2573,"children":2576},{"href":2574,"rel":2575},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-schema-only",[86],[2577],{"type":57,"value":2574},{"type":48,"tag":162,"props":2579,"children":2580},{},[2581,2582,2587],{"type":57,"value":2504},{"type":48,"tag":62,"props":2583,"children":2585},{"className":2584},[],[2586],{"type":57,"value":297},{"type":57,"value":2511},{"type":48,"tag":162,"props":2589,"children":2590},{},[2591,2593],{"type":57,"value":2592},"Provide command:\n",{"type":48,"tag":158,"props":2594,"children":2595},{},[2596],{"type":48,"tag":162,"props":2597,"children":2598},{},[2599],{"type":48,"tag":62,"props":2600,"children":2602},{"className":2601},[],[2603],{"type":57,"value":2604},"neon branches create --name compliance-dev --parent main --schema-only --project-id \u003Cyour-project-id> --expires-at 2026-12-15T18:02:16Z",{"type":48,"tag":162,"props":2606,"children":2607},{},[2608,2610],{"type":57,"value":2609},"Mention Beta support path:\n",{"type":48,"tag":158,"props":2611,"children":2612},{},[2613,2621],{"type":48,"tag":162,"props":2614,"children":2615},{},[2616],{"type":48,"tag":82,"props":2617,"children":2619},{"href":949,"rel":2618},[86],[2620],{"type":57,"value":949},{"type":48,"tag":162,"props":2622,"children":2623},{},[2624],{"type":48,"tag":82,"props":2625,"children":2627},{"href":966,"rel":2626},[86],[2628],{"type":57,"value":966},{"type":48,"tag":183,"props":2630,"children":2632},{"id":2631},"further-reading",[2633],{"type":57,"value":2634},"Further Reading",{"type":48,"tag":158,"props":2636,"children":2637},{},[2638,2647,2656,2664],{"type":48,"tag":162,"props":2639,"children":2640},{},[2641],{"type":48,"tag":82,"props":2642,"children":2645},{"href":2643,"rel":2644},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranch-expiration.md",[86],[2646],{"type":57,"value":2643},{"type":48,"tag":162,"props":2648,"children":2649},{},[2650],{"type":48,"tag":82,"props":2651,"children":2654},{"href":2652,"rel":2653},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fneon-github-integration.md",[86],[2655],{"type":57,"value":2652},{"type":48,"tag":162,"props":2657,"children":2658},{},[2659],{"type":48,"tag":82,"props":2660,"children":2662},{"href":265,"rel":2661},[86],[2663],{"type":57,"value":265},{"type":48,"tag":162,"props":2665,"children":2666},{},[2667],{"type":48,"tag":82,"props":2668,"children":2671},{"href":2669,"rel":2670},"https:\u002F\u002Fneon.com\u002Fbranching",[86],[2672],{"type":57,"value":2669},{"type":48,"tag":2674,"props":2675,"children":2676},"style",{},[2677],{"type":57,"value":2678},"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);}",{"items":2680,"total":2163},[2681,2696,2710,2722,2738,2750,2764,2777,2787,2806,2824,2841],{"slug":2682,"name":2682,"fn":2683,"description":2684,"org":2685,"tags":2686,"stars":2693,"repoUrl":2694,"updatedAt":2695},"neon-postgres","build apps with Neon serverless Postgres","Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods and drivers, pooled vs direct connections, branching, autoscaling, scale-to-zero, instant restore, read replicas, connection pooling, IP allow lists, and logical replication. Use when users ask about \"Neon setup\", \"connect to Neon\", \"Neon project\", \"DATABASE_URL\", \"serverless Postgres\", \"Neon CLI\", \"neon\", \"Neon MCP\", \"Neon Auth\", \"@neondatabase\u002Fserverless\", \"@neondatabase\u002Fneon-js\", \"scale to zero\", \"Neon autoscaling\", \"Neon read replica\", or \"Neon connection pooling\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2687,2688,2689,2690],{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},{"name":25,"slug":26,"type":14},{"name":2691,"slug":2692,"type":14},"Serverless","serverless",321,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fwebsite","2026-07-27T06:08:14.168734",{"slug":2697,"name":2697,"fn":2698,"description":2699,"org":2700,"tags":2701,"stars":2707,"repoUrl":2708,"updatedAt":2709},"add-neon-docs","add Neon docs to project AI docs","Use this skill when the user asks to add documentation, add docs, add references, or install documentation about Neon. Adds Neon best practices reference links to project AI documentation (CLAUDE.md, AGENTS.md, or Cursor rules). Does not install packages or modify code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2702,2703,2706],{"name":19,"slug":20,"type":14},{"name":2704,"slug":2705,"type":14},"Documentation","documentation",{"name":9,"slug":8,"type":14},86,"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fai-rules","2026-04-06T18:38:53.722898",{"slug":2711,"name":2711,"fn":2712,"description":2713,"org":2714,"tags":2715,"stars":2707,"repoUrl":2708,"updatedAt":2721},"neon-auth","set up Neon Auth for apps","Sets up Neon Auth for your application. Configures authentication, creates auth routes, and generates UI components. Use when adding authentication to Next.js, React SPA, or Node.js projects.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2716,2719,2720],{"name":2717,"slug":2718,"type":14},"Auth","auth",{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},"2026-04-06T18:38:52.386193",{"slug":2723,"name":2723,"fn":2724,"description":2725,"org":2726,"tags":2727,"stars":2707,"repoUrl":2708,"updatedAt":2737},"neon-drizzle","set up Drizzle ORM with Neon","Creates a fully functional Drizzle ORM setup with a provisioned Neon database. Installs dependencies, provisions database credentials, configures connections, generates schemas, and runs migrations. Results in working code that can immediately connect to and query the database. Use when creating new projects with Drizzle, adding ORM to existing applications, or modifying database schemas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2728,2729,2732,2733,2736],{"name":19,"slug":20,"type":14},{"name":2730,"slug":2731,"type":14},"Drizzle","drizzle",{"name":9,"slug":8,"type":14},{"name":2734,"slug":2735,"type":14},"ORM","orm",{"name":25,"slug":26,"type":14},"2026-04-06T18:38:56.217495",{"slug":2739,"name":2739,"fn":2740,"description":2741,"org":2742,"tags":2743,"stars":2707,"repoUrl":2708,"updatedAt":2749},"neon-js","set up the Neon JS SDK for auth and queries","Sets up the full Neon JS SDK with unified auth and PostgREST-style database queries. Configures auth client, data client, and type generation. Use when building apps that need both authentication and database access in one SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2744,2745,2746,2747],{"name":2717,"slug":2718,"type":14},{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},{"name":2748,"slug":1599,"type":14},"TypeScript","2026-04-06T18:38:51.116041",{"slug":2751,"name":2751,"fn":2752,"description":2753,"org":2754,"tags":2755,"stars":2707,"repoUrl":2708,"updatedAt":2763},"neon-serverless","configure Neon serverless driver","Configures Neon Serverless Driver for Next.js, Vercel Edge Functions, AWS Lambda, and other serverless environments. Installs @neondatabase\u002Fserverless, sets up environment variables, and creates working API route examples with TypeScript types. Use when users need to connect their application to Neon, fetch or query data from a Neon database, integrate Neon with Next.js or serverless frameworks, or set up database access in edge\u002Fserverless environments where traditional PostgreSQL clients don't work.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2756,2757,2760,2761,2762],{"name":19,"slug":20,"type":14},{"name":2758,"slug":2759,"type":14},"Edge Functions","edge-functions",{"name":9,"slug":8,"type":14},{"name":25,"slug":26,"type":14},{"name":2691,"slug":2692,"type":14},"2026-04-06T18:38:54.97085",{"slug":2765,"name":2765,"fn":2766,"description":2767,"org":2768,"tags":2769,"stars":2707,"repoUrl":2708,"updatedAt":2776},"neon-toolkit","create ephemeral Neon databases for testing","Creates and manages ephemeral Neon databases for testing, CI\u002FCD pipelines, and isolated development environments. Use when building temporary databases for automated tests or rapid prototyping.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2770,2773,2774,2775],{"name":2771,"slug":2772,"type":14},"CI\u002FCD","cicd",{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},{"name":28,"slug":29,"type":14},"2026-04-06T18:38:57.490782",{"slug":2778,"name":2778,"fn":2779,"description":2780,"org":2781,"tags":2782,"stars":30,"repoUrl":31,"updatedAt":2786},"claimable-postgres","provision temporary Postgres databases","Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new) with no login, signup, or credit card. Supports REST API, CLI, and SDK. Use when users ask for a quick Postgres environment, a throwaway DATABASE_URL for prototyping\u002Ftests, or \"just give me a DB now\". Triggers include: \"quick postgres\", \"temporary postgres\", \"no signup database\", \"no credit card database\", \"instant DATABASE_URL\", \"npx neon-new\", \"neon.new\", \"neon.new API\", \"claimable postgres API\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2783,2784,2785],{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},{"name":25,"slug":26,"type":14},"2026-07-27T06:07:56.160588",{"slug":8,"name":8,"fn":2788,"description":2789,"org":2790,"tags":2791,"stars":30,"repoUrl":31,"updatedAt":2805},"build applications on the Neon platform","Overview of the Neon platform for apps and agents, spanning Postgres, Auth, the Data API, Object Storage, Compute Functions, and the AI Gateway. Start here to route to the right Neon skill, set up the CLI or MCP server, and follow the branch-first workflow. Use when \"Neon\" is mentioned, or when any of its individual capabilities are the trigger: \"object storage\" or \"S3\", \"buckets\", \"serverless functions\", \"AI gateway\", \"call an LLM\", \"postgres\", \"database\", or \"backend\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2792,2795,2798,2799,2800,2801,2802],{"name":2793,"slug":2794,"type":14},"AI Infrastructure","ai-infrastructure",{"name":2796,"slug":2797,"type":14},"Authentication","authentication",{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},{"name":25,"slug":26,"type":14},{"name":2691,"slug":2692,"type":14},{"name":2803,"slug":2804,"type":14},"Storage","storage","2026-07-27T06:08:01.383115",{"slug":2807,"name":2807,"fn":2808,"description":2809,"org":2810,"tags":2811,"stars":30,"repoUrl":31,"updatedAt":2823},"neon-ai-gateway","call LLMs via Neon AI Gateway","One API and one credential for frontier and open-source LLMs, built into your Neon branch and powered by Databricks. Use when a user wants to call an LLM, add AI\u002Fchat\u002Fan agent to their app, route between model providers (OpenAI, Anthropic, Google\u002FGemini, Meta, Alibaba, DeepSeek), or avoid juggling separate provider API keys and accounts — especially when they already use Neon and want AI requests to branch with their project. Works with the OpenAI SDK, Anthropic SDK, google-genai, the Vercel AI SDK, and Mastra by changing only the base URL. Triggers include \"call an LLM\", \"add AI to my app\", \"chat completion\", \"model routing\", \"LLM proxy\u002Fgateway\", \"one API for all models\", \"use Claude\u002FGPT\u002FGemini\", \"AI SDK\", \"Mastra agent\", \"Neon AI Gateway\", and \"log\u002Frate-limit AI calls\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2812,2813,2816,2819,2822],{"name":2793,"slug":2794,"type":14},{"name":2814,"slug":2815,"type":14},"API Development","api-development",{"name":2817,"slug":2818,"type":14},"Databricks","databricks",{"name":2820,"slug":2821,"type":14},"LLM","llm",{"name":9,"slug":8,"type":14},"2026-07-27T06:08:00.288175",{"slug":2825,"name":2825,"fn":2826,"description":2827,"org":2828,"tags":2829,"stars":30,"repoUrl":31,"updatedAt":2840},"neon-functions","deploy serverless functions on Neon","Long-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASE_URL injected automatically and compute that runs next to your data. Use when a user wants to host an API, an AI agent with long streaming responses, a WebSocket or server-sent-events (SSE) server, a webhook handler, a Discord bot, an MCP server, or any request\u002Fresponse workload that risks timing out on short, lambda-style serverless functions — and wants it to branch with their database. Triggers include \"serverless function\", \"deploy an API\", \"long-running function\", \"streaming agent\", \"SSE server\", \"WebSocket server\", \"webhook handler\", \"MCP server\", \"run code next to my database\", \"function that won't time out\", \"Neon Functions\", and \"Neon Compute\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2830,2831,2834,2835,2836,2839],{"name":2814,"slug":2815,"type":14},{"name":2832,"slug":2833,"type":14},"Backend","backend",{"name":2758,"slug":2759,"type":14},{"name":9,"slug":8,"type":14},{"name":2837,"slug":2838,"type":14},"Node.js","node-js",{"name":2691,"slug":2692,"type":14},"2026-07-27T06:07:59.147675",{"slug":2842,"name":2842,"fn":2843,"description":2844,"org":2845,"tags":2846,"stars":30,"repoUrl":31,"updatedAt":2853},"neon-object-storage","manage Neon object storage","S3-compatible object storage that branches with your Neon project, so files and the database stay in sync across every branch. Use when a user wants object storage, a bucket, blob\u002Ffile storage, or somewhere to put uploads, images, documents, avatars, or user-generated files for their app or agent — especially when they already use (or are setting up) Neon Postgres and don't want to add a separate storage provider like AWS S3, Cloudflare R2, or Supabase Storage. Triggers include \"object storage\", \"bucket\", \"blob storage\", \"file storage\", \"store uploads\u002Fimages\u002Ffiles\", \"S3-compatible storage\", \"presigned URL\", \"where do I put files\", \"Neon Object Storage\", \"Neon Storage\", and \"storage that branches with my database\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2847,2848,2851,2852],{"name":19,"slug":20,"type":14},{"name":2849,"slug":2850,"type":14},"File Storage","file-storage",{"name":9,"slug":8,"type":14},{"name":2803,"slug":2804,"type":14},"2026-07-27T06:07:57.150892",{"items":2855,"total":1784},[2856,2862,2872,2880,2889,2896,2905],{"slug":2778,"name":2778,"fn":2779,"description":2780,"org":2857,"tags":2858,"stars":30,"repoUrl":31,"updatedAt":2786},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2859,2860,2861],{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},{"name":25,"slug":26,"type":14},{"slug":8,"name":8,"fn":2788,"description":2789,"org":2863,"tags":2864,"stars":30,"repoUrl":31,"updatedAt":2805},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2865,2866,2867,2868,2869,2870,2871],{"name":2793,"slug":2794,"type":14},{"name":2796,"slug":2797,"type":14},{"name":19,"slug":20,"type":14},{"name":9,"slug":8,"type":14},{"name":25,"slug":26,"type":14},{"name":2691,"slug":2692,"type":14},{"name":2803,"slug":2804,"type":14},{"slug":2807,"name":2807,"fn":2808,"description":2809,"org":2873,"tags":2874,"stars":30,"repoUrl":31,"updatedAt":2823},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2875,2876,2877,2878,2879],{"name":2793,"slug":2794,"type":14},{"name":2814,"slug":2815,"type":14},{"name":2817,"slug":2818,"type":14},{"name":2820,"slug":2821,"type":14},{"name":9,"slug":8,"type":14},{"slug":2825,"name":2825,"fn":2826,"description":2827,"org":2881,"tags":2882,"stars":30,"repoUrl":31,"updatedAt":2840},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2883,2884,2885,2886,2887,2888],{"name":2814,"slug":2815,"type":14},{"name":2832,"slug":2833,"type":14},{"name":2758,"slug":2759,"type":14},{"name":9,"slug":8,"type":14},{"name":2837,"slug":2838,"type":14},{"name":2691,"slug":2692,"type":14},{"slug":2842,"name":2842,"fn":2843,"description":2844,"org":2890,"tags":2891,"stars":30,"repoUrl":31,"updatedAt":2853},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2892,2893,2894,2895],{"name":19,"slug":20,"type":14},{"name":2849,"slug":2850,"type":14},{"name":9,"slug":8,"type":14},{"name":2803,"slug":2804,"type":14},{"slug":4,"name":4,"fn":5,"description":6,"org":2897,"tags":2898,"stars":30,"repoUrl":31,"updatedAt":32},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2899,2900,2901,2902,2903,2904],{"name":19,"slug":20,"type":14},{"name":16,"slug":17,"type":14},{"name":22,"slug":23,"type":14},{"name":9,"slug":8,"type":14},{"name":25,"slug":26,"type":14},{"name":28,"slug":29,"type":14},{"slug":2906,"name":2906,"fn":2907,"description":2908,"org":2909,"tags":2910,"stars":30,"repoUrl":31,"updatedAt":2919},"neon-postgres-egress-optimizer","diagnose and fix Postgres egress costs","Diagnose and fix excessive Postgres egress (network data transfer) in a codebase. Use when a user mentions high database bills, unexpected data transfer costs, network transfer charges, egress spikes, \"why is my Neon bill so high\", \"database costs jumped\", SELECT * optimization, query overfetching, reduce Neon costs, optimize database usage, or wants to reduce data sent from their database to their application. Also use when reviewing query patterns for cost efficiency, even if the user doesn't explicitly mention egress or data transfer.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2911,2914,2915,2918],{"name":2912,"slug":2913,"type":14},"Cost Optimization","cost-optimization",{"name":9,"slug":8,"type":14},{"name":2916,"slug":2917,"type":14},"Performance","performance",{"name":25,"slug":26,"type":14},"2026-07-27T06:07:58.159412"]