gcloud sql databases list --instance my-db

Category: Google Cloud & Workspace

gcloud sql databases list --instance my-db

List databases on a Cloud SQL instance

Prints every database inside my-db, which starts with the default postgres database on PostgreSQL instances. Create another with gcloud sql databases create appdb --instance my-db. Each database holds its own tables and users.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.