Skip to content

docs: rework neon init for the 4.11.0 orchestrator behavior - #5663

Merged
philip merged 5 commits into
mainfrom
docs/cli-init-neon-4.10.0
Aug 28, 2026
Merged

docs: rework neon init for the 4.11.0 orchestrator behavior#5663
philip merged 5 commits into
mainfrom
docs/cli-init-neon-4.10.0

Conversation

@philip

@philip philip commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Overview

Neon CLI 4.11.0 reworked what neon init does. It's no longer a standalone setup product that installs the CLI, creates an API key, and configures MCP per editor. It's now a thin orchestrator: in an empty directory it scaffolds a starter template, and in an existing app it installs agent tooling (a plugin, or agent skills and the MCP server), links a Neon project, and writes a neon.ts config. It runs interactively by default; pass --agent to name the coding agents and -y to skip the prompts, so agents and CI can run it unattended. Selecting a specific project without a terminal still uses neon link --project-id, since init has no project selector of its own.

This updates the docs to match:

  • Rewrites the neon init reference and fixes bootstrap.md, which described the old post-scaffold flow.
  • Documents --agent on neon init and neon bootstrap (repeatable, names the coding agents to set up), the -y agent-detection order, and that init is project-scoped. Drops stale claims that init installs the CLI, creates an API key, or installs an editor extension.
  • Reworks the getting-started and MCP pages and the Functions guides to the current flow, installing the specific skills each guide needs with neon skills -s ....
  • Fixes the docs that said neon link always writes .env.local (it writes to an existing .env if you have one, otherwise .env.local), refreshes the bootstrap template list, and attributes "Get started with Neon" to the Neon MCP server.
  • Switches neon skills update examples to --yes (its -y alias isn't recognized), removes the retired claimable-postgres skill, and documents --no-secrets on neon projects create and neon branches create.
  • Regenerates schema.json to 4.11.0. The bump also surfaces neon api --describe, which now renders in its reference table.

A changelog entry and a couple of upstream agent-skills fixes are tracked separately as follow-ups.

Testing: npm run cli-docs -- check passes (48/48); verified the commands and interactive vs non-interactive behavior against the released 4.11.0 CLI.

This pull request and its description were written by Isaac.

Neon CLI 4.10.0 turned neon init from a standalone setup command into a thin wrapper: an
empty directory scaffolds a template, and an existing app gets agent tooling (a plugin, or
skills and the MCP server), a linked project, and a neon.ts config. It runs interactively,
so agents and CI use the underlying commands instead.

This brings the docs in line: rewrites the neon init reference, fixes the examples that used
the removed --preview and --agent flags, updates the getting-started and MCP pages and the
Functions guides, refreshes the bootstrap template list, corrects where env vars land
(.env or .env.local), and regenerates schema.json to 4.10.0.

Co-authored-by: Isaac <no-reply@databricks.com>
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
neon-next Ready Ready Preview Aug 28, 2026 7:50pm

Request Review

`neon projects create` and `neon branches create` accept `--no-secrets` (Neon CLI 4.9.0+) to
keep the connection string out of output and logs. Documented on the reference pages and the
CI and test-on-branch guides that run these commands.

Co-authored-by: Isaac <no-reply@databricks.com>
Neon CLI 4.11.0 re-adds --agent (repeatable, names the coding agents to set up) on neon init
and neon bootstrap, and -y now detects the host CLI agent when no project folder matches.
Document --agent and the -y detection order on the init reference, note that init is
project-scoped, and reframe the non-interactive section around neon init -y --agent. Switch
neon skills update examples to --yes (the -y alias isn't recognized there), drop the removed
claimable-postgres skill, and regenerate schema.json to 4.11.0 with an override so
skills update --yes renders as boolean.

Co-authored-by: Isaac <no-reply@databricks.com>
@philip philip changed the title docs: rework neon init for its 4.10.0 redesign docs: rework neon init for the 4.11.0 orchestrator behavior Aug 28, 2026
philip and others added 2 commits August 28, 2026 12:46
The neon skills update `yes` flag inherits its alias and boolean type from the parent
skills command; the static schema parser reads each builder in isolation and misses that,
so the override supplies the type. Note that it's removable once the generator models
parent-option inheritance.

Co-authored-by: Isaac <no-reply@databricks.com>
Both -y and --yes work (the -y alias is inherited from the parent skills command), so use
-y to match the neon skills examples above and the CLI's own help. The schema parser reads
each builder in isolation and misses that inherited alias, so an overrides.json entry
restores it until the generator models parent-option inheritance.

Co-authored-by: Isaac <no-reply@databricks.com>
@philip
philip merged commit df9032f into main Aug 28, 2026
4 of 5 checks passed
@philip
philip deleted the docs/cli-init-neon-4.10.0 branch August 28, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant