LinuxCommandLibrary

zerotier-cli

Manage ZeroTier virtual network connections

TLDR

Show node status

$ sudo zerotier-cli status
copy
Join a network
$ sudo zerotier-cli join [network_id]
copy
Leave a network
$ sudo zerotier-cli leave [network_id]
copy
List joined networks
$ sudo zerotier-cli listnetworks
copy
List connected peers
$ sudo zerotier-cli listpeers
copy
Show node info
$ sudo zerotier-cli info
copy

SYNOPSIS

zerotier-cli [options] command [args]

DESCRIPTION

zerotier-cli is the command-line interface for managing ZeroTier One, a software-defined networking (SDN) service that creates secure virtual networks. It communicates with the local zerotier-one service.
ZeroTier creates encrypted peer-to-peer connections between nodes, forming virtual LANs across the internet. Each node gets a unique 10-digit address. Networks are identified by 16-digit network IDs.
After joining a network, nodes can communicate as if on the same LAN, enabling remote access, gaming, and connecting distributed systems. Network membership is managed through ZeroTier Central or self-hosted controllers.

PARAMETERS

-D path

ZeroTier home directory
-p port
Local API port
-T token
Authentication token

SUBCOMMANDS

status

Show node status and address
info
Display node information
join network
Join a ZeroTier network
leave network
Leave a ZeroTier network
listnetworks
List joined networks
listpeers
List connected peers
listmoons
List joined moons (custom roots)
orbit worldid seed_
Join a moon
deorbit worldid_
Leave a moon
set network setting value
Configure network settings

CAVEATS

Most commands require root/sudo to communicate with the zerotier-one service.
Joining a network requires authorization from the network controller (automatic for public networks, manual for private).
Firewall rules may need adjustment to allow ZeroTier traffic (UDP port 9993 by default).
Network performance depends on whether direct peer connections can be established or traffic must relay.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community