I am not sure what I am doing wrong. I want to create a basic Blazor Server project with no pro modules in it. It seems because I have Abp Studio. Even when I just use the CLI it seems to always add the Pro module libraries.
What am i doing wrong?
2 Answer(s)
-
0
- Solution
If you have ABP Commercial (ABP Studio/Business+ license) installed, the new ABP CLI defaults to the unified template system and may include Pro modules when you create a solution via Studio or the new CLI. Use one of these verified ways to create a Free (non‑Pro) Blazor Server project:
- Use the “free” startup template with the CLI:
- Old (classic) CLI syntax: abp new Acme.BookStore -t app -u blazor-server --mobile none --old
- New CLI syntax (still generating the free template when you specify -t app and Blazor Server): abp new Acme.BookStore -t app -u blazor-server --mobile none Notes:
- -t app selects the standard Application template.
- -u blazor-server selects Blazor Server UI.
- --mobile none keeps it minimal.
- If the new CLI on your machine still injects commercial modules, append --old to force the legacy free generator.
- Use the “non-commercial” docs sample command exactly: abp new Acme.BookStore -t app -u blazor-server --mobile none
- Use the “free” startup template with the CLI:
Ensure you are using the correct CLI:
- If you installed the new Studio CLI (Volo.Abp.Studio.Cli), it overrides the abp command. To guarantee free templates identical to the classic generator, use --old or install the legacy CLI alone: dotnet tool uninstall -g Volo.Abp.Studio.Cli dotnet tool install -g Volo.Abp.Cli abp new Acme.BookStore -t app -u blazor-server --mobile none
- Alternatively, keep the new CLI and just add --old at the end of your abp new command.
If you already created a solution that contains Pro modules and want to remove them:
- Remove Pro module package references from the .csproj files and the corresponding module dependencies from your Module classes (e.g., AbpSaas*, FileManagement*, CmsKitPro*, AuditLogging Pro, etc.).
- Remove related configuration from appsettings.json (e.g., SaaS, FileManagement, etc.) and from DI registrations.
- Run restore and build after cleanup.
- Sources
- https://abp.io/docs/latest/cli/new-command-samples
- https://docs.abp.io/en/abp/latest/CLI
- https://abp.io/community/articles/2zfl7sqs
- https://community.abp.io/posts/how-to-remove-commercial-modules-from-your-solution-8tq0nwhl
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
hi
abp new command has
--use-open-source-template or -uostparameter.abp help new📍 --use-open-source-template or -uost: Uses the open-source template. (Available for Team or higher licenses)Thanks.