I use Cloudflare CDN to add a performance and security layer to my websites for free. And most of the time when I need to change some settings for the zone file, I have to log in through the web dashboard, and sometimes it asks for 2FA. For just a small change I have to go through multiple steps.
So I decided to create the CLI tools with node.js to manage my Cloudflare account via API. And it works!
How to Install
npm install -g cloudflare-api.- Generate your Cloudflare API Token, see this doc
- Run
cf config setup, and use your API token. - Run
cf --helpfor all available commands.
Documentation
All the commands documentation is available in this wiki page.
Contribute
If you find this tool useful please leave me your review, and if you find any bugs please open an issue on GitHub, pull requests also welcome.
