Skip to content
Last update: January 29, 2025

Create Environment via CLI and VC Build

In this guide, we explore the creation of environments via the CLI. The alternative is the creation of environments through the Cloud Portal.

To create a new environment using CLI and VC Build, complete the following steps:

  1. Install or update CLI tools.
  2. Generate API key.
  3. Authenticate with Virto Commerce Cloud services.
  4. List environments (optionally).
  5. Create new environment.

Install CLI tools

To install Virto Commerce Global Tool, run:

dotnet tool install VirtoCommerce.GlobalTool  -g

If you have Virto Commerce Global Tool installed, update it to the latest version:

dotnet tool update -g VirtoCommerce.GlobalTool

Generate API key

To generate API key, open the Virto Cloud Portal:

  1. Click Environments in the main menu.
  2. In the next blade, click API key in the toolbar.
  3. In the next blade, click Generate in the toolbar.
  4. Copy the generated API key.

Generate API key

Authenticate with Virto Commerce Cloud services

To access to your Virto Commerce Cloud account and perform further environment management tasks, run:

vc-build CloudAuth -CloudToken <your api key>

List environments (optional)

To view the list of all Virto Commerce environments that are currently available for the generated token, run:

vc-build CloudEnvList

This command is useful for verifying that you have access to the appropriate environments.

Create new environment

To create new environment, run the following command, specifying your environment name, your service plan, and the organization under which the environment is being created:

vc-build CloudInit -EnvironmentName DentalCMD -ServicePlan B1 -Organization virtostart

Your environment has been created. You can see it in the Virto Cloud Portal:

New environment

You can also:

Readmore Other available commands

Now you can sign in to the created environment.