aptible db:create

This command is used to create new Databases.

Examples

Create a new Database using a specific type

You can specify the type using the --type option. This parameter defaults to postgresql, but you can use any of Enclave’s Supported Databases.

For example, to create a Redis database:

aptible db:create --type redis

Create a new Database using a specific version

Use the --version flag in combination with --type to use a specific version:

aptible db:create --type postgresql --version 9.6

Tip

Use the aptible db:versions command to identify available versions.

Create a new Database with a custom Disk Size

aptible db:create --size 20 "$DB_HANDLE"

Create a new Database with a custom Container Size

aptible db:create --container-size 2048 "$DB_HANDLE"

Synopsis

Usage:
  aptible db:create HANDLE [--type TYPE] [--version VERSION] [--container-size SIZE_MB] [--size SIZE_GB]

Options:
  [--type=TYPE]
  [--version=VERSION]
  [--container-size=N]
  [--size=N]
                               # Default: 10
  [--environment=ENVIRONMENT]

Create a new database