iai databases port-forward
Forward a local port to a database
Synopsis
Open a local TCP listener and tunnel traffic to a PostgreSQL database running in the platform.
The remote port defaults to 5432. Use --port to override. Use --local-port to choose the local listening port (defaults to the remote port).
After connecting you can use psql, pgAdmin, or any PostgreSQL client against localhost:.
iai databases port-forward <database_name> [flags]Examples
iai databases port-forward my-db
iai databases port-forward my-db --local-port 15432Options
-h, --help help for port-forward
--local-port int Local port to listen on (defaults to the remote port)
-o, --organization string Organization name
--port int Remote port on the database (defaults to 5432)
-p, --project string Project nameOptions inherited from parent commands
SEE ALSO
iai databases - PostgreSQL instances with extension support, including pgvector
Last updated
Was this helpful?

