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,681 | 5/16/2022 |
1.1.9-beta | 1,371 | 4/22/2022 |
1.1.8-beta | 1,032 | 4/22/2022 |
1.1.7-beta | 1,310 | 4/10/2022 |
1.1.6-beta | 1,455 | 4/5/2022 |
1.1.5-beta | 1,314 | 3/28/2022 |
1.1.4-beta | 1,356 | 3/27/2022 |
1.1.3-alpha | 1,386 | 3/26/2022 |
1.1.2-alpha | 1,214 | 3/25/2022 |
1.1.1-alpha | 1,323 | 3/25/2022 |
1.1.0-alpha | 1,380 | 3/25/2022 |
1.0.9-alpha | 1,387 | 3/22/2022 |
1.0.8-alpha | 1,452 | 3/18/2022 |
1.0.7-alpha | 1,275 | 3/13/2022 |
1.0.6-alpha | 1,499 | 3/13/2022 |
1.0.5-alpha | 1,264 | 3/4/2022 |
1.0.4-alpha | 1,316 | 3/4/2022 |
1.0.3-alpha | 1,604 | 3/4/2022 |
1.0.2-alpha | 1,624 | 3/3/2022 |
1.0.1-alpha | 1,402 | 3/3/2022 |