Install gcloud CLI

Follow the instructions here.

To try out the Google Vertex AI text endpoint:

curl -X POST \  
    -H "Authorization: Bearer $(gcloud auth print-access-token)" \  
    -H "Content-Type: application/json; charset=utf-8" \  
    -d @request.json \  
    "https://us-central1-aiplatform.googleapis.com/v1/projects/__PROJECT_ID__/locations/us-central1/publishers/google/models/text-bison:predict"