Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pages/common/zerotier-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# zerotier-cli

> Manage a local ZeroTier node and its network memberships.
> Most of these commands require `sudo`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> Most of these commands require `sudo`.

Not here. In the commands themselves

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

> More information: <https://docs.zerotier.com/cli/>.
- Show node status:

`zerotier-cli status`

- List networks this node knows about:

`zerotier-cli listnetworks`

- Join a network:

`zerotier-cli join {{network_id}}`

- Leave a network:

`zerotier-cli leave {{network_id}}`

- Show peers:

`zerotier-cli listpeers`

- Output JSON:

`zerotier-cli -j {{command}}`
16 changes: 16 additions & 0 deletions pages/common/zerotier-idtool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# zerotier-idtool

> Manage ZeroTier identities (public/private keys, addresses).
> More information: <https://github.com/zerotier/ZeroTierOne/blob/dev/doc/zerotier-idtool.1.md>.

- Generate a new identity pair and write to two files:

`zerotier-idtool generate {{identity.public}} {{identity.secret}}`

- Show the ZeroTier address for an identity file:

`zerotier-idtool get {{identity.public}}`

- Initialize a moon definition and write JSON to a file:

`zerotier-idtool initmoon {{identity.public}} > {{moon.json}}`
17 changes: 17 additions & 0 deletions pages/common/zerotier-one.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# zerotier-one

> ZeroTier service daemon.
> Most of these commands require `sudo`.
> More information: <https://github.com/zerotier/ZeroTierOne/blob/dev/doc/zerotier-one.8.md>.

- Start the daemon in the foreground:

`zerotier-one`

- Start the daemon in the background:

`zerotier-one -d`

- Use a custom working directory:

`zerotier-one -d -D {{path/to/directory}}`