This is a collection of bash scripts using curl I created to automate things with the Zerotier API.
Requirements:
Clone the repo, download a source zip or copy the shell scripts as needed.
Required enviroment variables:
ZEROTIER_TOKEN - set with your zerotier api token
NETWORK_ID - set with your network id
Available commands:
list-networks (ln): List zerotier networks
list-members (lm): List zerotier network members
update-member (um): Update zerotier member
quit: Exit from this menu
./zerotier.sh ln
network_name aaaabbbbccccdddd
./zerotier.sh lm
network_member_1 aaaabbbccc true 10.1.1.10
ddddeeefff false null
When running this command it will automatically authorize the network member
./zerotier.sh um ddddeeefff network_member_2