mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
Root admin stuff
This commit is contained in:
parent
4303c43db7
commit
b0d222768a
16 changed files with 217 additions and 46 deletions
|
@ -24,14 +24,14 @@ Licensed under the ZeroTier BSL (see LICENSE.txt)`, zerotier.CoreVersionMajor, z
|
|||
|
||||
// Help dumps help to stdout
|
||||
func Help() {
|
||||
fmt.Println(copyrightText + `
|
||||
|
||||
fmt.Println(copyrightText)
|
||||
fmt.Println(`
|
||||
Usage: zerotier [-options] <command> [-options] [command args]
|
||||
|
||||
Global Options:
|
||||
-j Output raw JSON where applicable
|
||||
-p <path> Use alternate base path
|
||||
-t <authtoken.secret path> Use secret auth token from this file
|
||||
-t <path> Use secret auth token from this file
|
||||
|
||||
Commands:
|
||||
help Show this help
|
||||
|
@ -40,12 +40,11 @@ Commands:
|
|||
status Show ZeroTier service status and config
|
||||
peers Show VL1 peers
|
||||
roots Show VL1 root servers
|
||||
addroot <type> [options] Add a VL1 root
|
||||
static <identity> <ip/port> [...] Add a root with a set identity and IPs
|
||||
dynamic <name> [default locator] Add a dynamic root fetched by name
|
||||
removeroot <type> [options] Remove a VL1 root
|
||||
static <identity> Remove a root with a set identity
|
||||
dynamic <name> Remove a dynamic root fetched by name
|
||||
addroot <locator> [<name>] Add a VL1 root
|
||||
removeroot <name> Remove a VL1 root
|
||||
makelocator <secret> <address> [...] Make and sign a locator
|
||||
makelocatordnskey Create a new secure DNS name and key
|
||||
makelocatordns <key> <locator> Make DNS TXT records for a locator
|
||||
networks Show joined VL2 virtual networks
|
||||
join <network ID> Join a virtual network
|
||||
leave <network ID> Leave a virtual network
|
||||
|
@ -71,6 +70,6 @@ Most commands require a secret token to permit control of a running ZeroTier
|
|||
service. The CLI will automatically try to read this token from the
|
||||
authtoken.secret file in the service's working directory and then from a
|
||||
file called .zerotierauth in the user's home directory. The -t option can be
|
||||
used to explicitly specify a location.
|
||||
`)
|
||||
used to explicitly specify a location.`)
|
||||
fmt.Println()
|
||||
}
|
||||
|
|
18
go/cmd/zerotier/cli/makelocator.go
Normal file
18
go/cmd/zerotier/cli/makelocator.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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
|
||||
|
||||
// MakeLocator CLI command
|
||||
func MakeLocator(args []string) {
|
||||
}
|
18
go/cmd/zerotier/cli/makelocatordns.go
Normal file
18
go/cmd/zerotier/cli/makelocatordns.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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
|
||||
|
||||
// MakeLocatorDNS CLI command
|
||||
func MakeLocatorDNS(args []string) {
|
||||
}
|
18
go/cmd/zerotier/cli/makelocatordnskey.go
Normal file
18
go/cmd/zerotier/cli/makelocatordnskey.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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
|
||||
|
||||
// MakeLocatorDNSKey CLI command
|
||||
func MakeLocatorDNSKey(args []string) {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue