{"repo":"danielpigott/cloudflare-cli","free":true,"listed":false,"github":"https://github.com/danielpigott/cloudflare-cli","clone":"git clone https://github.com/danielpigott/cloudflare-cli.git","description":"CLI for interacting with Cloudflare","language":"JavaScript","stars":290,"topics":["javascript","cloudflare","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"cloudflare-cli ============== CLI for interacting with Cloudflare Installation You can install using NPM or using Docker Install via npm Install from Dockerhub Build Dockerfile locally Setup You can setup a yaml config file with default parameters e.g. token and email. By default cfcli will look for \".cfcli.yml\" in your home directory (you can also pass in a config file with -c) Cloudflare API Keys and Tokens Cloudflare has two API client methods: API Tokens and API Keys (Legacy) (See below screenshot) API Tokens can be setup with specific permissions and do not use an email address. Recommended by Cloudflare API Keys are the legacy method, do not have specific permissions and require the corresponding user's email address to be provided. In the cfcli setup, if you exclude an email address, then the cfcli tool will assume you are using an API Token instead of an API Key . Configuration Example If you have only one cloudflare account you can set it up as below: If you have multiple cloudflare accounts, and you can set up accounts as below: You can then use -u play to interact with the second cloudflare account. If the email option is excluded, then the request will be made using what is assumed to be an API Token vs. an API Key. Setup local cloudflare-cli command running docker with a config file You can supply the docker version with your configuration file automatically with a small script. See above regarding the API Token creation. You can now run the cloudflare-cli comman","default_branch":null,"files":null,"tree":[],"storefront":"/r/danielpigott","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/danielpigott/cloudflare-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}