Sign inSign up

waracle/cloudflare

By waracle

•Updated almost 8 years ago

Cloudflare CLI in docker form

Image
0

2.7K

waracle/cloudflare repository overview

⁠Cloudflare CLI

This is a Dockerised version of the Node Cloudflare CLI⁠.

The main use is to purge the cache without having to login to the cloudflare site

⁠Configure

  1. Install docker⁠
  2. Copy the following into a file called ~/.cfcli.yml, replacing the placeholders with your corresponding values
 defaults:
   token: <cloudflare-token>
   email: <[email protected]>
   domain: <default-cloudflare-domain>```
1. [optional] Add `alias cloudflare=docker run --rm -v ~/.cfcli.yml:/root/.cfcli.yml -t waracle/cloudflare` to your .bash_profile

## How to use

if you added the docker run command as an alias, simply run:

`cloudflare COMMAND`

or if you didn't run:

`docker run --rm -v ~/.cfcli.yml:/root/.cfcli.yml -t waracle/cloudflare COMMAND`

where COMMAND is one of 

* add 
* devmode
* disable
* edit
* enable
* ls
* purge
* rm
* zones

see [commands](https://github.com/danielpigott/cloudflare-cli) for more info

Tag summary

Content type

Image

Digest

Size

22.8 MB

Last updated

almost 8 years ago

docker pull waracle/cloudflare