Creating a New Microservice Solution

There are 2 ways of creating a new solution from the microservice startup template:

  • ABP Suite

    Write abp suite command to your shell to open ABP Suite. Then click Create a new solution button on the home page. Choose Microservice template from the template type drop down.

    Create a new microservice with Suite

  • ABP CLI

    The following command creates a new microservice solution with the default UI option MVC and based the latest stable version.

    abp new <solution name> -t microservice-pro -u mvc
    
    Bash

    UI options:

    • MVC

      • abp new <solution name> -t microservice-pro -u mvc
    • Angular

      • abp new <solution name> -t microservice-pro -u angular
    • Blazor WASM

      • abp new <solution name> -t microservice-pro -u blazor
    • Blazor Server

      • abp new <solution name> -t microservice-pro -u blazor-server

    You can also add the following parameters:

    • --preview: creates a new solution with the latest preview version.
    • -csf : creates a new solution inside a new folder with the same solution name.
    • --output-folder: creates a new solution into the given path.
    • --version: creates a new solution based on a specific version.

    Check out ABP CLI documentation, for further information.

Examples:
  • Create microservice Angular solution in a new folder with preview version:
    • abp new Acme.BookStore -t microservice-pro -u angular --preview -csf
  • Create microservice Blazor Server solution in the given output path within a new folder same as solution name
    • abp new Acme.BookStore -t microservice-pro -u blazor-server --output-folder "C:\MyProjects\Stables\" -csf

Some options are not available for the microservice template. Therefore you cannot change the default database provider Entity Framework Core. Also --separate-auth-server parameter is ignored since it comes already with a separate Auth Server.

Next

Contributors


Last updated: April 26, 2023 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

Community Talks

Deep Dive #1: Identity&Account Modules

17 Apr, 17:00
Online
Register Now
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
×