You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
metaDescription: 'This page explains how to enable debugging output for Prisma Client by setting the `DEBUG` environment variable.'
5
5
---
6
6
7
-
<TopBlock>
8
7
9
8
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:
10
9
@@ -13,13 +12,11 @@ You can enable debugging output in Prisma Client and Prisma CLI via the [`DEBUG`
13
12
-`prisma*`: Prints all debug messages from Prisma Client or CLI
14
13
-`*`: Prints all debug messages
15
14
16
-
<Admonitiontype="info">
15
+
:::info
17
16
18
17
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.
Copy file name to clipboardExpand all lines: content/200-orm/500-reference/200-prisma-cli-reference.mdx
+36-36Lines changed: 36 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,13 +377,13 @@ generator client {
377
377
|`--allow-no-models`| No | The `generate` command will generate Prisma Client without generating any models. |
378
378
|`--watch`| No | The `generate` command will continue to watch the `schema.prisma` file and re-generate Prisma Client on file changes. |
379
379
380
-
<Admonitiontype="warning">
380
+
:::warning
381
381
382
382
**Deprecation Warning**
383
383
384
384
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.
385
385
386
-
</Admonition>
386
+
:::
387
387
388
388
#### Arguments
389
389
@@ -675,32 +675,32 @@ For downloading engines
675
675
- BINARY_DOWNLOAD_VERSION:
676
676
677
677
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)
680
680
681
681
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)
684
684
- PRISMA_SCHEMA_ENGINE_BINARY:
685
685
- PRISMA_MIGRATION_ENGINE_BINARY:
686
686
687
687
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)
691
691
692
692
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)
- PRISMA_MIGRATE_SKIP_GENERATE: (Not supported in Prisma ORM v7)
703
+
- PRISMA_MIGRATE_SKIP_SEED: (Not supported in Prisma ORM v7)
704
704
705
705
For Prisma Studio
706
706
- BROWSER:
@@ -815,17 +815,17 @@ npx prisma dev stop mydb* # stops all DBs starting with `mydb`
815
815
816
816
The `db pull` command connects to your database and adds Prisma models to your Prisma schema that reflect the current database schema.
817
817
818
-
<Admonitiontype="warning">
818
+
:::warning
819
819
820
820
**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.
821
821
822
-
</Admonition>
822
+
:::
823
823
824
-
<Admonitiontype="info">
824
+
:::info
825
825
826
826
Introspection with the `db pull` command on the [MongoDB connector](/orm/overview/databases/mongodb) samples the data instead of reading a schema.
827
827
828
-
</Admonition>
828
+
:::
829
829
830
830
#### Prerequisites
831
831
@@ -1041,17 +1041,17 @@ prisma db seed
1041
1041
1042
1042
### `db execute`
1043
1043
1044
-
<Admonitiontype="info">
1044
+
:::info
1045
1045
1046
1046
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.
1047
1047
1048
-
</Admonition>
1048
+
:::
1049
1049
1050
-
<Admonitiontype="warning">
1050
+
:::warning
1051
1051
1052
1052
This command is currently not supported on [MongoDB](/orm/overview/databases/mongodb).
1053
1053
1054
-
</Admonition>
1054
+
:::
1055
1055
1056
1056
This command applies a SQL script to the database without interacting with the Prisma migrations table. The script takes two inputs:
1057
1057
@@ -1117,12 +1117,12 @@ Other options:
1117
1117
1118
1118
Prisma Migrate changed from Preview to Generally Available (GA) in 2.19.0.
1119
1119
1120
-
<Admonitiontype="info">
1120
+
:::info
1121
1121
1122
1122
**Does not apply for MongoDB** <br />
1123
1123
Instead of `migrate dev` and related commands, [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) is used for [MongoDB](/orm/overview/databases/mongodb).
1124
1124
1125
-
</Admonition>
1125
+
:::
1126
1126
1127
1127
### `migrate dev`
1128
1128
@@ -1136,11 +1136,11 @@ The `migrate dev` command:
1136
1136
1. Applies all unapplied migrations to the development database and updates the `_prisma_migrations` table
1137
1137
1. Triggers the generation of artifacts (for example, Prisma Client)
1138
1138
1139
-
<Admonitiontype="warning">
1139
+
:::warning
1140
1140
1141
1141
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
1142
1142
1143
-
</Admonition>
1143
+
:::
1144
1144
1145
1145
See also:
1146
1146
@@ -1157,11 +1157,11 @@ See also:
1157
1157
|`--name` / `-n`| No | Name the migration (e.g. `prisma migrate dev --name added_job_title`) ||
1158
1158
|`--help` / `-h`| No | Displays the help message ||
1159
1159
1160
-
<Admonitiontype="info">
1160
+
:::info
1161
1161
1162
1162
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.
1163
1163
1164
-
</Admonition>
1164
+
:::
1165
1165
1166
1166
#### Arguments
1167
1167
@@ -1195,11 +1195,11 @@ This command:
1195
1195
1. Applies all migrations
1196
1196
1. Runs seed scripts
1197
1197
1198
-
<Admonitiontype="warning">
1198
+
:::warning
1199
1199
1200
1200
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
1201
1201
1202
-
</Admonition>
1202
+
:::
1203
1203
1204
1204
#### Options
1205
1205
@@ -1260,11 +1260,11 @@ The `migrate deploy` command applies all pending migrations, and creates the dat
1260
1260
- Does **not** reset the database or generate artifacts
1261
1261
- Does **not** rely on a shadow database
1262
1262
1263
-
<Admonition type="warning">
1263
+
:::warning
1264
1264
1265
1265
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
1266
1266
1267
-
</Admonition>
1267
+
:::
1268
1268
1269
1269
#### Options
1270
1270
@@ -1290,11 +1290,11 @@ The `migrate resolve` command allows you to solve migration history issues in pr
1290
1290
1291
1291
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.
1292
1292
1293
-
<Admonition type="warning">
1293
+
:::warning
1294
1294
1295
1295
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
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.
1328
1328
1329
-
<Admonition type="warning">
1329
+
:::warning
1330
1330
1331
1331
This command is not supported on [MongoDB](/orm/overview/databases/mongodb). Use [`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) instead.
0 commit comments