GH-EXTENSION-EXEC(1) GitHub CLI manual GH-EXTENSION-EXEC(1)

# [NAME](#NAME)

gh-extension-exec - Execute an installed extension

# [SYNOPSIS](#SYNOPSIS)

**gh extension exec &lt;name&gt; \[args] \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Execute an extension using the short name. For example, if the extension repository is **owner/gh-extension**, you should pass **extension**. You can use this command when the short name conflicts with a core gh command.

All arguments after the extension name will be forwarded to the executable of the extension.

# [EXIT CODES](#EXIT_CODES)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# [EXAMPLE](#EXAMPLE)

```
# Execute a label extension instead of the core gh label command
$ gh extension exec label
```

# [SEE ALSO](#SEE_ALSO)

[**gh-extension(1)**](/man/os/gh/gh-extension.1)

Oct 2026

---

Document: gh-extension-exec(1) from gh 2.103.0-r0 (Chainguard OS)
Source: https://github.com/cli/cli
