← 返回命令列表

Linux command

gh-extension 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install an extension

gh extension install [owner]/[repo]

List installed extensions

gh extension list

Upgrade all extensions

gh extension upgrade --all

Remove an extension

gh extension remove [name]

Create a new extension

gh extension create [name]

说明

gh extension manages GitHub CLI extensions. Extensions add new commands to gh, providing functionality beyond the built-in commands like accessibility testing, code review tools, or custom workflows. Extensions are GitHub repositories containing executables that follow gh's extension protocol. They can be written in any language and distributed through GitHub. The extension system enables community contributions to gh. gh extension provides full lifecycle management from installation to updates and removal.

参数

install _REPO_
Install extension from repository.
list
List installed extensions.
upgrade
Upgrade installed extensions.
remove _NAME_
Uninstall an extension.
create _NAME_
Scaffold a new extension.
browse
Browse available extensions.
--all
Apply to all extensions (upgrade).
--help
Display help information.

FAQ

What is the gh-extension command used for?

gh extension manages GitHub CLI extensions. Extensions add new commands to gh, providing functionality beyond the built-in commands like accessibility testing, code review tools, or custom workflows. Extensions are GitHub repositories containing executables that follow gh's extension protocol. They can be written in any language and distributed through GitHub. The extension system enables community contributions to gh. gh extension provides full lifecycle management from installation to updates and removal.

How do I run a basic gh-extension example?

Run `gh extension install [owner]/[repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does install _REPO_ do in gh-extension?

Install extension from repository.