[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-xai-neon-postgres-branches":3,"mdc-punpgi-key":37,"related-org-xai-neon-postgres-branches":1727,"related-repo-xai-neon-postgres-branches":1762},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":32,"sourceUrl":35,"mdContent":36},"neon-postgres-branches","create and manage Neon 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, or branch creation via Neon CLI or Neon MCP. Triggers include \"Neon branch\", \"test migrations safely\", \"branch production data\", \"schema-only branch\", \"reset branch\" and \"sensitive data testing\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"xai","xAI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fxai.png","xai-org",[13,17,20,23],{"name":14,"slug":15,"type":16},"Neon","neon","tag",{"name":18,"slug":19,"type":16},"Database","database",{"name":21,"slug":22,"type":16},"Migration","migration",{"name":24,"slug":25,"type":16},"PostgreSQL","postgresql",78,"https:\u002F\u002Fgithub.com\u002Fxai-org\u002Fplugin-marketplace","2026-07-18T05:46:44.889388",null,58,[],{"repoUrl":27,"stars":26,"forks":30,"topics":33,"description":34},[],"Official xAI plugin marketplace","https:\u002F\u002Fgithub.com\u002Fxai-org\u002Fplugin-marketplace\u002Ftree\u002FHEAD\u002Fexternal_plugins\u002Fneon\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  or branch creation via Neon CLI or Neon MCP. Triggers include \"Neon branch\",\n  \"test migrations safely\", \"branch production data\", \"schema-only branch\",\n  \"reset branch\" and \"sensitive data testing\".\n---\n\n# Neon Postgres Branching\n\nThe outcome of this skill should be a created Neon branch (or a clear, actionable next step if creation cannot proceed).\nChoose the correct branch type, then execute branch creation via MCP or CLI.\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\nAlways support both Neon CLI and Neon MCP server. Prefer the tool the user already has installed and authenticated.\n\nMCP link: https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fneon-mcp-server.md\nCLI link: https:\u002F\u002Fneon.com\u002Fdocs\u002Freference\u002Fcli-quickstart\n\n### Selection order\n\n1. Check MCP first in MCP-enabled environments:\n   - If Neon MCP tools are available and authenticated (for example, listing projects works), use MCP.\n2. If MCP is unavailable or not authenticated, check CLI:\n   - Run `neonctl --version` to confirm CLI is installed.\n   - Run `neonctl projects list` to confirm auth\u002Fcontext.\n3. If CLI is missing, direct installation via quickstart.\n4. If CLI is installed but not authenticated, guide the user through `neonctl auth` (or API key auth), then continue.\n5. If both MCP and CLI paths are unsuccessful, 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. Use MCP if already available\u002Fauthenticated; otherwise verify CLI with `neonctl --version`.\n2. Ensure project context is set (`neonctl set-context --project-id \u003Cyour-project-id>`) or include `--project-id` on commands.\n3. Create branch:\n\n```bash\nneonctl 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\nneonctl 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. Use MCP if already available\u002Fauthenticated; otherwise verify CLI with `neonctl --version`.\n2. Create schema-only branch:\n\n```bash\nneonctl 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\nIf multiple projects exist, include:\n\n```bash\nneonctl 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\nneonctl branches reset \u003Cid|name> --parent --preserve-under-name \u003Cbackup-branch-name>\n```\n\nIf project context is not already set, include project ID:\n\n```bash\nneonctl 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\nneonctl 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## 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 available\u002Fauthenticated tool path first (MCP, otherwise CLI with `neonctl --version`).\n4. Provide commands:\n   - `neonctl branches create --name migration-test --parent main --expires-at 2026-12-15T18:02:16Z`\n   - `neonctl 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 available\u002Fauthenticated tool path first (MCP, otherwise CLI with `neonctl --version`).\n4. Provide command:\n   - `neonctl 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":38,"body":39},{"name":4,"description":6},{"type":40,"children":41},"root",[42,51,57,83,90,95,122,127,133,138,159,166,251,257,296,302,307,318,324,364,482,490,526,532,537,547,552,570,675,680,813,819,824,861,867,872,882,888,906,912,930,936,959,965,1039,1044,1132,1143,1155,1194,1200,1243,1249,1299,1305,1310,1363,1369,1374,1413,1419,1424,1500,1506,1512,1522,1530,1586,1592,1601,1608,1677,1683,1721],{"type":43,"tag":44,"props":45,"children":47},"element","h1",{"id":46},"neon-postgres-branching",[48],{"type":49,"value":50},"text","Neon Postgres Branching",{"type":43,"tag":52,"props":53,"children":54},"p",{},[55],{"type":49,"value":56},"The outcome of this skill should be a created Neon branch (or a clear, actionable next step if creation cannot proceed).\nChoose the correct branch type, then execute branch creation via MCP or CLI.",{"type":43,"tag":58,"props":59,"children":60},"ul",{},[61,73],{"type":43,"tag":62,"props":63,"children":64},"li",{},[65,71],{"type":43,"tag":66,"props":67,"children":68},"strong",{},[69],{"type":49,"value":70},"Normal branch",{"type":49,"value":72}," for realistic migration and query testing with real data.",{"type":43,"tag":62,"props":74,"children":75},{},[76,81],{"type":43,"tag":66,"props":77,"children":78},{},[79],{"type":49,"value":80},"Schema-only branch (Beta)",{"type":49,"value":82}," for sensitive data workflows where structure is needed without copying rows.",{"type":43,"tag":84,"props":85,"children":87},"h2",{"id":86},"branch-type-decision",[88],{"type":49,"value":89},"Branch Type Decision",{"type":43,"tag":52,"props":91,"children":92},{},[93],{"type":49,"value":94},"Use this decision rule first:",{"type":43,"tag":96,"props":97,"children":98},"ol",{},[99,111],{"type":43,"tag":62,"props":100,"children":101},{},[102,104,109],{"type":49,"value":103},"If the user wants to test complex migrations, performance, or behavior against production-like data, choose a ",{"type":43,"tag":66,"props":105,"children":106},{},[107],{"type":49,"value":108},"normal branch",{"type":49,"value":110},".",{"type":43,"tag":62,"props":112,"children":113},{},[114,116,121],{"type":49,"value":115},"If the user needs to avoid copying sensitive data, choose a ",{"type":43,"tag":66,"props":117,"children":118},{},[119],{"type":49,"value":120},"schema-only branch",{"type":49,"value":110},{"type":43,"tag":52,"props":123,"children":124},{},[125],{"type":49,"value":126},"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":43,"tag":84,"props":128,"children":130},{"id":129},"tool-selection-cli-or-mcp",[131],{"type":49,"value":132},"Tool Selection: CLI or MCP",{"type":43,"tag":52,"props":134,"children":135},{},[136],{"type":49,"value":137},"Always support both Neon CLI and Neon MCP server. Prefer the tool the user already has installed and authenticated.",{"type":43,"tag":52,"props":139,"children":140},{},[141,143,151,153],{"type":49,"value":142},"MCP link: ",{"type":43,"tag":144,"props":145,"children":149},"a",{"href":146,"rel":147},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fneon-mcp-server.md",[148],"nofollow",[150],{"type":49,"value":146},{"type":49,"value":152},"\nCLI link: ",{"type":43,"tag":144,"props":154,"children":157},{"href":155,"rel":156},"https:\u002F\u002Fneon.com\u002Fdocs\u002Freference\u002Fcli-quickstart",[148],[158],{"type":49,"value":155},{"type":43,"tag":160,"props":161,"children":163},"h3",{"id":162},"selection-order",[164],{"type":49,"value":165},"Selection order",{"type":43,"tag":96,"props":167,"children":168},{},[169,182,216,221,234],{"type":43,"tag":62,"props":170,"children":171},{},[172,174],{"type":49,"value":173},"Check MCP first in MCP-enabled environments:\n",{"type":43,"tag":58,"props":175,"children":176},{},[177],{"type":43,"tag":62,"props":178,"children":179},{},[180],{"type":49,"value":181},"If Neon MCP tools are available and authenticated (for example, listing projects works), use MCP.",{"type":43,"tag":62,"props":183,"children":184},{},[185,187],{"type":49,"value":186},"If MCP is unavailable or not authenticated, check CLI:\n",{"type":43,"tag":58,"props":188,"children":189},{},[190,204],{"type":43,"tag":62,"props":191,"children":192},{},[193,195,202],{"type":49,"value":194},"Run ",{"type":43,"tag":196,"props":197,"children":199},"code",{"className":198},[],[200],{"type":49,"value":201},"neonctl --version",{"type":49,"value":203}," to confirm CLI is installed.",{"type":43,"tag":62,"props":205,"children":206},{},[207,208,214],{"type":49,"value":194},{"type":43,"tag":196,"props":209,"children":211},{"className":210},[],[212],{"type":49,"value":213},"neonctl projects list",{"type":49,"value":215}," to confirm auth\u002Fcontext.",{"type":43,"tag":62,"props":217,"children":218},{},[219],{"type":49,"value":220},"If CLI is missing, direct installation via quickstart.",{"type":43,"tag":62,"props":222,"children":223},{},[224,226,232],{"type":49,"value":225},"If CLI is installed but not authenticated, guide the user through ",{"type":43,"tag":196,"props":227,"children":229},{"className":228},[],[230],{"type":49,"value":231},"neonctl auth",{"type":49,"value":233}," (or API key auth), then continue.",{"type":43,"tag":62,"props":235,"children":236},{},[237,239],{"type":49,"value":238},"If both MCP and CLI paths are unsuccessful, use the Neon REST API:\n",{"type":43,"tag":58,"props":240,"children":241},{},[242],{"type":43,"tag":62,"props":243,"children":244},{},[245],{"type":43,"tag":144,"props":246,"children":249},{"href":247,"rel":248},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-neon-api.md",[148],[250],{"type":49,"value":247},{"type":43,"tag":160,"props":252,"children":254},{"id":253},"mcp-branch-flow",[255],{"type":49,"value":256},"MCP branch flow",{"type":43,"tag":96,"props":258,"children":259},{},[260,265,278,291],{"type":43,"tag":62,"props":261,"children":262},{},[263],{"type":49,"value":264},"Choose normal vs schema-only based on data sensitivity and migration-testing goals.",{"type":43,"tag":62,"props":266,"children":267},{},[268,270,276],{"type":49,"value":269},"Use branch tools (for example, ",{"type":43,"tag":196,"props":271,"children":273},{"className":272},[],[274],{"type":49,"value":275},"create_branch",{"type":49,"value":277},") to create the branch.",{"type":43,"tag":62,"props":279,"children":280},{},[281,283,289],{"type":49,"value":282},"Validate with read tools (for example, ",{"type":43,"tag":196,"props":284,"children":286},{"className":285},[],[287],{"type":49,"value":288},"describe_branch",{"type":49,"value":290},").",{"type":43,"tag":62,"props":292,"children":293},{},[294],{"type":49,"value":295},"For migration workflows, prefer branch-based migration flows before applying to main.",{"type":43,"tag":84,"props":297,"children":299},{"id":298},"create-a-normal-branch-preferred-for-real-data-migration-testing",[300],{"type":49,"value":301},"Create a Normal Branch (Preferred for Real-Data Migration Testing)",{"type":43,"tag":52,"props":303,"children":304},{},[305],{"type":49,"value":306},"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":43,"tag":52,"props":308,"children":309},{},[310,312],{"type":49,"value":311},"Link: ",{"type":43,"tag":144,"props":313,"children":316},{"href":314,"rel":315},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fbranching.md",[148],[317],{"type":49,"value":314},{"type":43,"tag":160,"props":319,"children":321},{"id":320},"steps",[322],{"type":49,"value":323},"Steps",{"type":43,"tag":96,"props":325,"children":326},{},[327,338,359],{"type":43,"tag":62,"props":328,"children":329},{},[330,332,337],{"type":49,"value":331},"Use MCP if already available\u002Fauthenticated; otherwise verify CLI with ",{"type":43,"tag":196,"props":333,"children":335},{"className":334},[],[336],{"type":49,"value":201},{"type":49,"value":110},{"type":43,"tag":62,"props":339,"children":340},{},[341,343,349,351,357],{"type":49,"value":342},"Ensure project context is set (",{"type":43,"tag":196,"props":344,"children":346},{"className":345},[],[347],{"type":49,"value":348},"neonctl set-context --project-id \u003Cyour-project-id>",{"type":49,"value":350},") or include ",{"type":43,"tag":196,"props":352,"children":354},{"className":353},[],[355],{"type":49,"value":356},"--project-id",{"type":49,"value":358}," on commands.",{"type":43,"tag":62,"props":360,"children":361},{},[362],{"type":49,"value":363},"Create branch:",{"type":43,"tag":365,"props":366,"children":371},"pre",{"className":367,"code":368,"language":369,"meta":370,"style":370},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","neonctl branches create \\\n  --name \u003Cbranch-name> \\\n  --parent \u003Cparent-branch-id-or-name> \\\n  --expires-at 2026-12-15T18:02:16Z\n","bash","",[372],{"type":43,"tag":196,"props":373,"children":374},{"__ignoreMap":370},[375,404,438,468],{"type":43,"tag":376,"props":377,"children":380},"span",{"class":378,"line":379},"line",1,[381,387,393,398],{"type":43,"tag":376,"props":382,"children":384},{"style":383},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[385],{"type":49,"value":386},"neonctl",{"type":43,"tag":376,"props":388,"children":390},{"style":389},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[391],{"type":49,"value":392}," branches",{"type":43,"tag":376,"props":394,"children":395},{"style":389},[396],{"type":49,"value":397}," create",{"type":43,"tag":376,"props":399,"children":401},{"style":400},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[402],{"type":49,"value":403}," \\\n",{"type":43,"tag":376,"props":405,"children":407},{"class":378,"line":406},2,[408,413,419,424,429,434],{"type":43,"tag":376,"props":409,"children":410},{"style":389},[411],{"type":49,"value":412},"  --name",{"type":43,"tag":376,"props":414,"children":416},{"style":415},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[417],{"type":49,"value":418}," \u003C",{"type":43,"tag":376,"props":420,"children":421},{"style":389},[422],{"type":49,"value":423},"branch-nam",{"type":43,"tag":376,"props":425,"children":426},{"style":400},[427],{"type":49,"value":428},"e",{"type":43,"tag":376,"props":430,"children":431},{"style":415},[432],{"type":49,"value":433},">",{"type":43,"tag":376,"props":435,"children":436},{"style":400},[437],{"type":49,"value":403},{"type":43,"tag":376,"props":439,"children":441},{"class":378,"line":440},3,[442,447,451,456,460,464],{"type":43,"tag":376,"props":443,"children":444},{"style":389},[445],{"type":49,"value":446},"  --parent",{"type":43,"tag":376,"props":448,"children":449},{"style":415},[450],{"type":49,"value":418},{"type":43,"tag":376,"props":452,"children":453},{"style":389},[454],{"type":49,"value":455},"parent-branch-id-or-nam",{"type":43,"tag":376,"props":457,"children":458},{"style":400},[459],{"type":49,"value":428},{"type":43,"tag":376,"props":461,"children":462},{"style":415},[463],{"type":49,"value":433},{"type":43,"tag":376,"props":465,"children":466},{"style":400},[467],{"type":49,"value":403},{"type":43,"tag":376,"props":469,"children":471},{"class":378,"line":470},4,[472,477],{"type":43,"tag":376,"props":473,"children":474},{"style":389},[475],{"type":49,"value":476},"  --expires-at",{"type":43,"tag":376,"props":478,"children":479},{"style":389},[480],{"type":49,"value":481}," 2026-12-15T18:02:16Z\n",{"type":43,"tag":96,"props":483,"children":484},{"start":470},[485],{"type":43,"tag":62,"props":486,"children":487},{},[488],{"type":49,"value":489},"Optionally fetch a connection string for the new branch:",{"type":43,"tag":365,"props":491,"children":493},{"className":367,"code":492,"language":369,"meta":370,"style":370},"neonctl connection-string \u003Cbranch-name>\n",[494],{"type":43,"tag":196,"props":495,"children":496},{"__ignoreMap":370},[497],{"type":43,"tag":376,"props":498,"children":499},{"class":378,"line":379},[500,504,509,513,517,521],{"type":43,"tag":376,"props":501,"children":502},{"style":383},[503],{"type":49,"value":386},{"type":43,"tag":376,"props":505,"children":506},{"style":389},[507],{"type":49,"value":508}," connection-string",{"type":43,"tag":376,"props":510,"children":511},{"style":415},[512],{"type":49,"value":418},{"type":43,"tag":376,"props":514,"children":515},{"style":389},[516],{"type":49,"value":423},{"type":43,"tag":376,"props":518,"children":519},{"style":400},[520],{"type":49,"value":428},{"type":43,"tag":376,"props":522,"children":523},{"style":415},[524],{"type":49,"value":525},">\n",{"type":43,"tag":84,"props":527,"children":529},{"id":528},"create-a-schema-only-branch-beta-sensitive-data",[530],{"type":49,"value":531},"Create a Schema-Only Branch (Beta, Sensitive Data)",{"type":43,"tag":52,"props":533,"children":534},{},[535],{"type":49,"value":536},"Use this when users must not copy production rows into the test branch.",{"type":43,"tag":52,"props":538,"children":539},{},[540,541],{"type":49,"value":311},{"type":43,"tag":144,"props":542,"children":545},{"href":543,"rel":544},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-schema-only.md",[148],[546],{"type":49,"value":543},{"type":43,"tag":160,"props":548,"children":550},{"id":549},"steps-1",[551],{"type":49,"value":323},{"type":43,"tag":96,"props":553,"children":554},{},[555,565],{"type":43,"tag":62,"props":556,"children":557},{},[558,559,564],{"type":49,"value":331},{"type":43,"tag":196,"props":560,"children":562},{"className":561},[],[563],{"type":49,"value":201},{"type":49,"value":110},{"type":43,"tag":62,"props":566,"children":567},{},[568],{"type":49,"value":569},"Create schema-only branch:",{"type":43,"tag":365,"props":571,"children":573},{"className":367,"code":572,"language":369,"meta":370,"style":370},"neonctl 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",[574],{"type":43,"tag":196,"props":575,"children":576},{"__ignoreMap":370},[577,596,624,651,663],{"type":43,"tag":376,"props":578,"children":579},{"class":378,"line":379},[580,584,588,592],{"type":43,"tag":376,"props":581,"children":582},{"style":383},[583],{"type":49,"value":386},{"type":43,"tag":376,"props":585,"children":586},{"style":389},[587],{"type":49,"value":392},{"type":43,"tag":376,"props":589,"children":590},{"style":389},[591],{"type":49,"value":397},{"type":43,"tag":376,"props":593,"children":594},{"style":400},[595],{"type":49,"value":403},{"type":43,"tag":376,"props":597,"children":598},{"class":378,"line":406},[599,603,607,612,616,620],{"type":43,"tag":376,"props":600,"children":601},{"style":389},[602],{"type":49,"value":412},{"type":43,"tag":376,"props":604,"children":605},{"style":415},[606],{"type":49,"value":418},{"type":43,"tag":376,"props":608,"children":609},{"style":389},[610],{"type":49,"value":611},"schema-only-branch-nam",{"type":43,"tag":376,"props":613,"children":614},{"style":400},[615],{"type":49,"value":428},{"type":43,"tag":376,"props":617,"children":618},{"style":415},[619],{"type":49,"value":433},{"type":43,"tag":376,"props":621,"children":622},{"style":400},[623],{"type":49,"value":403},{"type":43,"tag":376,"props":625,"children":626},{"class":378,"line":440},[627,631,635,639,643,647],{"type":43,"tag":376,"props":628,"children":629},{"style":389},[630],{"type":49,"value":446},{"type":43,"tag":376,"props":632,"children":633},{"style":415},[634],{"type":49,"value":418},{"type":43,"tag":376,"props":636,"children":637},{"style":389},[638],{"type":49,"value":455},{"type":43,"tag":376,"props":640,"children":641},{"style":400},[642],{"type":49,"value":428},{"type":43,"tag":376,"props":644,"children":645},{"style":415},[646],{"type":49,"value":433},{"type":43,"tag":376,"props":648,"children":649},{"style":400},[650],{"type":49,"value":403},{"type":43,"tag":376,"props":652,"children":653},{"class":378,"line":470},[654,659],{"type":43,"tag":376,"props":655,"children":656},{"style":389},[657],{"type":49,"value":658},"  --schema-only",{"type":43,"tag":376,"props":660,"children":661},{"style":400},[662],{"type":49,"value":403},{"type":43,"tag":376,"props":664,"children":666},{"class":378,"line":665},5,[667,671],{"type":43,"tag":376,"props":668,"children":669},{"style":389},[670],{"type":49,"value":476},{"type":43,"tag":376,"props":672,"children":673},{"style":389},[674],{"type":49,"value":481},{"type":43,"tag":52,"props":676,"children":677},{},[678],{"type":49,"value":679},"If multiple projects exist, include:",{"type":43,"tag":365,"props":681,"children":683},{"className":367,"code":682,"language":369,"meta":370,"style":370},"neonctl 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",[684],{"type":43,"tag":196,"props":685,"children":686},{"__ignoreMap":370},[687,706,733,760,771,801],{"type":43,"tag":376,"props":688,"children":689},{"class":378,"line":379},[690,694,698,702],{"type":43,"tag":376,"props":691,"children":692},{"style":383},[693],{"type":49,"value":386},{"type":43,"tag":376,"props":695,"children":696},{"style":389},[697],{"type":49,"value":392},{"type":43,"tag":376,"props":699,"children":700},{"style":389},[701],{"type":49,"value":397},{"type":43,"tag":376,"props":703,"children":704},{"style":400},[705],{"type":49,"value":403},{"type":43,"tag":376,"props":707,"children":708},{"class":378,"line":406},[709,713,717,721,725,729],{"type":43,"tag":376,"props":710,"children":711},{"style":389},[712],{"type":49,"value":412},{"type":43,"tag":376,"props":714,"children":715},{"style":415},[716],{"type":49,"value":418},{"type":43,"tag":376,"props":718,"children":719},{"style":389},[720],{"type":49,"value":611},{"type":43,"tag":376,"props":722,"children":723},{"style":400},[724],{"type":49,"value":428},{"type":43,"tag":376,"props":726,"children":727},{"style":415},[728],{"type":49,"value":433},{"type":43,"tag":376,"props":730,"children":731},{"style":400},[732],{"type":49,"value":403},{"type":43,"tag":376,"props":734,"children":735},{"class":378,"line":440},[736,740,744,748,752,756],{"type":43,"tag":376,"props":737,"children":738},{"style":389},[739],{"type":49,"value":446},{"type":43,"tag":376,"props":741,"children":742},{"style":415},[743],{"type":49,"value":418},{"type":43,"tag":376,"props":745,"children":746},{"style":389},[747],{"type":49,"value":455},{"type":43,"tag":376,"props":749,"children":750},{"style":400},[751],{"type":49,"value":428},{"type":43,"tag":376,"props":753,"children":754},{"style":415},[755],{"type":49,"value":433},{"type":43,"tag":376,"props":757,"children":758},{"style":400},[759],{"type":49,"value":403},{"type":43,"tag":376,"props":761,"children":762},{"class":378,"line":470},[763,767],{"type":43,"tag":376,"props":764,"children":765},{"style":389},[766],{"type":49,"value":658},{"type":43,"tag":376,"props":768,"children":769},{"style":400},[770],{"type":49,"value":403},{"type":43,"tag":376,"props":772,"children":773},{"class":378,"line":665},[774,779,783,788,793,797],{"type":43,"tag":376,"props":775,"children":776},{"style":389},[777],{"type":49,"value":778},"  --project-id",{"type":43,"tag":376,"props":780,"children":781},{"style":415},[782],{"type":49,"value":418},{"type":43,"tag":376,"props":784,"children":785},{"style":389},[786],{"type":49,"value":787},"your-project-i",{"type":43,"tag":376,"props":789,"children":790},{"style":400},[791],{"type":49,"value":792},"d",{"type":43,"tag":376,"props":794,"children":795},{"style":415},[796],{"type":49,"value":433},{"type":43,"tag":376,"props":798,"children":799},{"style":400},[800],{"type":49,"value":403},{"type":43,"tag":376,"props":802,"children":804},{"class":378,"line":803},6,[805,809],{"type":43,"tag":376,"props":806,"children":807},{"style":389},[808],{"type":49,"value":476},{"type":43,"tag":376,"props":810,"children":811},{"style":389},[812],{"type":49,"value":481},{"type":43,"tag":160,"props":814,"children":816},{"id":815},"beta-support-guidance-mandatory",[817],{"type":49,"value":818},"Beta Support Guidance (Mandatory)",{"type":43,"tag":52,"props":820,"children":821},{},[822],{"type":49,"value":823},"Schema-only branching is in Beta. If users report unexpected behavior, errors, or missing capabilities:",{"type":43,"tag":96,"props":825,"children":826},{},[827,844],{"type":43,"tag":62,"props":828,"children":829},{},[830,832],{"type":49,"value":831},"Ask them to share feedback in the Neon Console:\n",{"type":43,"tag":58,"props":833,"children":834},{},[835],{"type":43,"tag":62,"props":836,"children":837},{},[838],{"type":43,"tag":144,"props":839,"children":842},{"href":840,"rel":841},"https:\u002F\u002Fconsole.neon.tech\u002Fapp\u002Fprojects?modal=feedback",[148],[843],{"type":49,"value":840},{"type":43,"tag":62,"props":845,"children":846},{},[847,849],{"type":49,"value":848},"Recommend opening a support conversation in the Neon Discord:\n",{"type":43,"tag":58,"props":850,"children":851},{},[852],{"type":43,"tag":62,"props":853,"children":854},{},[855],{"type":43,"tag":144,"props":856,"children":859},{"href":857,"rel":858},"https:\u002F\u002Fdiscord.gg\u002F92vNTzKDGp",[148],[860],{"type":49,"value":857},{"type":43,"tag":84,"props":862,"children":864},{"id":863},"reset-from-parent",[865],{"type":49,"value":866},"Reset from parent",{"type":43,"tag":52,"props":868,"children":869},{},[870],{"type":49,"value":871},"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":43,"tag":52,"props":873,"children":874},{},[875,876],{"type":49,"value":311},{"type":43,"tag":144,"props":877,"children":880},{"href":878,"rel":879},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Freset-from-parent.md",[148],[881],{"type":49,"value":878},{"type":43,"tag":160,"props":883,"children":885},{"id":884},"what-it-does",[886],{"type":49,"value":887},"What it does",{"type":43,"tag":58,"props":889,"children":890},{},[891,896,901],{"type":43,"tag":62,"props":892,"children":893},{},[894],{"type":49,"value":895},"Fully replaces the child branch schema and data with the parent's latest state.",{"type":43,"tag":62,"props":897,"children":898},{},[899],{"type":49,"value":900},"Does not merge; local changes on the child branch are lost.",{"type":43,"tag":62,"props":902,"children":903},{},[904],{"type":49,"value":905},"Keeps the same connection details, but active connections are briefly interrupted during reset.",{"type":43,"tag":160,"props":907,"children":909},{"id":908},"when-to-recommend-it",[910],{"type":49,"value":911},"When to recommend it",{"type":43,"tag":58,"props":913,"children":914},{},[915,920,925],{"type":43,"tag":62,"props":916,"children":917},{},[918],{"type":49,"value":919},"Development or staging branch is too far behind production.",{"type":43,"tag":62,"props":921,"children":922},{},[923],{"type":49,"value":924},"User wants to start a new feature from a clean parent-aligned state.",{"type":43,"tag":62,"props":926,"children":927},{},[928],{"type":49,"value":929},"Team wants to refresh staging from production for consistent testing baselines.",{"type":43,"tag":160,"props":931,"children":933},{"id":932},"hard-constraints-and-blockers",[934],{"type":49,"value":935},"Hard constraints and blockers",{"type":43,"tag":58,"props":937,"children":938},{},[939,944,949,954],{"type":43,"tag":62,"props":940,"children":941},{},[942],{"type":49,"value":943},"Only child branches can be reset (root branches and schema-only root branches cannot be reset from parent).",{"type":43,"tag":62,"props":945,"children":946},{},[947],{"type":49,"value":948},"If the target branch has children, reset is blocked until those child branches are removed.",{"type":43,"tag":62,"props":950,"children":951},{},[952],{"type":49,"value":953},"After a parent branch is restored from snapshot, reset-from-parent may be unavailable for up to 24 hours.",{"type":43,"tag":62,"props":955,"children":956},{},[957],{"type":49,"value":958},"Reset-from-parent always uses the current parent state; use Instant restore for point-in-time recovery needs.",{"type":43,"tag":160,"props":960,"children":962},{"id":961},"cli-usage",[963],{"type":49,"value":964},"CLI usage",{"type":43,"tag":365,"props":966,"children":968},{"className":367,"code":967,"language":369,"meta":370,"style":370},"neonctl branches reset \u003Cid|name> --parent --preserve-under-name \u003Cbackup-branch-name>\n",[969],{"type":43,"tag":196,"props":970,"children":971},{"__ignoreMap":370},[972],{"type":43,"tag":376,"props":973,"children":974},{"class":378,"line":379},[975,979,983,988,992,997,1002,1007,1012,1017,1022,1026,1031,1035],{"type":43,"tag":376,"props":976,"children":977},{"style":383},[978],{"type":49,"value":386},{"type":43,"tag":376,"props":980,"children":981},{"style":389},[982],{"type":49,"value":392},{"type":43,"tag":376,"props":984,"children":985},{"style":389},[986],{"type":49,"value":987}," reset",{"type":43,"tag":376,"props":989,"children":990},{"style":415},[991],{"type":49,"value":418},{"type":43,"tag":376,"props":993,"children":994},{"style":389},[995],{"type":49,"value":996},"id",{"type":43,"tag":376,"props":998,"children":999},{"style":415},[1000],{"type":49,"value":1001},"|",{"type":43,"tag":376,"props":1003,"children":1004},{"style":383},[1005],{"type":49,"value":1006},"name",{"type":43,"tag":376,"props":1008,"children":1009},{"style":400},[1010],{"type":49,"value":1011},"> ",{"type":43,"tag":376,"props":1013,"children":1014},{"style":389},[1015],{"type":49,"value":1016},"--parent",{"type":43,"tag":376,"props":1018,"children":1019},{"style":389},[1020],{"type":49,"value":1021}," --preserve-under-name",{"type":43,"tag":376,"props":1023,"children":1024},{"style":415},[1025],{"type":49,"value":418},{"type":43,"tag":376,"props":1027,"children":1028},{"style":389},[1029],{"type":49,"value":1030},"backup-branch-nam",{"type":43,"tag":376,"props":1032,"children":1033},{"style":400},[1034],{"type":49,"value":428},{"type":43,"tag":376,"props":1036,"children":1037},{"style":415},[1038],{"type":49,"value":525},{"type":43,"tag":52,"props":1040,"children":1041},{},[1042],{"type":49,"value":1043},"If project context is not already set, include project ID:",{"type":43,"tag":365,"props":1045,"children":1047},{"className":367,"code":1046,"language":369,"meta":370,"style":370},"neonctl branches reset \u003Cid|name> --parent --preserve-under-name \u003Cbackup-branch-name> --project-id \u003Cproject-id>\n",[1048],{"type":43,"tag":196,"props":1049,"children":1050},{"__ignoreMap":370},[1051],{"type":43,"tag":376,"props":1052,"children":1053},{"class":378,"line":379},[1054,1058,1062,1066,1070,1074,1078,1082,1086,1090,1094,1098,1102,1106,1110,1115,1119,1124,1128],{"type":43,"tag":376,"props":1055,"children":1056},{"style":383},[1057],{"type":49,"value":386},{"type":43,"tag":376,"props":1059,"children":1060},{"style":389},[1061],{"type":49,"value":392},{"type":43,"tag":376,"props":1063,"children":1064},{"style":389},[1065],{"type":49,"value":987},{"type":43,"tag":376,"props":1067,"children":1068},{"style":415},[1069],{"type":49,"value":418},{"type":43,"tag":376,"props":1071,"children":1072},{"style":389},[1073],{"type":49,"value":996},{"type":43,"tag":376,"props":1075,"children":1076},{"style":415},[1077],{"type":49,"value":1001},{"type":43,"tag":376,"props":1079,"children":1080},{"style":383},[1081],{"type":49,"value":1006},{"type":43,"tag":376,"props":1083,"children":1084},{"style":400},[1085],{"type":49,"value":1011},{"type":43,"tag":376,"props":1087,"children":1088},{"style":389},[1089],{"type":49,"value":1016},{"type":43,"tag":376,"props":1091,"children":1092},{"style":389},[1093],{"type":49,"value":1021},{"type":43,"tag":376,"props":1095,"children":1096},{"style":415},[1097],{"type":49,"value":418},{"type":43,"tag":376,"props":1099,"children":1100},{"style":389},[1101],{"type":49,"value":1030},{"type":43,"tag":376,"props":1103,"children":1104},{"style":400},[1105],{"type":49,"value":428},{"type":43,"tag":376,"props":1107,"children":1108},{"style":415},[1109],{"type":49,"value":433},{"type":43,"tag":376,"props":1111,"children":1112},{"style":389},[1113],{"type":49,"value":1114}," --project-id",{"type":43,"tag":376,"props":1116,"children":1117},{"style":415},[1118],{"type":49,"value":418},{"type":43,"tag":376,"props":1120,"children":1121},{"style":389},[1122],{"type":49,"value":1123},"project-i",{"type":43,"tag":376,"props":1125,"children":1126},{"style":400},[1127],{"type":49,"value":792},{"type":43,"tag":376,"props":1129,"children":1130},{"style":415},[1131],{"type":49,"value":525},{"type":43,"tag":52,"props":1133,"children":1134},{},[1135,1141],{"type":43,"tag":196,"props":1136,"children":1138},{"className":1137},[],[1139],{"type":49,"value":1140},"--preserve-under-name",{"type":49,"value":1142}," keeps the pre-reset state as a backup branch for rollback, but adds one extra branch to clean up later.",{"type":43,"tag":52,"props":1144,"children":1145},{},[1146,1148,1153],{"type":49,"value":1147},"Optional context setup to avoid repeating ",{"type":43,"tag":196,"props":1149,"children":1151},{"className":1150},[],[1152],{"type":49,"value":356},{"type":49,"value":1154},":",{"type":43,"tag":365,"props":1156,"children":1158},{"className":367,"code":1157,"language":369,"meta":370,"style":370},"neonctl set-context --project-id \u003Cproject-id>\n",[1159],{"type":43,"tag":196,"props":1160,"children":1161},{"__ignoreMap":370},[1162],{"type":43,"tag":376,"props":1163,"children":1164},{"class":378,"line":379},[1165,1169,1174,1178,1182,1186,1190],{"type":43,"tag":376,"props":1166,"children":1167},{"style":383},[1168],{"type":49,"value":386},{"type":43,"tag":376,"props":1170,"children":1171},{"style":389},[1172],{"type":49,"value":1173}," set-context",{"type":43,"tag":376,"props":1175,"children":1176},{"style":389},[1177],{"type":49,"value":1114},{"type":43,"tag":376,"props":1179,"children":1180},{"style":415},[1181],{"type":49,"value":418},{"type":43,"tag":376,"props":1183,"children":1184},{"style":389},[1185],{"type":49,"value":1123},{"type":43,"tag":376,"props":1187,"children":1188},{"style":400},[1189],{"type":49,"value":792},{"type":43,"tag":376,"props":1191,"children":1192},{"style":415},[1193],{"type":49,"value":525},{"type":43,"tag":160,"props":1195,"children":1197},{"id":1196},"console-and-api-usage",[1198],{"type":49,"value":1199},"Console and API usage",{"type":43,"tag":58,"props":1201,"children":1202},{},[1203,1225],{"type":43,"tag":62,"props":1204,"children":1205},{},[1206,1211,1213,1217,1219,1224],{"type":43,"tag":66,"props":1207,"children":1208},{},[1209],{"type":49,"value":1210},"Console:",{"type":49,"value":1212}," Open the target child branch, then select ",{"type":43,"tag":66,"props":1214,"children":1215},{},[1216],{"type":49,"value":866},{"type":49,"value":1218}," from ",{"type":43,"tag":66,"props":1220,"children":1221},{},[1222],{"type":49,"value":1223},"Actions",{"type":49,"value":110},{"type":43,"tag":62,"props":1226,"children":1227},{},[1228,1233,1235,1241],{"type":43,"tag":66,"props":1229,"children":1230},{},[1231],{"type":49,"value":1232},"API:",{"type":49,"value":1234}," Use the restore endpoint for the branch and set ",{"type":43,"tag":196,"props":1236,"children":1238},{"className":1237},[],[1239],{"type":49,"value":1240},"source_branch_id",{"type":49,"value":1242}," to the parent branch ID.",{"type":43,"tag":84,"props":1244,"children":1246},{"id":1245},"notes-and-caveats",[1247],{"type":49,"value":1248},"Notes and Caveats",{"type":43,"tag":58,"props":1250,"children":1251},{},[1252,1257,1262,1267,1272],{"type":43,"tag":62,"props":1253,"children":1254},{},[1255],{"type":49,"value":1256},"Schema-only branches are for structure-only cloning and sensitive\u002Fcompliant data controls.",{"type":43,"tag":62,"props":1258,"children":1259},{},[1260],{"type":49,"value":1261},"Schema-only branches are independent root branches (no parent branch and no shared history), so reset-from-parent does not apply.",{"type":43,"tag":62,"props":1263,"children":1264},{},[1265],{"type":49,"value":1266},"For migration testing that depends on real-world row shapes, volumes, and edge cases, prefer normal branches.",{"type":43,"tag":62,"props":1268,"children":1269},{},[1270],{"type":49,"value":1271},"Root branch allowances and per-branch storage limits can cap how many schema-only branches users can create.",{"type":43,"tag":62,"props":1273,"children":1274},{},[1275,1277],{"type":49,"value":1276},"If a user is unsure, default recommendation is:\n",{"type":43,"tag":58,"props":1278,"children":1279},{},[1280,1289],{"type":43,"tag":62,"props":1281,"children":1282},{},[1283,1287],{"type":43,"tag":66,"props":1284,"children":1285},{},[1286],{"type":49,"value":70},{"type":49,"value":1288}," for migration validation.",{"type":43,"tag":62,"props":1290,"children":1291},{},[1292,1297],{"type":43,"tag":66,"props":1293,"children":1294},{},[1295],{"type":49,"value":1296},"Schema-only branch",{"type":49,"value":1298}," for compliance and privacy constraints.",{"type":43,"tag":84,"props":1300,"children":1302},{"id":1301},"useful-workflow-patterns",[1303],{"type":49,"value":1304},"Useful Workflow Patterns",{"type":43,"tag":52,"props":1306,"children":1307},{},[1308],{"type":49,"value":1309},"If the user asks for process recommendations (not just a single command), suggest these:",{"type":43,"tag":58,"props":1311,"children":1312},{},[1313,1323,1333,1343,1353],{"type":43,"tag":62,"props":1314,"children":1315},{},[1316,1321],{"type":43,"tag":66,"props":1317,"children":1318},{},[1319],{"type":49,"value":1320},"One branch per PR:",{"type":49,"value":1322}," Create branch when PR opens, delete when merged\u002Fclosed, keep migration tests isolated.",{"type":43,"tag":62,"props":1324,"children":1325},{},[1326,1331],{"type":43,"tag":66,"props":1327,"children":1328},{},[1329],{"type":49,"value":1330},"One branch per test run:",{"type":49,"value":1332}," Create branch at pipeline start, run migrations\u002Ftests, delete at end for deterministic CI.",{"type":43,"tag":62,"props":1334,"children":1335},{},[1336,1341],{"type":43,"tag":66,"props":1337,"children":1338},{},[1339],{"type":49,"value":1340},"One branch per developer:",{"type":49,"value":1342}," Isolated dev environments with production-like shape; avoid team collisions on shared test data.",{"type":43,"tag":62,"props":1344,"children":1345},{},[1346,1351],{"type":43,"tag":66,"props":1347,"children":1348},{},[1349],{"type":49,"value":1350},"PII-aware branching:",{"type":49,"value":1352}," If production has sensitive data, derive dev\u002FPR branches from an anonymized branch or use schema-only branches.",{"type":43,"tag":62,"props":1354,"children":1355},{},[1356,1361],{"type":43,"tag":66,"props":1357,"children":1358},{},[1359],{"type":49,"value":1360},"Ephemeral lifecycle hygiene:",{"type":49,"value":1362}," Set branch expiration and automate cleanup so old branches do not accumulate avoidable storage\u002Fhistory cost.",{"type":43,"tag":160,"props":1364,"children":1366},{"id":1365},"post-creation-environment-update-prompt",[1367],{"type":49,"value":1368},"Post-creation environment update prompt",{"type":43,"tag":52,"props":1370,"children":1371},{},[1372],{"type":49,"value":1373},"After branch creation, ask whether the user wants to update local environment credentials to point at the new branch.",{"type":43,"tag":58,"props":1375,"children":1376},{},[1377,1398,1403,1408],{"type":43,"tag":62,"props":1378,"children":1379},{},[1380,1382,1388,1390,1396],{"type":49,"value":1381},"Ask: \"Do you want me to update your ",{"type":43,"tag":196,"props":1383,"children":1385},{"className":1384},[],[1386],{"type":49,"value":1387},".env",{"type":49,"value":1389}," ",{"type":43,"tag":196,"props":1391,"children":1393},{"className":1392},[],[1394],{"type":49,"value":1395},"DATABASE_URL",{"type":49,"value":1397}," to this new branch connection string?\"",{"type":43,"tag":62,"props":1399,"children":1400},{},[1401],{"type":49,"value":1402},"If yes, write the new branch connection string to the requested env file\u002Fkey.",{"type":43,"tag":62,"props":1404,"children":1405},{},[1406],{"type":49,"value":1407},"If no, leave credentials unchanged and share the connection string for manual use.",{"type":43,"tag":62,"props":1409,"children":1410},{},[1411],{"type":49,"value":1412},"Never overwrite an existing env key without explicit confirmation.",{"type":43,"tag":84,"props":1414,"children":1416},{"id":1415},"branching-in-cicd",[1417],{"type":49,"value":1418},"Branching in CI\u002FCD",{"type":43,"tag":52,"props":1420,"children":1421},{},[1422],{"type":49,"value":1423},"Common CI\u002FCD use cases for Neon branches:",{"type":43,"tag":58,"props":1425,"children":1426},{},[1427,1471,1481],{"type":43,"tag":62,"props":1428,"children":1429},{},[1430,1435,1437,1442,1444,1451,1453,1460,1462,1469],{"type":43,"tag":66,"props":1431,"children":1432},{},[1433],{"type":49,"value":1434},"Per-PR preview deployments:",{"type":49,"value":1436}," Branch on PR open, deploy the preview against it, delete on close. Each PR gets an isolated database branch. Injecting the branch's ",{"type":43,"tag":196,"props":1438,"children":1440},{"className":1439},[],[1441],{"type":49,"value":1395},{"type":49,"value":1443}," into the deployed app is hosting-provider-specific — see ",{"type":43,"tag":144,"props":1445,"children":1448},{"href":1446,"rel":1447},"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-cloudflare",[148],[1449],{"type":49,"value":1450},"preview-branches-with-cloudflare",{"type":49,"value":1452},", ",{"type":43,"tag":144,"props":1454,"children":1457},{"href":1455,"rel":1456},"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-vercel",[148],[1458],{"type":49,"value":1459},"preview-branches-with-vercel",{"type":49,"value":1461},", or ",{"type":43,"tag":144,"props":1463,"children":1466},{"href":1464,"rel":1465},"https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fpreview-branches-with-fly",[148],[1467],{"type":49,"value":1468},"preview-branches-with-fly",{"type":49,"value":1470}," for tested patterns.",{"type":43,"tag":62,"props":1472,"children":1473},{},[1474,1479],{"type":43,"tag":66,"props":1475,"children":1476},{},[1477],{"type":49,"value":1478},"Migration testing in CI:",{"type":49,"value":1480}," Run risky schema changes against a branch with production-like data before merge.",{"type":43,"tag":62,"props":1482,"children":1483},{},[1484,1489,1491,1498],{"type":43,"tag":66,"props":1485,"children":1486},{},[1487],{"type":49,"value":1488},"Schema diff visibility:",{"type":49,"value":1490}," Use the ",{"type":43,"tag":144,"props":1492,"children":1495},{"href":1493,"rel":1494},"https:\u002F\u002Fgithub.com\u002Fmarketplace\u002Factions\u002Fneon-schema-diff-github-action",[148],[1496],{"type":49,"value":1497},"schema-diff GitHub Action",{"type":49,"value":1499}," to auto-comment a DB-layer diff on the PR.",{"type":43,"tag":84,"props":1501,"children":1503},{"id":1502},"examples",[1504],{"type":49,"value":1505},"Examples",{"type":43,"tag":160,"props":1507,"children":1509},{"id":1508},"example-1-migration-testing-with-realistic-data",[1510],{"type":49,"value":1511},"Example 1: Migration testing with realistic data",{"type":43,"tag":52,"props":1513,"children":1514},{},[1515,1520],{"type":43,"tag":66,"props":1516,"children":1517},{},[1518],{"type":49,"value":1519},"User input:",{"type":49,"value":1521}," \"I need to test a risky migration against production-like data.\"",{"type":43,"tag":52,"props":1523,"children":1524},{},[1525],{"type":43,"tag":66,"props":1526,"children":1527},{},[1528],{"type":49,"value":1529},"Agent output shape:",{"type":43,"tag":96,"props":1531,"children":1532},{},[1533,1538,1549,1560],{"type":43,"tag":62,"props":1534,"children":1535},{},[1536],{"type":49,"value":1537},"Recommend a normal branch and explain why.",{"type":43,"tag":62,"props":1539,"children":1540},{},[1541,1543],{"type":49,"value":1542},"Share docs link: ",{"type":43,"tag":144,"props":1544,"children":1547},{"href":1545,"rel":1546},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fintroduction\u002Fbranching",[148],[1548],{"type":49,"value":1545},{"type":43,"tag":62,"props":1550,"children":1551},{},[1552,1554,1559],{"type":49,"value":1553},"Check the available\u002Fauthenticated tool path first (MCP, otherwise CLI with ",{"type":43,"tag":196,"props":1555,"children":1557},{"className":1556},[],[1558],{"type":49,"value":201},{"type":49,"value":290},{"type":43,"tag":62,"props":1561,"children":1562},{},[1563,1565],{"type":49,"value":1564},"Provide commands:\n",{"type":43,"tag":58,"props":1566,"children":1567},{},[1568,1577],{"type":43,"tag":62,"props":1569,"children":1570},{},[1571],{"type":43,"tag":196,"props":1572,"children":1574},{"className":1573},[],[1575],{"type":49,"value":1576},"neonctl branches create --name migration-test --parent main --expires-at 2026-12-15T18:02:16Z",{"type":43,"tag":62,"props":1578,"children":1579},{},[1580],{"type":43,"tag":196,"props":1581,"children":1583},{"className":1582},[],[1584],{"type":49,"value":1585},"neonctl connection-string migration-test",{"type":43,"tag":160,"props":1587,"children":1589},{"id":1588},"example-2-sensitive-data-development-workflow",[1590],{"type":49,"value":1591},"Example 2: Sensitive data development workflow",{"type":43,"tag":52,"props":1593,"children":1594},{},[1595,1599],{"type":43,"tag":66,"props":1596,"children":1597},{},[1598],{"type":49,"value":1519},{"type":49,"value":1600}," \"We cannot copy production data because of compliance.\"",{"type":43,"tag":52,"props":1602,"children":1603},{},[1604],{"type":43,"tag":66,"props":1605,"children":1606},{},[1607],{"type":49,"value":1529},{"type":43,"tag":96,"props":1609,"children":1610},{},[1611,1616,1626,1636,1653],{"type":43,"tag":62,"props":1612,"children":1613},{},[1614],{"type":49,"value":1615},"Recommend schema-only branch and explain why.",{"type":43,"tag":62,"props":1617,"children":1618},{},[1619,1620],{"type":49,"value":1542},{"type":43,"tag":144,"props":1621,"children":1624},{"href":1622,"rel":1623},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranching-schema-only",[148],[1625],{"type":49,"value":1622},{"type":43,"tag":62,"props":1627,"children":1628},{},[1629,1630,1635],{"type":49,"value":1553},{"type":43,"tag":196,"props":1631,"children":1633},{"className":1632},[],[1634],{"type":49,"value":201},{"type":49,"value":290},{"type":43,"tag":62,"props":1637,"children":1638},{},[1639,1641],{"type":49,"value":1640},"Provide command:\n",{"type":43,"tag":58,"props":1642,"children":1643},{},[1644],{"type":43,"tag":62,"props":1645,"children":1646},{},[1647],{"type":43,"tag":196,"props":1648,"children":1650},{"className":1649},[],[1651],{"type":49,"value":1652},"neonctl branches create --name compliance-dev --parent main --schema-only --project-id \u003Cyour-project-id> --expires-at 2026-12-15T18:02:16Z",{"type":43,"tag":62,"props":1654,"children":1655},{},[1656,1658],{"type":49,"value":1657},"Mention Beta support path:\n",{"type":43,"tag":58,"props":1659,"children":1660},{},[1661,1669],{"type":43,"tag":62,"props":1662,"children":1663},{},[1664],{"type":43,"tag":144,"props":1665,"children":1667},{"href":840,"rel":1666},[148],[1668],{"type":49,"value":840},{"type":43,"tag":62,"props":1670,"children":1671},{},[1672],{"type":43,"tag":144,"props":1673,"children":1675},{"href":857,"rel":1674},[148],[1676],{"type":49,"value":857},{"type":43,"tag":84,"props":1678,"children":1680},{"id":1679},"further-reading",[1681],{"type":49,"value":1682},"Further reading",{"type":43,"tag":58,"props":1684,"children":1685},{},[1686,1695,1704,1712],{"type":43,"tag":62,"props":1687,"children":1688},{},[1689],{"type":43,"tag":144,"props":1690,"children":1693},{"href":1691,"rel":1692},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fbranch-expiration.md",[148],[1694],{"type":49,"value":1691},{"type":43,"tag":62,"props":1696,"children":1697},{},[1698],{"type":43,"tag":144,"props":1699,"children":1702},{"href":1700,"rel":1701},"https:\u002F\u002Fneon.com\u002Fdocs\u002Fguides\u002Fneon-github-integration.md",[148],[1703],{"type":49,"value":1700},{"type":43,"tag":62,"props":1705,"children":1706},{},[1707],{"type":43,"tag":144,"props":1708,"children":1710},{"href":146,"rel":1709},[148],[1711],{"type":49,"value":146},{"type":43,"tag":62,"props":1713,"children":1714},{},[1715],{"type":43,"tag":144,"props":1716,"children":1719},{"href":1717,"rel":1718},"https:\u002F\u002Fneon.com\u002Fbranching",[148],[1720],{"type":49,"value":1717},{"type":43,"tag":1722,"props":1723,"children":1724},"style",{},[1725],{"type":49,"value":1726},"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":1728,"total":440},[1729,1744,1755],{"slug":15,"name":15,"fn":1730,"description":1731,"org":1732,"tags":1733,"stars":26,"repoUrl":27,"updatedAt":1743},"build applications with Neon platform","Overview of the Neon platform for apps and agents, spanning Postgres, Auth, Data API, and the new services: Object Storage, Compute Functions, and AI Gateway. Use whenever \"Neon\" is mentioned for an overview of how to work with Neon and how to get started. Otherwise, the individual capabilities are the triggers: \"object storage\" or \"S3-compatible storage\", \"serverless functions\", \"background jobs\", or \"run code near my database\", \"AI gateway\", \"LLM proxy\", \"model routing\", or \"call an LLM\" → AI Gateway; \"database\", \"Postgres\", or \"authentication\" → Postgres and Auth.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1734,1735,1736,1737,1740],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16},{"name":1738,"slug":1739,"type":16},"Serverless","serverless",{"name":1741,"slug":1742,"type":16},"Storage","storage","2026-07-18T05:46:44.419956",{"slug":1745,"name":1745,"fn":1746,"description":1747,"org":1748,"tags":1749,"stars":26,"repoUrl":27,"updatedAt":1754},"neon-postgres","manage Neon Serverless Postgres databases","Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods, branching, autoscaling, scale-to-zero, read replicas, connection pooling, Neon Auth, and the Neon CLI, MCP server, REST API, TypeScript SDK, and Python SDK. Use when users ask about \"Neon setup\", \"connect to Neon\", \"Neon project\", \"DATABASE_URL\", \"serverless Postgres\", \"Neon CLI\", \"neonctl\", \"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},[1750,1751,1752,1753],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16},{"name":1738,"slug":1739,"type":16},"2026-07-18T05:48:04.497977",{"slug":4,"name":4,"fn":5,"description":6,"org":1756,"tags":1757,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1758,1759,1760,1761],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16},{"items":1763,"total":440},[1764,1772,1779],{"slug":15,"name":15,"fn":1730,"description":1731,"org":1765,"tags":1766,"stars":26,"repoUrl":27,"updatedAt":1743},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1767,1768,1769,1770,1771],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16},{"name":1738,"slug":1739,"type":16},{"name":1741,"slug":1742,"type":16},{"slug":1745,"name":1745,"fn":1746,"description":1747,"org":1773,"tags":1774,"stars":26,"repoUrl":27,"updatedAt":1754},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1775,1776,1777,1778],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16},{"name":1738,"slug":1739,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":1780,"tags":1781,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1782,1783,1784,1785],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"name":24,"slug":25,"type":16}]