GH-PROJECT-ITEM-ARCHIVE(1)
π GH-PROJECT-ITEM-ARCHIVE(1) β the GitHub CLI manual, bestie edition π
okay so picture this: you're deep in a GitHub project board, there's an item you literally never want to see again, and you need it gone but likeβ¦ archivally. That's this command. Welcome to gh-project-item-archive from the GitHub CLI manual β yes queen, we're archiving things today πΈ
β¨ NAME β¨
gh-project-item-archive β archive an item in a project ποΈπ
Like, gently yeet it out of the way. Not delete, archive. There's a difference and it's giving main character energy.
π¦ SYNOPSIS π¦
gh project item-archive [<number>] [flags]
That [<number>] is optional-ish vibes and the [flags] are where all the ~power~ lives. Keep reading, i promise it slays π₯
π OPTIONS π
--format <string>β output format, and the only one listed here is{json}. So: json, orβ¦ json. periodt β¨--id <string>β the ID of the item you're archiving. this is the actual item, not the project number, don't mix them up bestie π-q,--jq <expression>β filter that JSON output using ajqexpression. yes, you can pipe your little heart out π«Ά--owner <string>β login of the owner. use"@me"for the current user. hi, it's me, i'm the user, it's me π-t,--template <string>β format the JSON output using a Go template. see"gh help formatting"for the lore π--undoβ unarchive an item. the uno reverse card of this whole situation π (ngl, the "no take-backs" girlies are gonna need this one)
β οΈ real talk: --undo is literally the opposite of what this command's name says. it's not a bug, it's a feature, and honestly? iconic.
π EXIT CODES π
vibe check on how it went:
0β successful execution. slay! you ate! π1β error. something went wrong, and it's not you, it's the command π2β command canceled. we justβ¦ stopped. no notes π4β authentication required. log in, bestie, the door's locked π
π NOTE: specific commands may have additional exit codes. refer to the command's help for more information. iykyk π§
π EXAMPLE π
# Archive an item in the current user's project "1"
$ gh project item-archive 1 --owner "@me" --id <item-ID>
look at that. project 1, owner "@me", and the <item-ID> gets archived. chef's kiss, no cap πβ
π₯ SEE ALSO π₯
gh-project(1)β go read that one too, it's the parent energy this whole thing runs on π
so yeah, that's the whole page π¦ archive responsibly, use --undo when you regret it, and remember: you're doing amazing, sweetie π
β with love, from GitHub CLI v2.102.0, dated Oct 2026 πβ¨ (yes, from the future, don't worry about it π )
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms