Skip to content

Gcurl

What

An alias setup to use gcloud authentication with curl to make requests to google endpoints

How

alias gcurl='curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json"'
alias gcurl='curl -H "Authorization: Bearer $(gcloud auth print-access-token)"'

Want to make this site better? Open a PR or help fund hosting costs