Created
January 12, 2024 16:06
-
-
Save agalea91/4520d7f178b9ebe4122f6132db12c3a8 to your computer and use it in GitHub Desktop.
Helpful curl alias for authenticated command line requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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