> ## Documentation Index
> Fetch the complete documentation index at: https://www.aptible.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# aptible endpoints:database:create

This command creates a [Database Endpoint.](https://www.aptible.com/docs/core-concepts/managed-databases/connecting-databases/database-endpoints.md)

# Synopsis

```
Usage:
  aptible endpoints:database:create HANDLE [flags]

Flags:
  -e, --env string             Environment handle (alias)
      --environment string     Environment handle
      --internal               Create internal (VPC-only) endpoint
      --ip-whitelist strings   IP CIDR whitelist (comma-separated or use flag multiple times)
      --no-internal            Do not create internal (VPC-only) endpoint
```

# Examples

#### Create a new Database Endpoint

```shell theme={null}
aptible endpoints:database:create  "$DATABASE_HANDLE"
```

#### Create a new Database Endpoint with IP Filtering

```shell theme={null}
aptible endpoints:database:create  "$DATABASE_HANDLE" \
        --ip-whitelist 1.1.1.1/1 2.2.2.2
```
