记录使用 abp cli 创建新项目

使用并对比新的abp cli

下面是abp 官网文档的说明

ABP CLI (Command Line Interface) is a command line tool to perform some common operations for ABP based solutions or ABP Studio features. With v8.2+, the old/legacy ABP CLI has been replaced with a new CLI system to align with the new templating system and ABP Studio. Also, some superior features/commands have been introduced with the new CLI, such as kube-connect and kube-intercept commands.

卸载旧的abp cli并安装新的cli

# uninstalling the old CLI
dotnet tool uninstall -g Volo.Abp.Cli

# installing the new CLI
dotnet tool install -g Volo.Abp.Studio.Cli

使用指定版本的abp cli

#截至2024年12月12日,最后一个net8,8.x版本是8.3.4
abp new Acme.BookStore --version 8.3.4 --old

新建文件夹,并创建一个项目示例

 abp new FeedingManagement -t app -u mvc -sm -smr -scp -dbms MySQL --dont-run-install-libs --version 8.3.4 --old

cli 命令参数在官网都有说明

MySQL 连接字符串示例

Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Server=myServerAddress;Port=1234;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Server=serverAddress1, serverAddress2, serverAddress3;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
posted @ 2024-12-12 22:35  最懒的小羊  阅读(323)  评论(1)    收藏  举报