Enterprise Onion Architecture + DDD + CQRS + AI code generation for .NET.
Requirements
dotnet tool install --global OnionForge.Cli
onionforge --help
Commands
Open Command Palette: Ctrl + Shift + P, then search OnionForge AI.
Commands:
- New Onion Solution
- Add DDD Aggregate
- Add CQRS Command
- Add CQRS Query
- Add Handler
- Add Minimal API Endpoint
- Add Full CRUD
- Add Outbox Pattern
- Add Docker Support
- Add OpenTelemetry
- Generate Focused AI Code
AI Setup
setx OPENAI_API_KEY "your_key"
setx ONIONFORGE_AI_MODEL "gpt-4o-mini"
Build
npm install
npm run compile
npm run package
Output:
onionforge-ai-1.0.0.vsix