Complete command-line reference for the SAIGEN (SAI Data Generation) tool.
SAIGEN is an AI-powered tool for generating, validating, and managing software metadata (saidata) files.
saigen [OPTIONS] COMMAND [ARGS]...--version- Show version and exit--help- Show help message and exit--config PATH- Path to configuration file--verbose, -v- Increase verbosity--quiet, -q- Decrease verbosity
Generate saidata for software.
saigen generate [OPTIONS] SOFTWAREOptions:
--provider TEXT- Package manager provider (apt, dnf, brew, etc.)--output PATH- Output file path--llm-provider TEXT- LLM provider (openai, anthropic, ollama)--model TEXT- LLM model name--use-rag- Use RAG for enhanced generation--force- Overwrite existing file
Examples:
saigen generate nginx --provider apt
saigen generate docker --provider brew
saigen generate nginx --provider apt --use-rag
saigen generate nginx --llm-provider anthropic --model claude-4-sonnetGenerate saidata for multiple packages.
saigen batch generate [OPTIONS]Options:
--from PATH- File with list of packages--provider TEXT- Package manager provider--output-dir PATH- Output directory--parallel N- Number of parallel generations--continue-on-error- Continue if one fails
Examples:
saigen batch generate --from packages.txt --provider apt
saigen batch generate --from packages.txt --provider apt --parallel 4Validate saidata file against schema.
saigen validate [OPTIONS] FILEOptions:
--schema PATH- Custom schema file--strict- Strict validation mode
Examples:
saigen validate nginx.yaml
saigen validate nginx.yaml --strictTest saidata file using MCP server.
saigen test [OPTIONS] FILEOptions:
--mcp-server TEXT- MCP server to use--action TEXT- Specific action to test
Examples:
saigen test nginx.yaml
saigen test nginx.yaml --action installSee testing-guide.md for detailed testing documentation.
Update package repository cache.
saigen repo update [OPTIONS] [PROVIDER]Options:
--all- Update all repositories--force- Force update even if cache is fresh
Examples:
saigen repo update apt
saigen repo update --allList available repositories.
saigen repo list [OPTIONS]Options:
--cached- Show only cached repositories--stats- Show statistics
Examples:
saigen repo list
saigen repo list --statsSearch for packages in repositories.
saigen repo search [OPTIONS] QUERYOptions:
--provider TEXT- Limit to specific provider--limit N- Limit results
Examples:
saigen repo search nginx
saigen repo search nginx --provider aptShow repository information.
saigen repo info [OPTIONS] PROVIDERExamples:
saigen repo info apt
saigen repo info brewSee repository-management.md for detailed documentation.
Refresh version information in saidata.
saigen refresh-versions [OPTIONS] FILEOptions:
--provider TEXT- Provider to check--all-providers- Check all providers--dry-run- Preview changes
Examples:
saigen refresh-versions nginx.yaml
saigen refresh-versions nginx.yaml --all-providersSee refresh-versions-command.md for detailed documentation.
Update existing saidata file.
saigen update [OPTIONS] FILEOptions:
--refresh-urls- Refresh download URLs--refresh-versions- Refresh version info--add-action TEXT- Add new action--llm-provider TEXT- LLM provider for enhancements
Examples:
saigen update nginx.yaml --refresh-urls
saigen update nginx.yaml --add-action configureShow generation statistics.
saigen stats [OPTIONS]Options:
--provider TEXT- Filter by provider--date-range TEXT- Date range (e.g., "7d", "1m")
Examples:
saigen stats
saigen stats --provider apt
saigen stats --date-range 7dSee stats-command.md for detailed documentation.
Clear repository cache.
saigen cache clear [OPTIONS] [PROVIDER]Options:
--all- Clear all caches
Examples:
saigen cache clear apt
saigen cache clear --allShow cache information.
saigen cache info [OPTIONS]Examples:
saigen cache infoShow current configuration.
saigen config show [OPTIONS]Examples:
saigen config showValidate configuration file.
saigen config validate [OPTIONS] [PATH]Examples:
saigen config validate
saigen config validate ~/.saigen/config.yamlSee configuration-guide.md for detailed configuration documentation.
0- Success1- General error2- Command-line usage error3- Configuration error4- Validation error5- Generation error
SAIGEN_CONFIG- Path to configuration fileSAIGEN_CACHE_DIR- Override cache directorySAIGEN_LOG_LEVEL- Set log level (DEBUG, INFO, WARNING, ERROR)OPENAI_API_KEY- OpenAI API keyANTHROPIC_API_KEY- Anthropic API key
- generation-engine.md - Generation engine documentation
- repository-management.md - Repository management
- testing-guide.md - Testing documentation
- configuration-guide.md - Configuration guide
- examples/ - Configuration examples and samples