aptible db:tunnel

This command is used to create Database Tunnels. If your Database exposes multiple Database Credentials, you can specify which one you'd like to tunnel to

Examples

To tunnel using your Database's default Database Credential:

aptible db:tunnel "$DB_HANDLE"

To tunnel using to a specific Database Credential:

aptible db:tunnel "$DB_HANDLE" --type "$CREDENTIAL_TYPE"

Synopsis

Usage:
  aptible db:tunnel HANDLE

Options:
  [--environment=ENVIRONMENT]
  [--port=N]
  [--type=TYPE]

Create a local tunnel to a database