gh-project-item-add(1)

GH-PROJECT-ITEM-ADD(1) GitHub CLI manual GH-PROJECT-ITEM-ADD(1)

NAME

gh-project-item-add - Add a pull request or an issue to a project

SYNOPSIS

gh project item-add [<number>] [flags]

OPTIONS

--format <string>
Output format: {json}

-q, --jq <expression>
Filter JSON output using a jq expression

--owner <string>
Login of the owner. Use "@me" for the current user.

-t, --template <string>
Format JSON output using a Go template; see "gh help formatting"

--url <string>
URL of the issue or pull request to add to the project

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

# Add an item to monalisa's project "1"
$ gh project item-add 1 --owner monalisa --url https://github.com/monalisa/myproject/issues/23

SEE ALSO

gh-project(1)

Jul 2026 GitHub CLI v2.96.0