跳到正文

cloudflare-cli (cfcli)

活跃
danielpigott/cloudflare-cli

Cloudflare 命令行工具(cfcli),可在终端管理 DNS 记录、Cloudflare 代理开关、开发模式和缓存清除,支持 npm 或 Docker 安装。

在 GitHub 查看
星标
293
Fork
48
关注
293
未关闭 Issue
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.

按共同分类和标签排序的同类开源项目。

全部开发工具项目 →