Netlify CLI db command
Provision a production ready Postgres database with a single command
Usage
netlify dbFlags
filter(string) - For monorepos, specify the name of the application to run the command indebug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging in
| Subcommand | description |
|---|---|
init | Initialize a new database for the current site |
status | Check the status of the database |
Examples
netlify db statusnetlify db initnetlify db init --helpInitialize a new database for the current site
Usage
netlify initFlags
assume-no(boolean) - Non-interactive setup. Does not initialize any third-party tools/boilerplate. Ideal for CI environments or AI tools.boilerplate(drizzle) - Type of boilerplate to add to your project.filter(string) - For monorepos, specify the name of the application to run the command inoverwrite(boolean) - Overwrites existing files that would be created when setting up boilerplatedebug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging inno-boilerplate(boolean) - Don’t add any boilerplate to your project.
Examples
netlify db init --assume-nonetlify db init --boilerplate=drizzle --overwritestatus
Section titled “status”Check the status of the database
Usage
netlify statusFlags
debug(boolean) - Print debugging informationauth(string) - Netlify auth token - can be used to run this command without logging in