Command line tool to simplify using Google's Cloud SQL Proxy. It leverages Google Cloud SDK + Cloud SQL Proxy to fetch projects and instances from GCP and make starting a proxy as easy as you expect it to be.
Before using csqlp, make sure you have:
- Google Cloud SDK installed, authenticated on your account and added to your PATH
- Cloud SQL Proxy, installed and added to your PATH
This is important: both gcloud and cloud_sql_proxy must be globally available in your machine.
Then, to run it directly, use
npx csqlpOr, to install it in your machine
npm install -g csqlp