Move flags after the command (#2100)
The built-in help also shows flags to given after the command. Align documentation examples accordingly.
This commit is contained in:
parent
f039caf134
commit
e43d6a0361
5 changed files with 10 additions and 10 deletions
|
@ -117,7 +117,7 @@ To register a machine when running `headscale` in a container, take the headscal
|
|||
|
||||
```shell
|
||||
docker exec headscale \
|
||||
headscale --user myfirstuser nodes register --key <YOUR_MACHINE_KEY>
|
||||
headscale nodes register --user myfirstuser --key <YOUR_MACHINE_KEY>
|
||||
```
|
||||
|
||||
### Register machine using a pre authenticated key
|
||||
|
@ -126,7 +126,7 @@ Generate a key using the command line:
|
|||
|
||||
```shell
|
||||
docker exec headscale \
|
||||
headscale --user myfirstuser preauthkeys create --reusable --expiration 24h
|
||||
headscale preauthkeys create --user myfirstuser --reusable --expiration 24h
|
||||
```
|
||||
|
||||
This will return a pre-authenticated key that can be used to connect a node to `headscale` during the `tailscale` command:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue