All CLI Commands
aptible db:tunnel
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:
[--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"
Was this page helpful?