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
Copy file name to clipboardExpand all lines: content/200-orm/500-reference/200-prisma-cli-reference.mdx
-36Lines changed: 0 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1804,42 +1804,6 @@ prisma studio --config=./prisma.config.ts
1804
1804
prisma studio --url="postgresql://user:password@localhost:5432/dbname"
1805
1805
```
1806
1806
1807
-
## `package.json` entry options
1808
-
1809
-
### `schema`
1810
-
1811
-
The path to the desired `schema.prisma` file can be specified with the `prisma.schema` entry in the `package.json` file. The path defines the file the Prisma CLI should use when you run any of the CLI commands. Both absolute and relative paths are supported.
1812
-
1813
-
```json file="package.json"
1814
-
{
1815
-
"name": "my-project",
1816
-
"version": "1.0.0",
1817
-
"prisma": {
1818
-
"schema": "./custom-path-to-schema/schema.prisma"
1819
-
}
1820
-
}
1821
-
```
1822
-
1823
-
This is available from version 2.7.0 and later.
1824
-
1825
-
### `seed`
1826
-
1827
-
The command used to populate the datasource is specified in the `prisma.seed` entry in the `package.json` file. It is used when `prisma db seed` is invoked or triggered.
1828
-
1829
-
See [Seeding your database](/orm/prisma-migrate/workflows/seeding)
1830
-
1831
-
```json file="package.json"
1832
-
{
1833
-
"name": "my-project",
1834
-
"version": "1.0.0",
1835
-
"prisma": {
1836
-
"seed": "node ./prisma/seed.js"
1837
-
}
1838
-
}
1839
-
```
1840
-
1841
-
This is available from version 3.0.1 and later.
1842
-
1843
1807
## Using a HTTP proxy for the CLI
1844
1808
1845
1809
Prisma CLI supports [custom HTTP proxies](https://github.com/prisma/prisma/issues/506). This is particularly relevant when being behind a corporate firewall.
0 commit comments