← 返回命令列表

Linux command

zerotier-cli 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Show node status

sudo zerotier-cli status

Join a network

sudo zerotier-cli join [network_id]

Leave a network

sudo zerotier-cli leave [network_id]

List joined networks

sudo zerotier-cli listnetworks

List connected peers

sudo zerotier-cli listpeers

Show node info

sudo zerotier-cli info

说明

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.

参数

-D _path_
ZeroTier home directory
-p _port_
Local API port
-T _token_
Authentication token

FAQ

What is the zerotier-cli command used for?

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.

How do I run a basic zerotier-cli example?

Run `sudo zerotier-cli status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -D _path_ do in zerotier-cli?

ZeroTier home directory