doctl Verified current stable Not installed? Cloud Infrastructure

Doctl / List Available Database Engines

List Available Database Engines

List available database engines in the DigitalOcean environment.

$
Terminal
doctl d o eng

When To Use

When evaluating database options for a new project deployment.

Pro Tip

Use the `--format` option to filter the output specifically to engine names for easier ingestion by automation scripts.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
$ doctl databases engines list

| Engine Name | Version      | Status   |
|-------------|--------------|----------|
| postgres    | 13.3         | available|
| mysql       | 8.0          | available|
| redis       | 6.2          | available|
| mongodb     | 4.4          | available|
| cockroachdb | 21.1         | available|

Anatomy of Output

Understanding the result

Available database engines: Header

Descriptive header for the output.

1. PostgreSQL Engine Name

First listed supported database engine.

2. MySQL Engine Name

Second listed supported database engine.

3. Redis Engine Name

Third listed supported database engine.

4. MongoDB Engine Name

Fourth listed supported database engine.

Power User Variants

Optimized versions

doctl databases engines --format=json

Output in JSON format for easier integration with scripts.

doctl databases engines --region nyc1

Filter engines available in the specific region.

Troubleshooting

Common pitfalls

Error: Invalid command

Solution: Check command syntax for typos. Command format: doctl databases options engines.

Error: Authorization failed

Solution: Ensure your API token is valid and has sufficient permissions.

Error: No database engines available

Solution: Confirm your account has the required services enabled and try again.

Command Breakdown

What each part is doing

doctl
Base Command
The executable that performs this operation. Here it runs Doctl before the shell applies any redirect operators.
d
d|databases
The value supplied for d|databases.
o
o|options
The value supplied for o|options.
eng
eng|engines
The value supplied for eng|engines.

How To Run

Execution path

  1. Step 1

    Open your terminal.

  2. Step 2

    Run the command: `doctl databases engines list`.

  3. Step 3

    Review the output for available database engines.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.