1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-23 13:50:36 +01:00
juanfont.headscale/cmd/headscale/cli
Kristoffer Dalby 7ef844bbc1
cli: add headscale auth register/approve commands
Add a new 'headscale auth' command group with two subcommands:

  headscale auth register --auth-id <id> --user <user>
  headscale auth approve --auth-id <id>

These replace the old 'headscale nodes register --key' workflow.
The old command is marked deprecated with a pointer to the new one.

Updates #1850
2026-02-20 11:52:03 +01:00
..
api_key.go cmd/headscale/cli: deduplicate expiration parsing and api-key flag validation 2026-02-20 11:42:07 +01:00
auth.go cli: add headscale auth register/approve commands 2026-02-20 11:52:03 +01:00
configtest.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
debug.go cli: add headscale auth register/approve commands 2026-02-20 11:52:03 +01:00
dump_config.go cmd/headscale/cli: remove no-op Args functions from serveCmd and dumpConfigCmd 2026-02-20 11:42:07 +01:00
generate.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
health.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-20 11:42:07 +01:00
mockoidc.go cmd/headscale/cli: move errMissingParameter and Error type to their users 2026-02-20 11:42:07 +01:00
nodes.go cli: add headscale auth register/approve commands 2026-02-20 11:52:03 +01:00
policy.go cmd/headscale/cli: extract bypassDatabase helper and simplify policy file reads 2026-02-20 11:42:07 +01:00
preauthkeys.go cmd/headscale/cli: use HeadscaleDateTimeFormat and util.Base10 consistently 2026-02-20 11:42:07 +01:00
pterm_style.go cmd/headscale/cli: use HeadscaleDateTimeFormat and util.Base10 consistently 2026-02-20 11:42:07 +01:00
root_test.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
root.go cmd/headscale/cli: remove nil resp guards and unexport HasMachineOutputFlag 2026-02-20 11:42:07 +01:00
serve.go cmd/headscale/cli: remove no-op Args functions from serveCmd and dumpConfigCmd 2026-02-20 11:42:07 +01:00
users.go cmd/headscale/cli: move errMissingParameter and Error type to their users 2026-02-20 11:42:07 +01:00
utils.go cmd/headscale/cli: remove nil resp guards and unexport HasMachineOutputFlag 2026-02-20 11:42:07 +01:00
version.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00