Skip to content

Commit 32e3082

Browse files
authored
feat: update .env docs DC-6204 (#7259)
1 parent c2671d7 commit 32e3082

File tree

4 files changed

+227
-100
lines changed

4 files changed

+227
-100
lines changed

content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/140-debugging.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metaTitle: 'Debugging (Reference)'
44
metaDescription: 'This page explains how to enable debugging output for Prisma Client by setting the `DEBUG` environment variable.'
55
---
66

7-
<TopBlock>
87

98
You can enable debugging output in Prisma Client and Prisma CLI via the [`DEBUG`](/orm/reference/environment-variables-reference#debug) environment variable. It accepts two namespaces to print debugging output:
109

@@ -13,13 +12,11 @@ You can enable debugging output in Prisma Client and Prisma CLI via the [`DEBUG`
1312
- `prisma*`: Prints all debug messages from Prisma Client or CLI
1413
- `*`: Prints all debug messages
1514

16-
<Admonition type="info">
15+
:::info
1716

1817
Prisma Client can be configured to log warnings, errors and information related to queries sent to the database. See [Configuring logging](/orm/prisma-client/observability-and-logging/logging) for more information.
1918

20-
</Admonition>
21-
22-
</TopBlock>
19+
:::
2320

2421
## Setting the `DEBUG` environment variable
2522

content/200-orm/500-reference/200-prisma-cli-reference.mdx

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,13 @@ generator client {
377377
| `--allow-no-models` | No | The `generate` command will generate Prisma Client without generating any models. |
378378
| `--watch` | No | The `generate` command will continue to watch the `schema.prisma` file and re-generate Prisma Client on file changes. |
379379

380-
<Admonition type="warning">
380+
:::warning
381381

382382
**Deprecation Warning**
383383

384384
As of Prisma 5.2.0, `--data-proxy` and `--accelerate` are deprecated in favor of `--no-engine` as Prisma Client no longer requires an option to work with Prisma Accelerate. All options are available and work similarly, but we recommend `--no-engine` as it prevents an engine from being downloaded which will greatly impact the size of apps deployed to serverless and edge functions.
385385

386-
</Admonition>
386+
:::
387387

388388
#### Arguments
389389

@@ -675,32 +675,32 @@ For downloading engines
675675
- BINARY_DOWNLOAD_VERSION:
676676
677677
For configuring the Query Engine Type
678-
- PRISMA_CLI_QUERY_ENGINE_TYPE:
679-
- PRISMA_CLIENT_ENGINE_TYPE:
678+
- PRISMA_CLI_QUERY_ENGINE_TYPE: (Not supported in Prisma ORM v7)
679+
- PRISMA_CLIENT_ENGINE_TYPE: (Not supported in Prisma ORM v7)
680680
681681
For custom engines
682-
- PRISMA_QUERY_ENGINE_BINARY:
683-
- PRISMA_QUERY_ENGINE_LIBRARY:
682+
- PRISMA_QUERY_ENGINE_BINARY: (Not supported in Prisma ORM v7)
683+
- PRISMA_QUERY_ENGINE_LIBRARY: (Not supported in Prisma ORM v7)
684684
- PRISMA_SCHEMA_ENGINE_BINARY:
685685
- PRISMA_MIGRATION_ENGINE_BINARY:
686686
687687
For the "postinstall" npm hook
688-
- PRISMA_GENERATE_SKIP_AUTOINSTALL:
689-
- PRISMA_SKIP_POSTINSTALL_GENERATE:
690-
- PRISMA_GENERATE_IN_POSTINSTALL:
688+
- PRISMA_GENERATE_SKIP_AUTOINSTALL: (Not supported in Prisma ORM v7)
689+
- PRISMA_SKIP_POSTINSTALL_GENERATE: (Not supported in Prisma ORM v7)
690+
- PRISMA_GENERATE_IN_POSTINSTALL: (Not supported in Prisma ORM v7)
691691
692692
For "prisma generate"
693-
- PRISMA_GENERATE_DATAPROXY:
694-
- PRISMA_GENERATE_NO_ENGINE:
693+
- PRISMA_GENERATE_DATAPROXY: (Not supported in Prisma ORM v7)
694+
- PRISMA_GENERATE_NO_ENGINE: (Not supported in Prisma ORM v7)
695695
696696
For Prisma Client
697697
- PRISMA_SHOW_ALL_TRACES:
698-
- PRISMA_CLIENT_NO_RETRY (Binary engine only):
698+
- PRISMA_CLIENT_NO_RETRY (Binary engine only): (Not supported in Prisma ORM v7)
699699
700700
For Prisma Migrate
701701
- PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK:
702-
- PRISMA_MIGRATE_SKIP_GENERATE:
703-
- PRISMA_MIGRATE_SKIP_SEED:
702+
- PRISMA_MIGRATE_SKIP_GENERATE: (Not supported in Prisma ORM v7)
703+
- PRISMA_MIGRATE_SKIP_SEED: (Not supported in Prisma ORM v7)
704704
705705
For Prisma Studio
706706
- BROWSER:
@@ -815,17 +815,17 @@ npx prisma dev stop mydb* # stops all DBs starting with `mydb`
815815

816816
The `db pull` command connects to your database and adds Prisma models to your Prisma schema that reflect the current database schema.
817817

818-
<Admonition type="warning">
818+
:::warning
819819

820820
**Warning**: The command will overwrite the current `schema.prisma` file with the new schema. Some manual changes or customization can be lost. Be sure to back up your current `schema.prisma` file (or commit your current state to version control to be able to revert any changes) before running `db pull` if it contains important modifications.
821821

822-
</Admonition>
822+
:::
823823

824-
<Admonition type="info">
824+
:::info
825825

826826
Introspection with the `db pull` command on the [MongoDB connector](/orm/overview/databases/mongodb) samples the data instead of reading a schema.
827827

828-
</Admonition>
828+
:::
829829

830830
#### Prerequisites
831831

@@ -1041,17 +1041,17 @@ prisma db seed
10411041

10421042
### `db execute`
10431043

1044-
<Admonition type="info">
1044+
:::info
10451045

10461046
The `db execute` command is Generally Available in versions 3.13.0 and later. If you're using a version between 3.9.0 and 3.13.0, it is available behind a `--preview-feature` CLI flag.
10471047

1048-
</Admonition>
1048+
:::
10491049

1050-
<Admonition type="warning">
1050+
:::warning
10511051

10521052
This command is currently not supported on [MongoDB](/orm/overview/databases/mongodb).
10531053

1054-
</Admonition>
1054+
:::
10551055

10561056
This command applies a SQL script to the database without interacting with the Prisma migrations table. The script takes two inputs:
10571057

@@ -1117,12 +1117,12 @@ Other options:
11171117

11181118
Prisma Migrate changed from Preview to Generally Available (GA) in 2.19.0.
11191119

1120-
<Admonition type="info">
1120+
:::info
11211121

11221122
**Does not apply for MongoDB** <br />
11231123
Instead of `migrate dev` and related commands, [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) is used for [MongoDB](/orm/overview/databases/mongodb).
11241124

1125-
</Admonition>
1125+
:::
11261126

11271127
### `migrate dev`
11281128

@@ -1136,11 +1136,11 @@ The `migrate dev` command:
11361136
1. Applies all unapplied migrations to the development database and updates the `_prisma_migrations` table
11371137
1. Triggers the generation of artifacts (for example, Prisma Client)
11381138

1139-
<Admonition type="warning">
1139+
:::warning
11401140

11411141
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
11421142

1143-
</Admonition>
1143+
:::
11441144

11451145
See also:
11461146

@@ -1157,11 +1157,11 @@ See also:
11571157
| `--name` / `-n` | No | Name the migration (e.g. `prisma migrate dev --name added_job_title`) | |
11581158
| `--help` / `-h` | No | Displays the help message | |
11591159

1160-
<Admonition type="info">
1160+
:::info
11611161

11621162
If a [schema drift](/orm/prisma-migrate/understanding-prisma-migrate/shadow-database#detecting-schema-drift) is detected while running `prisma migrate dev` using `--create-only`, you will be prompted to reset your database.
11631163

1164-
</Admonition>
1164+
:::
11651165

11661166
#### Arguments
11671167

@@ -1195,11 +1195,11 @@ This command:
11951195
1. Applies all migrations
11961196
1. Runs seed scripts
11971197

1198-
<Admonition type="warning">
1198+
:::warning
11991199

12001200
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
12011201

1202-
</Admonition>
1202+
:::
12031203

12041204
#### Options
12051205

@@ -1260,11 +1260,11 @@ The `migrate deploy` command applies all pending migrations, and creates the dat
12601260
- Does **not** reset the database or generate artifacts
12611261
- Does **not** rely on a shadow database
12621262
1263-
<Admonition type="warning">
1263+
:::warning
12641264
12651265
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
12661266
1267-
</Admonition>
1267+
:::
12681268
12691269
#### Options
12701270
@@ -1290,11 +1290,11 @@ The `migrate resolve` command allows you to solve migration history issues in pr
12901290
12911291
Note that this command can only be used with a failed migration. If you try to use it with a successful migration you will receive an error.
12921292
1293-
<Admonition type="warning">
1293+
:::warning
12941294
12951295
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
12961296
1297-
</Admonition>
1297+
:::
12981298
12991299
#### Options
13001300
@@ -1326,11 +1326,11 @@ prisma migrate resolve --rolled-back 20201231000000_add_users_table
13261326
13271327
The `prisma migrate status` command looks up the migrations in `./prisma/migrations/*` folder and the entries in the `_prisma_migrations` table and compiles information about the state of the migrations in your database.
13281328
1329-
<Admonition type="warning">
1329+
:::warning
13301330
13311331
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
13321332
1333-
</Admonition>
1333+
:::
13341334
13351335
For example:
13361336

0 commit comments

Comments
 (0)