Manage your database schema and lifecycle during development

The `prisma db` command group provides tools to manage your database schema and lifecycle during development.

## Usage

```bash
prisma db [command] [options]
```

## Global options

| Option         | Description                            |
| -------------- | -------------------------------------- |
| `-h`, `--help` | Display help message                   |
| `--config`     | Custom path to your Prisma config file |
| `--schema`     | Custom path to your Prisma schema      |

## Subcommands

| Command                                               | Description                                                               |
| ----------------------------------------------------- | ------------------------------------------------------------------------- |
| [`prisma db pull`](/guides/db-commands-db-pull)       | Pull the state from the database to the Prisma schema using introspection |
| [`prisma db push`](/guides/db-commands-db-push)       | Push the state from Prisma schema to the database during prototyping      |
| [`prisma db seed`](/guides/db-commands-db-seed)       | Seed your database                                                        |
| [`prisma db execute`](/guides/db-commands-db-execute) | Execute native commands to your database                                  |

## Examples

```bash
# Pull schema from database
prisma db pull

# Push schema to database
prisma db push

# Seed the database
prisma db seed

# Execute a SQL script
prisma db execute --file ./script.sql
```

## Related pages

- [Authentication & Tools](./authentication-tools-index.md)
- [Build](./build-index.md)
- [Changelog](../changelog.md)
- [Concepts](./concepts-index.md)
- [Console commands](./console-commands-index.md)
- [Contract Authoring](./contract-authoring-index.md)
- [Core Concepts](./core-concepts-index.md)
- [Data Modeling](./data-modeling-index.md)
- [Database](./database-index.md)
- [DB commands](./db-commands-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
