mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-04 13:53:37 +09:00
cli: accept a user name in preauthkeys create --user
Resolved through lookupUser like the users commands, so scripts skip the users list round trip. Digit-only values stay IDs.
This commit is contained in:
committed by
Kristoffer Dalby
parent
715c5a4a1c
commit
62f89ca25d
@@ -133,14 +133,14 @@ headscale instance. By default, the key is valid for one hour and can only be us
|
||||
=== "Native"
|
||||
|
||||
```shell
|
||||
headscale preauthkeys create --user <USER_ID>
|
||||
headscale preauthkeys create --user <USER>
|
||||
```
|
||||
|
||||
=== "Container"
|
||||
|
||||
```shell
|
||||
docker exec -it headscale \
|
||||
headscale preauthkeys create --user <USER_ID>
|
||||
headscale preauthkeys create --user <USER>
|
||||
```
|
||||
|
||||
The command returns the preauthkey on success which is used to connect a node to the headscale instance via the
|
||||
|
||||
Reference in New Issue
Block a user