# Troubleshooting (/docs/postgres/troubleshooting)

Resolve common issues with Prisma Postgres

Location: Postgres > Troubleshooting

This guide helps resolve common issues when working with Prisma Postgres.

## The `--db` option is not recognized when running `prisma init`

### Problem

Running the following command fails because the `--db` option is not recognized:

#### bun

```bash
bunx --bun prisma init --db
```

#### pnpm

```bash
pnpm prisma init --db
```

#### yarn

```bash
yarn prisma init --db
```

#### npm

```bash
npx prisma init --db
```

### Cause

This can occur due to npx caching. If you've previously run `npx prisma init`, your machine may be using an outdated cached version that doesn't recognize the `--db` flag because it was only introduced in a later version of Prisma ORM.

### Solution

Explicitly run the Prisma ORM 7 CLI through its `prev` dist-tag:

#### bun

```bash
bunx --bun prisma@prev init --db
```

#### pnpm

```bash
pnpm dlx prisma@prev init --db
```

#### yarn

```bash
yarn dlx prisma@prev init --db
```

#### npm

```bash
npx prisma@prev init --db
```

This runs the latest Prisma ORM 7 CLI, which supports the flag, preventing issues with outdated command syntax.

## Workspace plan limit reached when running `prisma init --db`

### Problem

When running the command:

#### bun

```bash
bunx --bun prisma@prev init --db
```

#### pnpm

```bash
pnpm dlx prisma@prev init --db
```

#### yarn

```bash
yarn dlx prisma@prev init --db
```

#### npm

```bash
npx prisma@prev init --db
```

You may encounter the following error message in your logs:

```
Workspace plan limit reached for feature "Project".
```

### Cause

Your default [workspace](/guides/introduction-5-console-concepts#workspace) project limit has been reached.

### Solution

To resolve this issue, consider the following options:

- Configure a different Workspace as your default, one that has available capacity for additional projects.
- Delete unused projects or databases from your current default Workspace to free up space.
- Ensure that you are logged into the correct account in the Prisma CLI. For more details on authentication and account management, please refer to the [Prisma CLI documentation](/guides/console-commands-console).
- [Upgrade to a plan](/guides/introduction-2-postgres#billing-and-limits) that supports more projects in your default Workspace.

## Related pages

- [`Best Postgres for AI apps`](/guides/introduction-2-postgres-best-postgres-for-ai-apps): Why Prisma Postgres works well for AI and LLM workloads: built-in pooling, edge connectivity, pgvector, and MCP support.
- [`create-db`](/guides/introduction-2-postgres-npx-create-db): Learn how to provision temporary Prisma Postgres databases with create-db
- [`Database`](/guides/database-database): Overview of Prisma Postgres database operations, connections, pooling, backups, and query analysis.
- [`Error reference`](/guides/more-2-error-reference): Error reference documentation for Prisma Postgres
- [`Import from existing database`](/guides/migrating-off-accelerate-postgres-import-from-existing-database): Choose the right path to import data from PostgreSQL or MySQL into Prisma Postgres.

## 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.
