mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-03 11:37:36 +00:00
92 lines
2.2 KiB
Markdown
92 lines
2.2 KiB
Markdown
# Organization Features
|
|
|
|
Detailed command reference for Linear CLI organization features: initiatives, labels, projects, and bulk operations.
|
|
|
|
## Initiative Management
|
|
|
|
```bash
|
|
# List initiatives (default: active only)
|
|
linear initiative list
|
|
linear initiative list --all-statuses
|
|
linear initiative list --status planned
|
|
|
|
# View initiative details
|
|
linear initiative view <id-or-slug>
|
|
|
|
# Create initiative
|
|
linear initiative create --name "Q1 Goals" --status active
|
|
linear initiative create -i # Interactive mode
|
|
|
|
# Archive/unarchive
|
|
linear initiative archive <id>
|
|
linear initiative unarchive <id>
|
|
|
|
# Link projects to initiatives
|
|
linear initiative add-project <initiative> <project>
|
|
linear initiative remove-project <initiative> <project>
|
|
```
|
|
|
|
## Label Management
|
|
|
|
```bash
|
|
# List labels (shows ID, name, color, team)
|
|
linear label list
|
|
linear label list --team DEV
|
|
linear label list --workspace # Workspace-level only
|
|
|
|
# Create label
|
|
linear label create --name "Bug" --color "#EB5757"
|
|
linear label create --name "Feature" --team DEV
|
|
|
|
# Delete label (by ID or name)
|
|
linear label delete <id>
|
|
linear label delete "Bug" --team DEV
|
|
```
|
|
|
|
## Project Management
|
|
|
|
```bash
|
|
# List projects
|
|
linear project list
|
|
|
|
# View project
|
|
linear project view <id>
|
|
|
|
# Create project
|
|
linear project create --name "New Feature" --team DEV
|
|
linear project create --name "Q1 Work" --team DEV --initiative "Q1 Goals"
|
|
linear project create -i # Interactive mode
|
|
```
|
|
|
|
## Bulk Operations
|
|
|
|
```bash
|
|
# Delete multiple issues
|
|
linear issue delete --bulk DEV-123 DEV-124 DEV-125
|
|
|
|
# Delete from file (one ID per line)
|
|
linear issue delete --bulk-file issues.txt
|
|
|
|
# Delete from stdin
|
|
echo -e "DEV-123\nDEV-124" | linear issue delete --bulk-stdin
|
|
|
|
# Archive multiple initiatives
|
|
linear initiative archive --bulk <id1> <id2>
|
|
```
|
|
|
|
## Updating Labels on Issues
|
|
|
|
```bash
|
|
# Add a label, keeping the issue's existing labels
|
|
linear issue update DEV-123 --add-label "Bug"
|
|
|
|
# Remove a label from this issue only (label delete removes it team-wide)
|
|
linear issue update DEV-123 --remove-label "sprint-42"
|
|
|
|
# Swap labels atomically in one update
|
|
linear issue update DEV-123 --remove-label "sprint-42" --add-label "sprint-43"
|
|
|
|
# Replace the entire label set with exactly these labels
|
|
linear issue update DEV-123 --label "Bug" --label "High Priority"
|
|
```
|