---
id: create_project_netcore
title: Create REST API project
linkTitle: Create REST API project
weight: 1
keywords:
  - .net core
  - rest api
  - example
  - template
  - azure
  - application insights
  - build
  - run
  - application
  - configure
  - docker
  - tests
  - github
---

== Create a project using the Nuget template package

=== Install the package

Access Ensono.Stacks.Templates package page in Nuget https://www.nuget.org/packages/Amido.Stacks.Templates/[here]. Copy and execute the command displayed in the page (if you want to get the latest version). For example:


.Run the command to install the package
[source, bash]
----
dotnet new install Ensono.Stacks.Templates
----

=== Create a new  project

Navigate to the folder where you wish to create a new project in.

.Run the command to create the project
[source, bash]
----
dotnet new stacks-webapi -n Company.Project -do YourDomain --cloudProvider Azure
----

The above command will create a folder and a repository called `Company.Project` with DevOps build pipelines ready for Azure DevOps.

=== Uninstalling a template

.To uninstall the template pack you have to execute the following command
[source, bash]
----
dotnet new uninstall Ensono.Stacks.Templates
----

[] 
====
Template parameter details

.**-n|--name**
    - Sets the project name
    - Omitting it will result in the project name being the same as the folder where the command has been ran from

.**-do|--domain**
    - Sets the name of the aggregate root object. It is also the name of the collection within CosmosDB instance.

.**-o|--output**
    - Sets the path to where the project is added
    - Omitting the parameter will result in the creation of a new folder

.**--cloudProvider**
    - Configures which cloud provider to be used

.**-cicd|--cicdProvider**
    - Configures which cicd provider templates to be used
====