Interactive shell utilities for managing Cloudflare Access and Zero Trust resources via API.
These two scripts were generated with the help of Perplexity AI to solve a specific need quickly.
- List Cloudflare Access applications.
- Filter apps by name, domain, or ID.
- Select one or multiple apps interactively.
- Confirm destructive actions before deleting.
- Keep credentials in memory only during execution.
- Bash 4+
- curl
- jq
- A Cloudflare API token with the minimum required permissions.
- The target Cloudflare Account ID.
chmod +x cf-access-manager.sh
./cf-access-manager.shchmod +x cf-access-manager_v2.sh
./cf-access-manager_v2.shThe script will prompt for:
- Cloudflare API token
- Cloudflare Account ID
This tool is designed to reduce mistakes:
- Tokens are not stored on disk.
- The script asks for confirmation before deletion.
- You should use a restricted API token whenever possible, with IP restrictions and the lowest possible privileges.
- Use short-lived tokens whenever you can.
MIT
Author: Alejandro Mateo - @AlexM2Media
Repo: Cloudflare Shell Tools
Web/Portfolio: alexm2.media