MagicCSharp.Cli 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global MagicCSharp.Cli --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local MagicCSharp.Cli --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MagicCSharp.Cli&version=1.0.0
                    
nuke :add-package MagicCSharp.Cli --version 1.0.0
                    

MagicCSharp.Cli

mcs — scaffolding for a repository built on MagicCSharp.

dotnet tool install -g MagicCSharp.Cli

mcs init --prefix Acme
mcs create-app --name Shop --database shop
dotnet run --project Apps/Shop/Shop.App

Or pin it per repository, so the whole team gets the same version:

dotnet new tool-manifest
dotnet tool install MagicCSharp.Cli
# commit .config/dotnet-tools.json; teammates run: dotnet tool restore
Command
mcs init --prefix Acme set the current directory up as a repository
mcs create-app --name Shop --database shop a service
mcs create-domain -s Shop -n Orders --models --tests a domain
mcs create-domain -s Shop -n Orders.App --tests that domain's endpoints
mcs create-app-lib -s Shop -n Processors --tests a library inside one service
mcs create-lib --name Events --tests a shared library
mcs add-entity -s Shop -d Orders -n Order --paginated an entity and its repository
mcs sync rebuild the all-projects solution
mcs validate lint the conventions the compiler cannot
mcs templates list \| where \| eject see and override the generators' templates

Nothing is overwritten — an existing file is reported and skipped. Re-running changes nothing, so every command is safe to repeat.

Your own templates

Everything generated comes from a template you can replace, one file at a time:

mcs templates list
mcs templates eject Entities/dal.cs.hbs

Across several repositories, keep the templates in a repository of their own and add it as a submodule at .magiccsharp/templates. See template overrides.

The structure this creates is optional; the MagicCSharp packages work in any layout. Full guide: https://github.com/MagicDoorInc/MagicCSharp/blob/master/docs/repository-layout.md

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.1.4 88 11/22/2026
1.1.3 87 11/22/2026
1.1.2 96 11/22/2026
1.1.1 88 11/21/2026
1.1.0 90 11/21/2026
1.0.3 298 10/6/2026
1.0.2 213 9/24/2026
1.0.1 123 9/24/2026
1.0.0 108 9/23/2026