Skip to content

Commit

Permalink
docs: Document new prisma init CLI parameters (#5395)
Browse files Browse the repository at this point in the history
* chore: add note about datasourceUrl in datasources section

* Merge branch 'main' of github.com:prisma/docs

* docs: document new `prisma init` CLI parameters

* Apply suggestions from code review

* Update content/400-reference/200-api-reference/200-command-reference.mdx

Co-authored-by: Joël Galeran <Jolg42@users.noreply.github.com>

* format table

---------

Co-authored-by: Joël Galeran <Jolg42@users.noreply.github.com>
  • Loading branch information
ruheni and Jolg42 authored Oct 24, 2023
1 parent 85be5b9 commit 2061b03
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,13 @@ The `init` command does not interpret any existing files. Instead, it creates a

#### Arguments

| Argument | Required | Description | Default |
| ----------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| `--datasource-provider` | No | Specifies the default value for the `provider` field in the `datasource` block. Options are `sqlite`, `postgresql`, `mysql`, `sqlserver`, `mongodb` and `cockroachdb`. | `postgresql` |
| `--url` | No | Define a custom datasource url. | |
| Argument | Required | Description | Default |
|-------------------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
| `--datasource-provider` | No | Specifies the default value for the `provider` field in the `datasource` block. Options are `sqlite`, `postgresql`, `mysql`, `sqlserver`, `mongodb` and `cockroachdb`. | `postgresql` |
| `--url` | No | Define a custom datasource url. | |
| `--generator-provider` | No | Define the default generator provider to use. | `prisma-client-js` |
| `--preview-features` | No | Define the default Preview features to use. [Learn more](/concepts/components/preview-features) | |
| `--output` | No | Specifies the default output location for the generated client. [Learn more](/concepts/components/prisma-client/working-with-prismaclient/generating-prisma-client#using-a-custom-output-path) | `node_modules/.prisma/client` |

#### Examples

Expand Down

1 comment on commit 2061b03

@vercel
Copy link

@vercel vercel bot commented on 2061b03 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

prisma2-docs.vercel.app
docs-git-main-prisma.vercel.app
docs-prisma.vercel.app

Please sign in to comment.