Skip to content

CLI Commands

Authentication

Login

es-builder login

Logout

es-builder logout

Solution

Build

es-builder build
Optional Parameters

--configuration

The path to the folder with the configuration files. Default path is the current folder

--build-version | -b

Version of the builder you want to use. The default value is 6010 (1.0 version that uses .NET 6).

--help

List of all build parameters.

Example
es-builder build --configuration c:\my-config\folder

Deploy

Azure CosmosDB (MongoDB)

When using an Azure CosmosDB account and MongoDB database as data storage and would like to quickly test your generated solution, instead of using the generated ci/cd pipeline (that is great for productionizing your solution), you can quickly create a database using the following command.

es-builder deploy azure-mongodb

The command will also add a connection string to your local environment variable, so you don’t have to configure anything in your application.

It will try to create a free version of CosmosDB account but it might fail if you already have another free instance in that subscription.

Required Parameters

--resourcegroup | -r

The name of the Azure Resource group where MongoDB will be created. It can be an existing resource group.

--location | -l

Azure location of the resources that will be created. Use the lowercase name, like uksouth.

Use the command az account list-locations -o table in Azure Cloud Shell to get the list of all locations and their names.

--account | -a

The name of the Azure CosmosDB account

--database | -d

The name of the MongoDB database that will be created in CosmosDB account

--collections | -c

The list of collections you want to create. It should be comma separated list of names (as they are defined in the configuration), for example “Job, Manager, Employee”.

Optional Parameters

--subscription | s

Id of the Azure Subscription where you want to create resources. If not specified, your default subscription will be used.

Example
es-builder deploy azure-mongodb --resourcegroup rg-myapp --location uksouth --account demo-cosmos-account --database my-mongodb --collection "Asset, Stock" 
Back to top