SliceForge.Cli
1.0.1
dotnet tool install --global SliceForge.Cli --version 1.0.1
dotnet new tool-manifest
dotnet tool install --local SliceForge.Cli --version 1.0.1
#tool dotnet:?package=SliceForge.Cli&version=1.0.1
nuke :add-package SliceForge.Cli --version 1.0.1
SliceForge CLI
SliceForge is a powerful .NET productivity tool that generates Vertical Slice Architecture + Clean Architecture boilerplate for modern enterprise applications.
It helps software architects and .NET developers rapidly create production-ready features using:
- Vertical Slice Architecture
- Clean Architecture
- CQRS
- MediatR
- Minimal APIs
- FluentValidation
- EF Core
- Dapper-ready structure
- Unit & Integration Tests
Features
✅ Generate complete Vertical Slice features ✅ Generate CRUD modules instantly ✅ Create enterprise-ready Clean Architecture solutions ✅ Minimal API endpoint generation ✅ CQRS command/query scaffolding ✅ MediatR handler generation ✅ FluentValidation validators ✅ Entity + EF Core configuration generation ✅ Unit & Integration tests ✅ Enterprise project structure
Installation
Install globally using NuGet:
dotnet tool install --global SliceForge.Cli
Verify installation:
sliceforge --help
Create New Solution
Generate a complete Clean Architecture solution:
sliceforge new-solution --name EStore --namespace EStore
Generated structure:
src/
EStore.Api
EStore.Application
EStore.Domain
EStore.Infrastructure
tests/
EStore.UnitTests
EStore.IntegrationTests
Generate a Feature
Create a Vertical Slice feature:
sliceforge add-feature --name CreateProduct --module Products --operation create --properties "Name:string,Price:decimal"
Generated files:
Application/Products/CreateProduct/
CreateProductCommand.cs
CreateProductHandler.cs
CreateProductValidator.cs
CreateProductResponse.cs
Api/Features/Products/
CreateProductEndpoint.cs
Generate CRUD
Generate complete CRUD operations:
sliceforge add-crud --entity Product --module Products --properties "Name:string,Price:decimal"
This generates:
- CreateProduct
- UpdateProduct
- DeleteProduct
- GetProductById
- GetProductList
- Entity
- Validators
- Endpoints
- Tests
Architecture Support
SliceForge is designed for:
- Vertical Slice Architecture
- Clean Architecture
- CQRS
- Modular Monoliths
- Microservices
- Enterprise APIs
Supported Technologies
- .NET 8
- .NET 9
- .NET 10
- ASP.NET Core
- MediatR
- EF Core
- FluentValidation
- Minimal APIs
Example Workflow
Initialize project:
sliceforge init --namespace EStore
Generate module:
sliceforge add-crud --entity Product --module Products
Build and run:
dotnet build
dotnet run
Future Roadmap
Upcoming features:
- AI-powered code generation
- DDD aggregate generation
- Outbox pattern support
- OpenTelemetry support
- Docker & Kubernetes templates
- Keycloak integration
- Multi-tenancy scaffolding
- Event-driven architecture templates
Publisher
Raheel Ahmed
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.