---
title: "Just landed in the Neon CLI"
description: "The Neon CLI is renamed from neonctl to neon (old name kept as an alias) and gains a branch-first workflow built on `neon link`, `neon checkout` and `neon env pull`, which store project/branch context in a local .neon file and rewrite only Neon-managed env vars."
url: "https://swe.quest/articles/just-landed-in-the-neon-cli-10a12bf3c6b45d1f"
canonical: "https://neon.com/blog/just-landed-in-the-neon-cli"
source: "Neon"
published: "2026-08-25"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["developer-tools","postgres","ai-agents","schema-migrations"]
---

# Just landed in the Neon CLI

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-08-25, 6 min read, Release. Original: [https://neon.com/blog/just-landed-in-the-neon-cli](https://neon.com/blog/just-landed-in-the-neon-cli)

## Summary

The Neon CLI is renamed from neonctl to neon (old name kept as an alias) and gains a branch-first workflow built on \`neon link\`, \`neon checkout\` and \`neon env pull\`, which store project/branch context in a local .neon file and rewrite only Neon-managed env vars. New commands include \`neon inspect db\` for read-only Postgres diagnostics (bloat, unused indexes, locks, pg\_stat\_statements outliers, cache hit rate), \`neon diff\` for git-style schema diffs, snapshots, project-scoped API keys and credential profiles for CI and agents, and a raw \`neon api\` fallback. \`neon init\` sets up MCP and agent skills in one step, and a suggested AGENTS.md snippet steers coding agents toward the branch-per-feature loop.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- command-line tools

## Keywords

Neon CLI, Neon, MCP, pg\_stat\_statements, Better Auth, AGENTS.md

## Related posts

- [A branch-first dev loop for Neon: link, checkout and env pull](https://swe.quest/articles/a-branch-first-dev-loop-for-neon-link-checkout-and-env-pull-3d4b71e97977636f.md): Neon · 2026-06-10 · Medium · 6 min read · Developer tools, PostgreSQL, AI for coding, Serverless
  Neon's CLI adds three commands for branch-first Postgres development. \`neon link\` binds a workspace to a project and branch via a git-ignored \`.neon\` file. \`neon checkout\` creates or switches database branches, much like \`git checkout -b\`. \`neon env pull\` writes only the Neon-managed connection strings and service secrets for the current branch into \`.env\`.
- [Behind Modem.dev’s Product Velocity](https://swe.quest/articles/behind-modem-dev-s-product-velocity-485adbdf853a0161.md): Neon · 2026-01-29 · Medium · 4 min read · PostgreSQL, Schema migrations, CI/CD, Developer productivity
  Modem, a startup building an AI agent that centralizes user feedback from Slack, Discord and GitHub, uses Neon Postgres branching as its development workflow.
- [Branching Postgres databases with the Neon API](https://swe.quest/articles/branching-postgres-databases-with-the-neon-api-3faf0de941bc811a.md): Neon · 2022-12-07 · Medium · 3 min read · PostgreSQL, CI/CD, Testing
  Neon branches are copy-on-write clones of a Postgres database that can be created and deleted through the Neon API, giving CI pipelines an isolated copy of production data for end-to-end tests.
- [Neon for Agent Platforms: A Companion Skill for the AI Agent Program](https://swe.quest/articles/neon-for-agent-platforms-a-companion-skill-for-the-ai-agent-program-6b42423040c5c41e.md): Neon · 2026-05-22 · Medium · 3 min read · PostgreSQL, Multi-tenancy, AI agents, Cloud platforms
  neon-for-agent-platforms is an open-source companion Agent Skill and set of TypeScript scripts for running fleets of Neon Postgres databases on agent platforms.
- [Automating Neon branch creation with Githooks](https://swe.quest/articles/automating-neon-branch-creation-with-githooks-465e18efc9f92ca6.md): Neon · 2023-05-25 · Medium · 8 min read · Version control, PostgreSQL, Developer productivity
  A Git post-checkout hook can create a Neon database branch for each new Git branch, giving every feature branch an isolated copy of the main Postgres database without a local install or seed scripts.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
