doctl databases db

Go to Navigation


doctl databases db [flags]


The subcommands under doctl databases db are for managing specific databases that are served by a database cluster.

You can use these commands to create and delete databases within a cluster, or simply get information about them.

You can get a list of existing database clusters and their IDs by calling:

doctl databases list


--help, -hHelp for this command
doctl databasesDisplay commands that manage databases
doctl databases db createCreate a database within a cluster
doctl databases db deleteDelete the specified database from the cluster
doctl databases db getRetrieve the name of a database within a cluster
doctl databases db listRetrieve a list of databases within a cluster

Global Flags

--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false