ghx-cli provides commands organized into logical groups for managing GitHub Projects and Discussions.
| Command | Description |
|---|---|
| ghx project | Manage GitHub Projects v2 |
| ghx item | Manage project items (issues, PRs, drafts) |
| ghx field | Manage custom fields |
| ghx view | Manage project views |
| ghx discussion | Manage GitHub Discussions |
| ghx analytics | Generate reports and bulk operations |
| ghx auth | Manage authentication |
These flags are available for all commands:
| Flag | Description | Default |
|---|---|---|
--config |
Config file path | $HOME/.ghx.yaml |
--token |
GitHub Personal Access Token | - |
--org |
GitHub organization | - |
--user |
GitHub user | - |
--format |
Output format (table, json, yaml) | table |
--debug |
Enable debug output | false |
--no-cache |
Disable caching | false |
-h, --help |
Help for command | - |
-v, --version |
Version information | - |
Commands follow this pattern:
ghx <group> <action> [arguments] [flags]
Examples:
ghx project list # List projects
ghx project view myorg/123 # View specific project
ghx item add myorg/123 repo#42 # Add item to project
ghx discussion create owner/repo # Create discussionHuman-readable table format:
ghx project listNUMBER TITLE ITEMS UPDATED
1 Sprint 1 42 2024-01-15
2 Backlog 128 2024-01-14
Machine-readable JSON format:
ghx project list --format json[
{"number": 1, "title": "Sprint 1", "items": 42},
{"number": 2, "title": "Backlog", "items": 128}
]YAML format for configuration files:
ghx project list --format yaml- number: 1
title: Sprint 1
items: 42
- number: 2
title: Backlog
items: 128| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 3 | Authentication error |
| 4 | API error |
# General help
ghx --help
# Group help
ghx project --help
# Command help
ghx project create --help