Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 823 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 823 Bytes

Cloudflare tools

Console commands for Cloudflare actions

Installation

  1. 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.

  1. Paste the token in the .env file
CLOUDFLARE_API_TOKEN=abc123
  1. Build the docker container
make build

Usage

Run commands

make run COMMAND="cloudflare:zones:list"
make run COMMAND="cloudflare:dns:list"
make run COMMAND="cloudflare:dns:import"

View available commands

make run COMMAND="list"

View commands detailed description

Run commands with --help option to view detailed description

make run COMMAND="cloudflare:dns:import --help"