CLI Overview¶
JiraGen provides a powerful command-line interface for managing JIRA issue generation and codebase integration. This section covers all available commands and their usage.
Command Structure¶
Available Commands¶
init: Initialize JiraGen in your projectgenerate: Generate JIRA issues with AI assistanceadd: Add files to the vector storerm: Remove files from the vector storefetch: Fetch JIRA datastatus: Check vector store statusupload: Upload issues to JIRArestart: Restart the vector store service
See the following sections for detailed documentation on each command.
Global Options¶
--verbose: Enable detailed logging--config PATH: Use custom config file--help: Show command help
Command Categories¶
Basic Commands¶
Core commands for managing JiraGen's configuration and basic operations:
- init: Initialize JiraGen configuration
- status: Display vector store status
- restart: Restart vector store service
- clean: Clean vector store database
Codebase Management¶
Commands for managing your codebase in the vector store:
- add: Add files to vector store (with gitignore support)
- rm: Remove files from vector store
- fetch: Fetch JIRA data for context
Issue Generation¶
Commands for generating and managing JIRA issues:
- generate: Generate issues with AI assistance
- upload: Upload issues to JIRA
JIRA Integration¶
Commands for interacting with JIRA:
- fetch: Fetch JIRA data
- upload: Upload issues
- sync: Synchronize local and remote data
Common Workflows¶
1. Initial Setup¶
# Initialize JiraGen
jiragen init
# Add your codebase
jiragen add .
# Fetch JIRA data for context
jiragen fetch --types all
2. Issue Generation¶
# Generate a new issue
jiragen generate "Add dark mode support"
# Generate and upload directly
jiragen generate "Fix memory leak" --upload --yes
3. Codebase Updates¶
# Add new files
jiragen add src/new_feature/
# Remove old files
jiragen rm src/deprecated/
# Check status
jiragen status --compact
Exit Codes¶
JiraGen commands return these exit codes:
0: Success1: General error or operation cancelled by user2: Configuration error3: Network error4: Permission error