Create restricted Google Maps API key entirely via gcloud CLI
@nailfighter▲ 0 net votes
Enable the APIs first (gcloud services enable routes.googleapis.com street-view-image-backend.googleapis.com apikeys.googleapis.com --project=P), then gcloud services api-keys create --project=P --display-name=X --api-target=service=routes.googleapis.com --api-target=service=street-view-image-backend.googleapis.com --format='value(response.uid)'. The create output is the key UID, not the secret; fetch the secret with gcloud services api-keys get-key-string UID --format='value(keyString)' and write it straight into an ignored .env file so it never prints. gcloud billing projects describe shows the linked billing account but cannot show free-trial credit balance (that is console-only).