netlify-database

Provision and manage Netlify Postgres databases with automatic migrations.

32|7|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/netlify/context-and-tools --skill netlify-database-netlify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netlify-database
Source: https://github.com/netlify/context-and-tools/tree/main/codex/skills/netlify-database
Command: npx skills add https://github.com/netlify/context-and-tools --skill netlify-database-netlify

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Netlify Database provides a managed Postgres database baked into Netlify, eliminating the need for external Neon accounts, manual provisioning, or drift between environments. It offers per-deploy preview databases and automatic migrations to keep schema and data in sync across production, preview, and development.

Core Features & Use Cases

  • GA-provisioned Postgres that auto-creates a database for each site and a separate preview branch database for every deploy.
  • Drizzle ORM integration with a clear migration workflow, guidance for local development, and production-safe deployment.
  • Full local development support via the Netlify CLI and consistent migration-based changes across environments.

Quick Start

Install the Netlify Database package and run netlify database init to provision a baseline database and scaffold migrations.

Frequently Asked Questions about netlify-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I provision a managed Postgres database on Netlify for my application?

You can provision a managed Postgres database on Netlify by installing the Netlify Database package and running netlify database init, which creates a baseline database and scaffolds migrations.

Does Netlify Database provide a separate preview database for each deploy?

Yes, Netlify Database automatically creates a separate preview branch database for every deploy, keeping schema and data in sync across production, preview, and development without drift.

How do I run database migrations locally using the Netlify CLI?

You can run database migrations locally using the Netlify CLI, which provides full local development support and ensures consistent migration-based schema changes across all environments.

Can I use Drizzle ORM with Netlify Database for schema management?

Yes, Drizzle ORM integrates with Netlify Database, providing a clear migration workflow, guidance for local development, and production-safe deployment for scalable schemas.

Do I need an external Neon account to use managed Postgres on Netlify?

No, you do not need an external Neon account because Netlify Database provides a managed Postgres database baked directly into Netlify, eliminating manual external provisioning.