Console commands for Cloudflare actions
- Create an API Token on Cloudflare
While logged to Cloudflare dashboard, go to Profile > API Tokens > Create Token.
Your token must be granted with Zone DNS Edit permission on your desired zones.
- Paste the token in the .env file
CLOUDFLARE_API_TOKEN=abc123
- Build the docker container
make build
make run COMMAND="cloudflare:zones:list"
make run COMMAND="cloudflare:dns:list"
make run COMMAND="cloudflare:dns:import"
make run COMMAND="list"
Run commands with --help
option to view detailed description
make run COMMAND="cloudflare:dns:import --help"