Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions skills/github-project/references/gh-cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,27 @@ gh release view --repo OWNER/REPO
gh release download TAG --repo OWNER/REPO
```

## Packages (GHCR)

```bash
# List org container packages
gh api "orgs/ORG/packages?package_type=container"

# Inspect a package (needs read:packages)
gh api "orgs/ORG/packages/container/PACKAGE"

# Delete a package — needs BOTH read:packages AND delete:packages.
# admin:org alone is NOT enough; delete:packages alone still 403s.
gh auth refresh -h github.com -s read:packages,delete:packages
gh api -X DELETE "orgs/ORG/packages/container/PACKAGE" # 204; GET then 404
```

Verify the token's effective scopes from GitHub's response header, not `gh auth status` (which can lag):

```bash
gh api "" --include 2>&1 | grep -i '^X-Oauth-Scopes:'
```

## Files and Content

```bash
Expand Down
Loading