headscale ¶
📖 headscale 命令大全及使用导航 ¶
文档基于headscale版本:version v0.29.1 ¶
headscale基于go1.26.4 linux/amd64 ¶
1. apikeys 中文释义: API密钥 功能描述: 管理Headscale中的API密钥 (Handle the Api keys in Headscale) ¶
2. auth 中文释义: 认证 功能描述: 管理节点的认证和审批 (Manage node authentication and approval) ¶
3. completion 中文释义: 自动补全 功能描述: 为指定的Shell生成自动补全脚本 (Generate the autocompletion script for the specified shell) ¶
4. configtest 中文释义: 配置测试 功能描述: 测试配置文件 (Test the configuration.) ¶
5. debug 中文释义: 调试 功能描述: 调试和测试命令 (debug and testing commands) ¶
6. generate 中文释义: 生成 功能描述: 生成命令 (Generate commands) ¶
7. health 中文释义: 健康检查 功能描述: 检查Headscale服务器的健康状态 (Check the health of the Headscale server) ¶
8. help 中文释义: 帮助 功能描述: 查看任何命令的帮助信息 (Help about any command) ¶
9. mockoidc 中文释义: 模拟OIDC 功能描述: 运行一个模拟的OIDC服务器用于测试 (Runs a mock OIDC server for testing) ¶
10. nodes 中文释义: 节点 功能描述: 管理Headscale中的节点 (Manage the nodes of Headscale) ¶
11. policy 中文释义: 策略 功能描述: 管理Headscale的ACL访问控制策略 (Manage the Headscale ACL Policy) ¶
12. preauthkeys 中文释义: 预授权密钥 功能描述: 管理Headscale中的预授权密钥 (Handle the preauthkeys in Headscale) ¶
13. serve 中文释义: 运行服务 功能描述: 启动headscale服务器 (Launches the headscale server) ¶
14. users 中文释义: 用户 功能描述: 管理Headscale中的用户 (Manage the users of Headscale) ¶
15. version 中文释义: 版本 功能描述: 打印版本信息 (Print the version.) ¶
全局标志 (Flags) ¶
-c, --config string
中文释义: 配置文件
说明: 指定配置文件路径 (默认为 /etc/headscale/config.yaml)
--force
中文释义: 强制
说明: 禁用提示并强制执行 (Disable prompts and forces the execution)
-h, --help
中文释义: 帮助
说明: 显示帮助信息
-o, --output string
中文释义: 输出格式
说明: 指定输出格式。留空为人类可读格式,可选 'json', 'json-line' 或 'yaml'
使用示例
要查看某个命令的更多详细信息,可以使用:
headscale [command] --help
例如,查看 nodes 命令的详细用法:
headscale nodes --help