Skip to main content

Overview

Manage databases within your Qovery environment.

Commands

List Databases

List all databases in current environment:
qovery database list

Deploy Database

Deploy or start a database:
qovery database deploy --database "db-id"

Stop Database

Stop a running database:
qovery database stop --database "db-id"

Restart Database

Restart a database:
qovery database restart --database "db-id"

Delete Database

Delete a database:
qovery database delete --database "db-id"
Deleting a database will permanently delete all data. Make sure you have backups before proceeding.

Options

FlagDescription
--databaseDatabase ID or name
--outputOutput format (table, json, yaml)
--helpShow help

Examples

Deploy Database

# Set context
qovery context set

# List available databases
qovery database list

# Deploy database
qovery database deploy --database "postgres-main"

# Check status
qovery status

Stop Database for Maintenance

# Stop database
qovery database stop --database "postgres-main"

# Perform maintenance...

# Restart database
qovery database deploy --database "postgres-main"