Generate analytics, reports, and perform bulk operations on GitHub Projects.
ghx analytics <command> [arguments] [flags]The analytics command group provides reporting, data export/import, and bulk operation capabilities for GitHub Projects.
| Command | Description |
|---|---|
overview |
Generate project overview |
velocity |
Generate velocity metrics |
timeline |
Generate timeline analytics |
distribution |
Generate item distribution |
export |
Export project data |
import |
Import project data |
bulk-update |
Update multiple items |
bulk-delete |
Delete multiple items |
bulk-archive |
Archive multiple items |
operation-status |
Check bulk operation status |
Generate project overview statistics.
ghx analytics overview <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
--format |
Output format (table, json) | table |
# Get project overview
ghx analytics overview myorg/123
# JSON output
ghx analytics overview myorg/123 --format json- Total items count
- Items by status
- Items by assignee
- Recent activity
- Completion percentage
Generate velocity metrics over time.
ghx analytics velocity <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
--period |
Time period (daily, weekly, monthly) | weekly |
--range |
Date range (e.g., 30d, 3m) | 30d |
--format |
Output format (table, json) | table |
# Weekly velocity
ghx analytics velocity myorg/123 --period weekly
# Monthly velocity for 3 months
ghx analytics velocity myorg/123 --period monthly --range 3mGenerate timeline analytics.
ghx analytics timeline <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
--range |
Date range | 30d |
--format |
Output format (table, json) | table |
ghx analytics timeline myorg/123 --range 90dGenerate item distribution analytics.
ghx analytics distribution <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
--by |
Group by (status, assignee, label, priority) | status |
--format |
Output format (table, json) | table |
# Distribution by status
ghx analytics distribution myorg/123 --by status
# Distribution by assignee
ghx analytics distribution myorg/123 --by assigneeExport project data.
ghx analytics export <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
-o, --output |
Output file | stdout |
--format |
Export format (json, csv, xml) | json |
--include-all |
Include all data | false |
--items-only |
Export items only | false |
# Export to JSON
ghx analytics export myorg/123 -o project.json
# Export as CSV
ghx analytics export myorg/123 -o items.csv --format csv --items-only
# Export all data
ghx analytics export myorg/123 -o full-backup.json --include-allImport project data.
ghx analytics import <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
-i, --input |
Input file | - |
--strategy |
Import strategy | merge |
--dry-run |
Preview without changes | false |
| Strategy | Description |
|---|---|
merge |
Merge with existing data |
replace |
Replace existing items |
append |
Add without modifying existing |
skip_conflicts |
Skip conflicting items |
# Import with merge
ghx analytics import myorg/123 -i data.json --strategy merge
# Preview import
ghx analytics import myorg/123 -i data.json --dry-run
# Replace existing
ghx analytics import myorg/123 -i data.json --strategy replaceUpdate multiple project items at once.
ghx analytics bulk-update <project-ref> [flags]| Flag | Description |
|---|---|
--items |
Comma-separated item IDs |
--filter |
Filter expression |
--field |
Field to update |
--value |
New value |
# Update specific items
ghx analytics bulk-update myorg/123 \
--items "PVTI_a,PVTI_b,PVTI_c" \
--field Status \
--value Done
# Update items matching filter
ghx analytics bulk-update myorg/123 \
--filter "Status:In Progress" \
--field Status \
--value DoneDelete multiple project items.
ghx analytics bulk-delete <project-ref> [flags]| Flag | Description |
|---|---|
--items |
Comma-separated item IDs |
--filter |
Filter expression |
--force |
Skip confirmation |
# Delete specific items
ghx analytics bulk-delete myorg/123 --items "PVTI_a,PVTI_b" --force
# Delete items matching filter
ghx analytics bulk-delete myorg/123 --filter "label:wontfix" --forceArchive multiple project items.
ghx analytics bulk-archive <project-ref> [flags]| Flag | Description |
|---|---|
--items |
Comma-separated item IDs |
--filter |
Filter expression |
--force |
Skip confirmation |
# Archive completed items
ghx analytics bulk-archive myorg/123 --filter "Status:Done" --forceCheck the status of a bulk operation.
ghx analytics operation-status <operation-id>ghx analytics operation-status OP_kwDOxxxxxx- Operation type
- Status (pending, in_progress, completed, failed)
- Items processed
- Errors if any