Manage project views (table, board, roadmap).
ghx view <command> [arguments] [flags]The view command group provides comprehensive view management for GitHub Projects. Views allow you to organize and visualize project items in different layouts.
| Layout | Description | Use Case |
|---|---|---|
table |
Spreadsheet-style table | Detailed data view |
board |
Kanban-style board | Workflow visualization |
roadmap |
Timeline view | Planning and scheduling |
| Command | Description |
|---|---|
list |
List project views |
create |
Create a new view |
update |
Update view properties |
copy |
Copy an existing view |
delete |
Delete a view |
sort |
Configure view sorting |
group |
Configure view grouping |
List views in a project.
ghx view list <project-ref> [flags]| Flag | Description | Default |
|---|---|---|
--format |
Output format (table, json) | table |
# List all views
ghx view list myorg/123
# JSON output
ghx view list myorg/123 --format jsonCreate a new project view.
ghx view create <project-ref> <name> <layout> [flags]<project-ref>- Project reference in formatowner/number<name>- View name<layout>- View layout (table, board, roadmap)
| Flag | Description |
|---|---|
--filter |
View filter expression |
--group-by |
Field to group by |
--sort-by |
Field to sort by |
# Create table view
ghx view create myorg/123 "All Items" table
# Create board view
ghx view create myorg/123 "Sprint Board" board
# Create roadmap view
ghx view create myorg/123 "Timeline" roadmap
# Create view with filter
ghx view create myorg/123 "Bugs" table --filter "label:bug"
# Create board grouped by status
ghx view create myorg/123 "Kanban" board --group-by StatusUpdate view properties.
ghx view update <view-id> [flags]| Flag | Description |
|---|---|
--name |
New view name |
--filter |
New filter expression |
# Rename view
ghx view update PVV_xxx --name "Sprint 2 Board"
# Update filter
ghx view update PVV_xxx --filter "status:open"Create a copy of an existing view.
ghx view copy <view-id> <new-name> [flags]# Copy view
ghx view copy PVV_xxx "Sprint 2 Board"Delete a project view.
ghx view delete <view-id> [flags]| Flag | Description |
|---|---|
--force |
Skip confirmation prompt |
# Delete with confirmation
ghx view delete PVV_xxx
# Delete without confirmation
ghx view delete PVV_xxx --forceConfigure view sorting.
ghx view sort <view-id> [flags]| Flag | Description | Default |
|---|---|---|
--field |
Field to sort by | - |
--direction |
Sort direction (asc, desc) | asc |
--clear |
Clear sorting | false |
# Sort by priority descending
ghx view sort PVV_xxx --field Priority --direction desc
# Sort by due date
ghx view sort PVV_xxx --field "Due Date" --direction asc
# Clear sorting
ghx view sort PVV_xxx --clearConfigure view grouping.
ghx view group <view-id> [flags]| Flag | Description | Default |
|---|---|---|
--field |
Field to group by | - |
--direction |
Group direction (asc, desc) | asc |
--clear |
Clear grouping | false |
# Group by status
ghx view group PVV_xxx --field Status
# Group by assignee descending
ghx view group PVV_xxx --field Assignee --direction desc
# Clear grouping
ghx view group PVV_xxx --clearViews support filter expressions to show only matching items:
| Filter | Description | Example |
|---|---|---|
label:name |
Filter by label | label:bug |
status:value |
Filter by status | status:open |
assignee:user |
Filter by assignee | assignee:octocat |
milestone:name |
Filter by milestone | milestone:v1.0 |
no:label |
Items without labels | no:label |
is:issue |
Only issues | is:issue |
is:pr |
Only pull requests | is:pr |
Multiple filters can be combined:
ghx view create myorg/123 "My Bugs" table --filter "label:bug assignee:@me status:open"