Skip to content

1ctl postgres proxy

Forward a local TCP port to a managed Postgres cluster.

1ctl postgres proxy <cluster>
Argument Required Variadic
cluster Yes No
Flag Type Required Default Description
--bind-addr string No "127.0.0.1" Local address to bind
--local-port string No "15432" Local port to listen on
--help, -h boolean No — Show help
Terminal window
1ctl postgres proxy my-db --local-port 5432