|
| 1 | +# Flag Reference |
| 2 | + |
| 3 | +## Global flags |
| 4 | + |
| 5 | +These flags apply to all commands. |
| 6 | + |
| 7 | +| Flag | Description | |
| 8 | +|---|---| |
| 9 | +| `--repo [HOST/]OWNER/REPO` | Target repository. When omitted, detected from `git remote origin` in the current directory. | |
| 10 | +| `--cache-dir string` | Override the cache directory (default `~/.cache/gh-cached/`). | |
| 11 | +| `--api-url string` | Override the GitHub GraphQL API endpoint (for testing). | |
| 12 | +| `--version`, `-v` | Print version. | |
| 13 | +| `--help`, `-h` | Show help. | |
| 14 | + |
| 15 | +## cache |
| 16 | + |
| 17 | +| Flag | Default | Description | |
| 18 | +|---|---|---| |
| 19 | +| `--cache-duration int` | `60` | Minutes before the cache is considered stale | |
| 20 | +| `--force` | `false` | Re-fetch even if the cache is still fresh (full fetch, not delta) | |
| 21 | + |
| 22 | +## issue list |
| 23 | + |
| 24 | +| Flag | Short | Default | Description | |
| 25 | +|---|---|---|---| |
| 26 | +| `--state string` | `-s` | `open` | Filter by state: `open`, `closed`, or `all` | |
| 27 | +| `--author string` | `-A` | | Filter by author | |
| 28 | +| `--assignee string` | `-a` | | Filter by assignee | |
| 29 | +| `--label strings` | `-l` | | Filter by label (repeat for AND logic) | |
| 30 | +| `--milestone string` | `-m` | | Filter by milestone number or title | |
| 31 | +| `--mention string` | | | Filter by mention | |
| 32 | +| `--app string` | | | Filter by GitHub App author | |
| 33 | +| `--search string` | `-S` | | Search query (case-insensitive substring match on title and body) | |
| 34 | +| `--limit int` | `-L` | `1000` | Maximum number of results | |
| 35 | +| `--json` | | `false` | Output as JSON | |
| 36 | +| `--no-truncate` | | `false` | Don't truncate long titles | |
| 37 | + |
| 38 | +## issue view |
| 39 | + |
| 40 | +| Flag | Short | Default | Description | |
| 41 | +|---|---|---|---| |
| 42 | +| `--comments` | `-c` | `false` | Show comments | |
| 43 | +| `--json` | | `false` | Output as JSON | |
| 44 | +| `--refresh` | | `false` | Force fetch from GitHub and update cache | |
| 45 | + |
| 46 | +## pr list |
| 47 | + |
| 48 | +| Flag | Short | Default | Description | |
| 49 | +|---|---|---|---| |
| 50 | +| `--state string` | `-s` | `open` | Filter by state: `open`, `closed`, `merged`, or `all` | |
| 51 | +| `--author string` | `-A` | | Filter by author | |
| 52 | +| `--assignee string` | `-a` | | Filter by assignee | |
| 53 | +| `--label strings` | `-l` | | Filter by label (repeat for AND logic) | |
| 54 | +| `--base string` | `-B` | | Filter by base branch name | |
| 55 | +| `--head string` | `-H` | | Filter by head branch name | |
| 56 | +| `--draft` | `-d` | `false` | Show only draft PRs | |
| 57 | +| `--app string` | | | Filter by GitHub App author | |
| 58 | +| `--search string` | `-S` | | Search query (case-insensitive substring match on title and body) | |
| 59 | +| `--limit int` | `-L` | `1000` | Maximum number of results | |
| 60 | +| `--json` | | `false` | Output as JSON | |
| 61 | +| `--no-truncate` | | `false` | Don't truncate long titles | |
| 62 | + |
| 63 | +## pr view |
| 64 | + |
| 65 | +| Flag | Short | Default | Description | |
| 66 | +|---|---|---|---| |
| 67 | +| `--comments` | `-c` | `false` | Show comments | |
| 68 | +| `--json` | | `false` | Output as JSON | |
| 69 | +| `--refresh` | | `false` | Force fetch from GitHub and update cache | |
| 70 | + |
| 71 | +## repo list |
| 72 | + |
| 73 | +No command-specific flags. Uses only the global `--cache-dir`. |
0 commit comments