command
Version:
v0.0.0-...-50172b1
Opens a new window with list of versions in this module.
Published: Oct 13, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 27
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Cloudflare 命令行操作
因为工作需要,用cf的api来操作会效率更高,特意写了个小程序。
为什么效率高呢?下面以配置域名http301跳转为例
cloudflare WEB 界面后台配置步骤
- 搜索域名
- 进入ssl/tls页面
- 添加hsts配置
- 进入域名dns配置页面
- 删除旧的无用解析
- 添加跳转的子域名解析,并启用CDN
- 切换到page规则页面
- 添加规则,选择url重定向
- 添加对应的跳转规则
cloudflare-cli 配置步骤
- 打开终端
- 输入 cloudflare-cli 301 <旧域名> <新域名>
哈哈,这样多简单
而且命令行还可以批量操作哦。
Documentation
¶
* cloudflare-cli
*
* 创建时间 2020-08-27
* 更新时间 2023-04-21
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.