This is a CLI program that let you set CNAME to use Cloudflare using the partner program.
Both Python2.x and Python3.x is supported. No extra library is needed.
To use Chinese menu, set environment variable LANG
to use UTF-8 (for example, zh_CN.UTF-8).
Usage
- Apply for partner program at https://www.cloudflare.com/partners/.
- Clone this repository or download script.
- Run
python ./cloudflare-partner-cli.py
. - Enter your
host_key
. You can get it here. - Enter the account you use to manage domains (your personal account, not partner login account). User key is stored in
.cfhost
. - Follow the instructions on screen.
Note
- Value of
resolve_to
has to be DNS record (for example: google.com) instead of IP address.