cadmo-cli 1.2.1

dotnet tool install --global cadmo-cli --version 1.2.1
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 cadmo-cli --version 1.2.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=cadmo-cli&version=1.2.1
nuke :add-package cadmo-cli --version 1.2.1

News

Fix Release error in this feature on windows os, fail in mkdir command fixed

This version we introduce the view models grouped in a folder, this folder is named with the name of model. Commands affected:

cm g model --with-script <Model Name>
cm g model --with-all-scripts --forced
cm g model --with-all-scripts --safety 

Documentation

Create New Web Api:

cm new <APP_NAME>

Create Model (And ViewModels) Templeate:

cm (g|generate) model <MODEL_NAME>

Create Model from json file script:

 cm (g|generate) model --with-script <MODEL_JSON_FILE_NAME> 

Warning: Json`s file script are in Entities/JsonModelsDefinition folder.

Create Model from all json files overwritting generated files:

cm (g|generate) model --with-all-scripts --safety 

Warning: Json`s file script are in Entities/JsonModelsDefinition folder.

Create Model from all json files without overwritting generated files:

cm (g|generate) model --with-all-scripts --force

Warning: Json`s file script are in Entities/JsonModelsDefinition folder.

Generate Repository based on Model:

cm (g|generate) repository <MODEL_NAME>

Generate CRUD Service based on Model:

cm (g|generate) service-crud --model <MODEL_NAME>

Generate CRUD Controller based on Model:

 cm (g|generate) controller-crud --model <MODEL_NAME>

Update Repository Extension to dependency injection mapping:

cm repository-di

Update Service Extension to dependency injection mapping:

cm service-di

Add Packge in current project:

cm add <PACKAGE_NAME> or cm add <PACKAGE_NAME> --verison <VERSION_NUMBER>

Entity Framework Commands

Warning: require dotnet-ef installed and execute on Api folder📁.

Add Migration:

cm ef add-migration <MIGRATION_NAME>

Remove Migration:

cm ef remove-migration

List Migration:

cm ef list-migration

List Migration:

cm ef update-database
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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.2.1 1,631 5/16/2022
1.1.9-beta 1,330 4/22/2022
1.1.8-beta 991 4/22/2022
1.1.7-beta 1,269 4/10/2022
1.1.6-beta 1,420 4/5/2022
1.1.5-beta 1,280 3/28/2022
1.1.4-beta 1,318 3/27/2022
1.1.3-alpha 1,347 3/26/2022
1.1.2-alpha 1,176 3/25/2022
1.1.1-alpha 1,289 3/25/2022
1.1.0-alpha 1,344 3/25/2022
1.0.9-alpha 1,350 3/22/2022
1.0.8-alpha 1,396 3/18/2022
1.0.7-alpha 1,236 3/13/2022
1.0.6-alpha 1,465 3/13/2022
1.0.5-alpha 1,223 3/4/2022
1.0.4-alpha 1,272 3/4/2022
1.0.3-alpha 1,567 3/4/2022
1.0.2-alpha 1,585 3/3/2022
1.0.1-alpha 1,362 3/3/2022