4 releases

0.1.3 Sep 13, 2023
0.1.2 Sep 7, 2023
0.1.1 Sep 6, 2023
0.1.0 Sep 6, 2023

#2 in #dnspod

21 downloads per month

MIT license

99KB
1.5K SLoC

dnspod-cli

A command line tool for dnspod

Install

cargo install dnspod-cli

Usage

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 宏可以很方便地添加其它接口请求

Dependencies

~5–21MB
~283K SLoC