Skip to main content

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.

This command creates Database Tunnels. If your Database exposes multiple Database Credentials, you can specify which one you’d like to tunnel to.

Synopsis

Usage:
  aptible db:tunnel HANDLE

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

Examples

To tunnel using your Database’s default Database Credential:
aptible db:tunnel "$DB_HANDLE"
To tunnel using a specific Database Credential:
aptible db:tunnel "$DB_HANDLE" --type "$CREDENTIAL_TYPE"