Netlify CLI db command
db
Provision a production ready Postgres database with a single command
Usage
netlify db
Flags
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 --help
init
Initialize a new database for the current site
Usage
netlify init
Flags
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 --overwrite
status
Check the status of the database
Usage
netlify status
Flags
debug
(boolean) - Print debugging informationauth
(string) - Netlify auth token - can be used to run this command without logging in