Skip to content

cloudflare-cli (cfcli)

Active
danielpigott/cloudflare-cli

A command-line interface for Cloudflare (cfcli) to manage DNS records, Cloudflare proxying, development mode and cache purges from your terminal, via npm or Docker.

View on GitHub
Stars
293
Forks
48
Watchers
293
Open issues
17

Overview

cloudflare-cli (cfcli) is a command-line interface for Cloudflare — manage DNS records, toggle Cloudflare proxying, switch development mode and purge the cache without opening the dashboard.

Install

npm install -g cloudflare-cli

Commands include ls, find, add and edit for DNS records, enable/disable for Cloudflare caching on a record, devmode on|off and purge [urls]. Or run it with Docker:

docker pull dpig/cloudflare-cli:latest
docker run --rm -it dpig/cloudflare-cli -h

Setup

Put defaults such as your API token in a YAML file at ~/.cfcli.yml (or pass another file with -c). It supports both scoped API tokens and legacy API keys.

Similar open-source projects, ranked by shared categories and tags.

All Development Tools projects →