SliceForge for VS Code
SliceForge is a VS Code extension for .NET developers using Vertical Slice Architecture, Clean Architecture, CQRS, MediatR, Minimal APIs, FluentValidation, EF Core, and enterprise API patterns.
This extension wraps the official SliceForge.Cli NuGet global tool.
Install CLI
dotnet tool install --global SliceForge.Cli
Verify:
sliceforge --help
If command is not recognized, add this path to Windows PATH:
C:\Users\<your-user>\.dotnet\tools
Or set full CLI path in VS Code settings:
{
"sliceforge.cliPath": "C:\\Users\\<your-user>\\.dotnet\\tools\\sliceforge.exe"
}
Commands
Open Command Palette with Ctrl + Shift + P, then search SliceForge.
Available commands:
- SliceForge: Init Project
- SliceForge: New Clean Architecture Solution
- SliceForge: Add Feature
- SliceForge: Add CRUD
- SliceForge: Doctor
- SliceForge: Open Terminal
- SliceForge: Install CLI
Build Extension
npm install
npm run compile
npm run package
Output:
sliceforge-1.0.0.vsix
Publish
npm install -g @vscode/vsce
vsce login RaheelAhmed
vsce publish