Skip to main content

tuna postgres

Start a PostgreSQL tunnel.

Guide with examples: Postgres.

Usage
tuna postgres [port] [flags]
Examples
tuna postgres
tuna postgres 5432
tuna postgres 10.0.0.1:5432
tuna postgres 5432 --port=postgres
tuna postgres 5432 --port=35000
FlagDescription
--api-key stringYour tuna.am api key with the tunnels:connect scope (env TUNA_API_KEY).
--cidr-allow stringReject connections that do not match the given CIDRs. Can be repeated.
--cidr-deny stringReject connections that match the given CIDRs. Can be repeated.
--inspect-port intInspector port, the tunnel fails if it is busy (also TUNA_INSPECT_PORT).
-p, --port stringPort for incoming connections.
--qrGenerate and show QR code.

Global flags work too.