Install on a VM

openrail connect

Open psql, mysql, redis-cli or mongosh against a database through a local tunnel.

Usage

openrail connect [SERVICE] [-- ARGS]

Flags

FlagMeaning
-P, --port PORTLocal port for the tunnel
--tunnel-onlyPrint the local URL and keep the tunnel open instead of starting a client

Details

  • The client must be installed locally. Arguments after -- and standard input are passed through, so pg_dump ... | openrail connect Postgres -- psql works.

Examples

openrail connect Postgres
openrail connect Postgres -- -c 'select 1'
openrail connect Redis --tunnel-only

Railway equivalent

railway connect works the same way through the railway alias.

Every command also accepts the global options.

View as Markdown Edit this page