CLI Reference¶
Complete reference for all Gira commands and options.
Table of Contents¶
Other Commands¶
-
gira workflow analyze
- Analyze workflow patterns and suggest improvements. -
gira workflow apply
- Apply a predefined workflow template. -
gira workflow config
- Display current workflow configuration. -
gira workflow diagram
- Display visual workflow diagram. -
gira workflow enforce
- Set workflow enforcement level. -
gira workflow migrate
- Migrate tickets from one workflow to another. -
gira workflow rule
- Manage custom workflow rules. -
gira workflow show
- Display available workflow transitions for a ticket. -
gira workflow stats
- Show workflow statistics and metrics. -
gira workflow strict
- Enable or disable strict workflow enforcement. -
gira workflow templates
- List available workflow templates. -
gira workflow transitions
- Manage allowed status transitions. -
gira workflow validate
- Validate all tickets against workflow rules.
Global Options¶
These options can be used with any command:
--help
- Show help message and exit--version
- Show version number and exit
Commands¶
gira workflow show
¶
Display available workflow transitions for a ticket.
Arguments:
ticket_id
- Ticket ID to show workflow for (required)- Type: string
- Pattern:
^[A-Z]{2,4}-\d+$
- Examples: GIRA-123, GCM-456, PROJ-1
Options:
-c, --check
- Check if a specific transition is valid-
Default:
-
-o, --output
- Output format: text, json - Choices: text, json, table, csv
- Default: text
-
Examples: json, table
-
-v, --visual
- Show visual workflow position - Type: boolean
Examples:
gira workflow validate
¶
Validate all tickets against workflow rules.
Options:
-s, --status
- Only validate tickets in this status- Choices: backlog, todo, in_progress, review, done
- Default:
-
Examples: backlog, todo, in_progress
-
-t, --type
- Only validate tickets of this type - Choices: story, task, bug, epic, feature, subtask
- Default:
-
Examples: task, bug, feature
-
-e, --epic
- Only validate tickets in this epic -
Default:
-
-o, --output
- Output format: text, json - Choices: text, json, table, csv
- Default: text
-
Examples: json, table
-
-f, --fix
- Attempt to auto-fix violations where possible - Type: boolean
Examples:
gira workflow apply
¶
Apply a predefined workflow template.
Arguments:
template
- Template name (scrum, kanban, support-desk, bug-tracking) (required)- Type: string
Options:
-f, --force
- Force apply even if board config exists- Type: boolean
Examples:
gira workflow templates
¶
List available workflow templates.
Examples:
gira workflow rule
¶
Manage custom workflow rules.
Arguments:
action
- Action: add, remove, list (required)-
Type: string
-
name
- Rule name (for add/remove) (optional) - Type: string
Options:
-s, --status
- Status condition- Choices: backlog, todo, in_progress, review, done
- Default:
-
Examples: backlog, todo, in_progress
-
-r, --requires
- Requirements (field:value) -
Default:
-
-m, --message
- Violation message - Default:
Examples:
gira workflow transitions
¶
Manage allowed status transitions.
Arguments:
action
- Action: add, remove, or leave empty to show (optional)-
Type: string
-
from_status
- From status (optional) - Type: string
-
Examples: backlog, todo, in_progress
-
to_status
- To status (comma-separated for multiple) (optional) - Type: string
- Examples: backlog, todo, in_progress
Examples:
gira workflow strict
¶
Enable or disable strict workflow enforcement.
Arguments:
action
- Action: enable, disable, or status (required)- Type: string
Examples:
gira workflow enforce
¶
Set workflow enforcement level.
Arguments:
level
- Enforcement level: strict, warn, or off (required)- Type: string
Examples:
gira workflow diagram
¶
Display visual workflow diagram.
Options:
-c, --counts
- Show ticket counts for each status-
Type: boolean
-
-o, --output
- Output format: text, json - Choices: text, json, table, csv
- Default: text
- Examples: json, table
Examples:
gira workflow stats
¶
Show workflow statistics and metrics.
Options:
-d, --days
- Number of days to analyze- Type: integer
- Default: 30
-
Examples: 7, 14, 30
-
-o, --output
- Output format: text, json - Choices: text, json, table, csv
- Default: text
- Examples: json, table
Examples:
gira workflow config
¶
Display current workflow configuration.
Examples:
gira workflow analyze
¶
Analyze workflow patterns and suggest improvements.
Options:
-d, --days
- Number of days to analyze- Type: integer
- Default: 30
-
Examples: 7, 14, 30
-
-o, --output
- Output format: text, json - Choices: text, json, table, csv
- Default: text
- Examples: json, table
Examples:
gira workflow migrate
¶
Migrate tickets from one workflow to another.
Arguments:
from_workflow
- Source workflow (current state) (required)-
Type: string
-
to_workflow
- Target workflow to migrate to (required) - Type: string
Options:
--dry-run/--apply
- Preview changes without applying- Type: boolean
-
Default: True
-
--backup/--no-backup
- Create backup before migration - Type: boolean
-
Default: True
-
-f, --force
- Force migration even with conflicts - Type: boolean
Examples: