Crates.io | dnspod-cli |
lib.rs | dnspod-cli |
version | 0.1.3 |
source | src |
created_at | 2023-09-06 10:15:53.997952 |
updated_at | 2023-09-13 09:21:21.600389 |
description | A command line tool for dnspod |
homepage | |
repository | https://github.com/hangj/dnspod-lib |
max_upload_size | |
id | 965151 |
size | 40,389 |
A command line tool for dnspod
cargo install dnspod-cli
dnspod-cli -h
A command line tool for dnspod
Usage: dnspod-cli --secret-id <SECRET_ID> --secret-key <SECRET_KEY> <COMMAND>
Commands:
record 记录相关
domain 域名相关
help Print this message or the help of the given subcommand(s)
Options:
--secret-id <SECRET_ID> [env: DNSPOD_SECRET_ID=]
--secret-key <SECRET_KEY> [env: DNSPOD_SECRET_KEY=]
-h, --help Print help
-V, --version Print version
目前只添加了关于域名和记录的部分 subcommand, 如果你想添加更多, 请看 dnspod-lib
通过 define_action_list
宏可以很方便地添加其它接口请求