ts2ray cli tool
$ sudo npm install -g ts2ray ts2ray-cli
# or
$ sudo yarn global add ts2ray ts2ray-cli
$ ts2sub -h
Usage: index [options]
Options:
-v, --version output the current version
-u, --url <url> subscription url
-n, --name <name> subscription name
-l, --list list all subscription information
-p, --path <path> output config in path (default: ".")
-h, --help display help for command
Example:
$ ts2sub -u <url> -l
* name ip
* name ip
* name ip
$ ts2sub -u <url> -n <name> -p <config path>