doctl databases db

Go to Navigation

Usage

doctl databases db [flags]

Description

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

Flags

OptionDescription
--help, -hHelp for this command
CommandDescription
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

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • 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