xetra11
xetra11

Reputation: 8855

Cloud SQL Proxy -credential-file flag is not working. It always says not defined hence no file was found

I placed my service account key file into the same directory where I execute the cloud sql proxy client from. When starting with the following

cloud_sql_proxy -instances=game:europe-west4:world-alpha=tcp:3306 -credential-file=proxy_key.json

the CLI says:

flag provided but not defined: -credential-file

I don't understand what the problem is? What is the convention to point to the key file? I also tried ./proxy_key.json but that didn't work either.

Upvotes: 1

Views: 584

Answers (1)

John Hanley
John Hanley

Reputation: 81416

The flag is misspelled.

Use -credential_file instead of -credential-file.

Upvotes: 4

Related Questions