/* * Copyright (c)2019 ZeroTier, Inc. * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file in the project's root directory. * * Change Date: 2023-01-01 * * On the date above, in accordance with the Business Source License, use * of this software will be governed by version 2.0 of the Apache License. */ /****/ package cli import ( "fmt" "zerotier/pkg/zerotier" ) var copyrightText = fmt.Sprintf(`ZeroTier Network Virtualization Service Version %d.%d.%d (c)2019 ZeroTier, Inc. Licensed under the ZeroTier BSL (see LICENSE.txt)`, zerotier.CoreVersionMajor, zerotier.CoreVersionMinor, zerotier.CoreVersionRevision) // Help dumps help to stdout func Help() { fmt.Println(copyrightText) fmt.Println(` Usage: zerotier [-options] [command args] Global Options: -j Output raw JSON where applicable -p Use alternate base path -t Use secret auth token from this file Commands: help Show this help version Print version selftest Run internal tests service [mode] Start as service (default mode: node) node Start in normal node mode (default) root [options] Start in root server mode (see docs) status Show ZeroTier status and config peers Show VL1 peers roots Show configured VL1 root servers addroot [ip/port] [...] Add VL1 root server removeroot Remove VL1 root server identity [args] Identity management commands new [c25519|p384] Create identity (including secret) getpublic Extract only public part of identity validate Locally validate an identity sign Sign a file with an identity's key verify Verify a signature networks List joined VL2 virtual networks network Show verbose network info join Join a virtual network leave Leave a virtual network set