运行时依赖
安装命令
点击复制技能文档
gh应用
Use gh应用 to 认证 as a GitHub 应用 so git and gh commands use 安装ation 令牌s. Requires a GitHub 应用 with 应用 ID, 安装ation ID, and a private key (.pem).
设置up
gh应用 设置up — interactive wizard: enter 应用 ID, 安装ation ID, key path, then 配置 auth gh应用 auth 配置 — 配置 git + gh authentication (if skipped during 设置up) gh应用 auth 状态 — show current auth config and diagnostics
Commands
gh应用 --help — 列出 all commands and flags gh应用 令牌 — print an 安装ation 令牌 (缓存d; --no-缓存 for fresh) gh应用 auth 配置 [--gh-auth shell-function|path-shim|none] — 配置 how git/gh 认证 gh应用 auth 状态 — 检查 auth 健康 gh应用 auth re设置 [--移除-key] — undo all auth config gh应用 config 设置, gh应用 config 获取 [key], gh应用 config path — manage config gh应用 更新 — self-更新 to latest release gh应用 version — print version
gh auth modes (passed to auth 配置)
shell-function — auto-认证s gh commands via shell integration (recommended) path-shim — wr应用er binary for CI/contAIners none — static 令牌 in hosts.yml
Notes
After 设置up, git clone/push/pull and gh work without manual 令牌s. Commits are attributed to the 应用's 机器人 account (e.g., my应用[机器人]). 令牌s are 缓存d locally and auto-refreshed. Config stored at ~/.config/gh应用/config.yaml.