GitHub CLI reference

qianmoQqianmoQ· 更新于 2026-09-15· 阅读 2 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

GitHub CLI reference

You can view all of the GitHub CLI commands in your terminal. The same information is available in the GitHub CLI manual.

To view all top-level GitHub CLI commands, enter gh without arguments.

gh

To list all of the subcommands that you can use with a GitHub CLI command, use the top-level command without arguments.

gh COMMAND

For example, to view the environment variables that you can set to affect certain aspects of GitHub CLI, use the environment command.

gh environment

To view the configuration settings that you can set, use the config command.

gh config

To view help for a particular subcommand, use the --help flag.

gh COMMAND [SUBCOMMAND ...] --help

All of the information that's available by running these commands in the terminal is also included in the GitHub CLI online manual.

评论

登录后参与评论

正在加载评论…