CLI
Expert Command
The expert
command gives you direct access to Codegen’s AI expert, which is specifically trained to help with codemods, transformations, and Codegen’s APIs.
Usage
Options
--query
,-q
: The question to ask the expert
Examples
Ask about a specific API:
Get help with a transformation:
Ask about best practices:
Use Cases
The expert is particularly helpful for:
- Understanding Codegen’s APIs and capabilities
- Getting guidance on codemod implementation strategies
- Learning best practices for code transformations
- Troubleshooting common issues
- Finding the right approach for complex refactoring tasks
The expert has deep knowledge of Codegen’s internals and common transformation patterns. For general programming questions, consider using standard AI assistants instead.
Tips
- Be specific in your questions
- Include relevant context about your codebase or transformation
- Ask follow-up questions if needed
- Use code examples in your questions when applicable
Related Commands
codegen create
: Create new codemods with AI assistancecodegen run
: Execute your codemodscodegen docs-search
: Search documentation and examples
Was this page helpful?