cadmo-cli
1.2.1
dotnet tool install --global cadmo-cli --version 1.2.1
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local cadmo-cli --version 1.2.1
#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 | Versions 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. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.2.1 | 1,690 | 5/16/2022 |
1.1.9-beta | 1,374 | 4/22/2022 |
1.1.8-beta | 1,035 | 4/22/2022 |
1.1.7-beta | 1,313 | 4/10/2022 |
1.1.6-beta | 1,458 | 4/5/2022 |
1.1.5-beta | 1,317 | 3/28/2022 |
1.1.4-beta | 1,362 | 3/27/2022 |
1.1.3-alpha | 1,389 | 3/26/2022 |
1.1.2-alpha | 1,217 | 3/25/2022 |
1.1.1-alpha | 1,326 | 3/25/2022 |
1.1.0-alpha | 1,383 | 3/25/2022 |
1.0.9-alpha | 1,390 | 3/22/2022 |
1.0.8-alpha | 1,455 | 3/18/2022 |
1.0.7-alpha | 1,278 | 3/13/2022 |
1.0.6-alpha | 1,502 | 3/13/2022 |
1.0.5-alpha | 1,267 | 3/4/2022 |
1.0.4-alpha | 1,319 | 3/4/2022 |
1.0.3-alpha | 1,608 | 3/4/2022 |
1.0.2-alpha | 1,628 | 3/3/2022 |
1.0.1-alpha | 1,405 | 3/3/2022 |