Jonathan-Only Setup
Things only Jonathan needs.
Netlify Deploy Cleanup
The delete-netlify-deploys.sh script cleans up old Netlify deploys. Only Jonathan should run this.
Setup
Add to ~/.zshrc:
bash
export NETLIFY_ACCESS_TOKEN="your-token-here"Then reload:
bash
source ~/.zshrcGetting the Netlify Token
- Log in to Netlify at https://app.netlify.com
- Click your avatar (top right) → User settings
- In the left sidebar, click Applications
- Scroll to Personal access tokens
- Click New access token
- Give it a descriptive name (e.g.,
macbook-pro-2024) - Click Generate token
- Copy the token immediately — you won't be able to see it again
- Paste it in your
~/.zshrcas shown above - Run
source ~/.zshrcto reload
Verifying Your Token Works
bash
curl -H "Authorization: Bearer $NETLIFY_ACCESS_TOKEN" https://api.netlify.com/api/v1/userIf valid, you'll see your user info. If invalid:
json
{"message":"Invalid token"}Running the Script
bash
~/GitHub/shared/tools/delete-netlify-deploys.shToken Security
- Tokens don't expire by default — review periodically
- Revoke at: https://app.netlify.com/user/applications#personal-access-tokens
- If compromised: revoke immediately, create new one, update
~/.zshrc