python3 -m venv venv source venv/bin/activate
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-464.0.0-darwin-arm.tar.gz tar -xf google-cloud-cli-464.0.0-darwin-arm.tar.gz ./google-cloud-sdk/install.sh
echo 'source ~/google-cloud-sdk/path.bash.inc' >> ~/.bash_profile source ~/.bash_profile
Go to the official documentation: https://cloud.google.com/sdk/docs/install-sdk#mac
Download the latest .tar.gz (the link on the page will always point to the latest).
Extract it.
Run the ./google-cloud-sdk/install.sh script. Follow its prompts. It will handle adding to your PATH and setting up shell completion correctly for your specific shell.
pip install -r requirements.txt
gcloud auth application-default login
python gcp_audit.py --projects [your-project-id]
python gcp_rollback.py gcp_audit_report_20241215_120000.json --dry-run
python gcp_rollback.py gcp_audit_report_20241215_120000.json --execute