Manage GitHub Projects v2.
ghx project <command> [arguments] [flags]The project command group provides comprehensive project management capabilities for GitHub Projects v2, including creating, viewing, editing, and deleting projects, as well as export/import and workflow automation.
| Command | Description |
|---|---|
list |
List projects |
view |
View project details |
create |
Create a new project |
edit |
Edit project properties |
delete |
Delete a project |
export |
Export project data |
import |
Import project data |
link |
Link project to repository |
template |
Manage project templates |
workflow |
Manage project workflows |
List projects for a user or organization.
ghx project list [owner] [flags]| Flag | Description | Default |
|---|---|---|
--org |
List organization projects | - |
--user |
List user projects | - |
-L, --limit |
Maximum number of projects | 20 |
--format |
Output format (table, json, yaml) | table |
# List your projects
ghx project list
# List organization projects
ghx project list --org myorg
# List user projects
ghx project list octocat
# JSON output
ghx project list --format jsonView project details.
ghx project view <project-ref> [flags]<project-ref>- Project reference in formatowner/numberor project ID
| Flag | Description | Default |
|---|---|---|
--format |
Output format (table, json, yaml) | table |
# View by owner/number
ghx project view myorg/123
# View by project ID
ghx project view PVT_kwDOBcH12s4AXxyzCreate a new project.
ghx project create <title> [flags]| Flag | Description | Default |
|---|---|---|
--org |
Create in organization | - |
--user |
Create for user | - |
--description |
Project description | - |
--public |
Make project public | false |
# Create user project
ghx project create "My Project"
# Create organization project
ghx project create "Sprint 1" --org myorg
# Create with description
ghx project create "Q1 Planning" --org myorg --description "Planning for Q1 2024"
# Create public project
ghx project create "Public Roadmap" --org myorg --publicEdit project properties.
ghx project edit <project-ref> [flags]| Flag | Description |
|---|---|
--title |
New project title |
--description |
New description |
--public |
Make public (true/false) |
--readme |
Update README content |
# Update title
ghx project edit myorg/123 --title "New Title"
# Update description
ghx project edit myorg/123 --description "Updated description"
# Make project public
ghx project edit myorg/123 --public trueDelete a project.
ghx project delete <project-ref> [flags]| Flag | Description |
|---|---|
--force |
Skip confirmation prompt |
# Delete with confirmation
ghx project delete myorg/123
# Delete without confirmation
ghx project delete myorg/123 --forceExport project data to a file.
ghx project export <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
-o, --output |
Output file path | stdout |
--format |
Export format (json, csv, yaml) | json |
--include-items |
Include project items | true |
--include-fields |
Include field definitions | true |
--include-views |
Include view configurations | true |
# Export to JSON file
ghx project export myorg/123 -o project.json
# Export as CSV
ghx project export myorg/123 -o project.csv --format csv
# Export only structure (no items)
ghx project export myorg/123 -o template.json --include-items=falseImport project data from a file.
ghx project import <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
-i, --input |
Input file path | - |
--strategy |
Import strategy (merge, replace, append) | merge |
--dry-run |
Preview changes without applying | false |
# Import with merge strategy
ghx project import myorg/123 -i project.json
# Import with replace strategy
ghx project import myorg/123 -i project.json --strategy replace
# Preview import
ghx project import myorg/123 -i project.json --dry-runLink a project to a repository.
ghx project link <project-ref> <repository> [flags]# Link project to repository
ghx project link myorg/123 myorg/my-repoManage project templates.
ghx project template <action> [flags]list- List available templatescreate- Create template from projectapply- Apply template to project
# List templates
ghx project template list --org myorg
# Create template from project
ghx project template create myorg/123 --name "Sprint Template"
# Apply template
ghx project template apply myorg/456 --template "Sprint Template"Manage project workflows and automation.
ghx project workflow <action> [flags]list- List workflowscreate- Create workflowenable- Enable workflowdisable- Disable workflowdelete- Delete workflow
# List workflows
ghx project workflow list myorg/123
# Create auto-archive workflow
ghx project workflow create myorg/123 \
--name "Auto Archive" \
--trigger "status:done" \
--action "archive"
# Disable workflow
ghx project workflow disable myorg/123 workflow-id