Skip to content

Instantly share code, notes, and snippets.

@agalea91
Created January 12, 2024 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agalea91/4520d7f178b9ebe4122f6132db12c3a8 to your computer and use it in GitHub Desktop.
Save agalea91/4520d7f178b9ebe4122f6132db12c3a8 to your computer and use it in GitHub Desktop.
Helpful curl alias for authenticated command line requests
alias gcurl='curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json"'
gcurl <URL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment