brew install arnoldj-devops/tools/cloudsql-proxy-pal
curl -s https://raw.githubusercontent.com/arnoldj-devops/cloudsql-proxy-pal/master/scripts/install.sh | bash
To connect a database instance
cloudsql-proxy-pal connect --port=<port-number>
Select the CloudSQL instance to connect
By default port=5432
and is optional
To disconnect instance
cloudsql-proxy-pal disconnect
For all commands
cloudsql-proxy-pal --help
curl -s https://raw.githubusercontent.com/arnoldj-devops/cloudsql-proxy-pal/master/scripts/install_prerequisites.sh | bash