CA.ApiGenerator

1.0.2

CA.ApiGenerator automates Clean Architecture API solution generation from existing databases.

Built on Jason Taylor's Clean Architecture template (ca-sln), this module provides:
- Automatic dependency management (auto-installs dbatools, SimplySql, EF Tools, CA template)
- Database-first solution generation for SQL Server and PostgreSQL
- Complete CQRS implementa
CA.ApiGenerator automates Clean Architecture API solution generation from existing databases.

Built on Jason Taylor's Clean Architecture template (ca-sln), this module provides:
- Automatic dependency management (auto-installs dbatools, SimplySql, EF Tools, CA template)
- Database-first solution generation for SQL Server and PostgreSQL
- Complete CQRS implementation with MediatR
- Auto-generated REST API controllers for all entities
- FluentValidation for input validation
- Integrated code generator for extending solutions
- Simple PowerShell interface with automated and interactive modes

Generate production-ready Clean Architecture APIs from your database in minutes!
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name CA.ApiGenerator

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name CA.ApiGenerator

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 Ruslan Dubas. All rights reserved.

Package Details

Author(s)

  • Ruslan Dubas

Tags

CleanArchitecture API CodeGeneration CQRS MediatR EntityFramework DatabaseFirst SQLServer PostgreSQL RestAPI Automation DotNet WebAPI Microservices DomainDrivenDesign FluentValidation Scaffold Generator JasonTaylor Windows Linux MacOS

Functions

New-CAApiSolution

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

## Version 1.0.1

### New Features
- ✅ Automatic dependency management - auto-installs all required dependencies
- ✅ Auto-installs dbatools PowerShell module if missing
- ✅ Auto-installs SimplySql PowerShell module if missing
- ✅ Auto-installs Clean.Architecture.Solution.Template if missing
- ✅ Auto-installs dotnet-ef global tool if missing
- ✅ Validates .NET SDK 9.0 or higher is installed
- ✅ Comprehensive dependency status reporting with color-coded feedback

### Improvements
- Simplified installation - users only need to install .NET 9 SDK manually
- Better error handling with manual installation fallback instructions
- Enhanced user experience with visual feedback during dependency checks
- Improved documentation with troubleshooting section

### Requirements
- PowerShell 5.1 or higher
- .NET SDK 9.0 or higher (manual install required)
- All other dependencies are auto-installed by the module

### Credits
Built on top of:
- Jason Taylor's Clean Architecture Template (ca-sln)
- dbatools by dataplat
- SimplySql by mithrandyr

See full documentation at: https://github.com/RusUsf/CA.ApiGenerator

FileList

Version History

Version Downloads Last updated
1.0.2 (current version) 7 10/21/2025