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:
- Install or update CLI tools.
- Generate API key.
- Authenticate with Virto Commerce Cloud services.
- List environments (optionally).
- Create new environment.
Install CLI tools¶
To install Virto Commerce Global Tool, run:
If you have Virto Commerce Global Tool installed, update it to the latest version:
Generate API key¶
To generate API key, open the Virto Cloud Portal:
- Click Environments in the main menu.
- In the next blade, click API key in the toolbar.
- In the next blade, click Generate in the toolbar.
- Copy the generated API key.
Authenticate with Virto Commerce Cloud services¶
To access to your Virto Commerce Cloud account and perform further environment management tasks, run:
List environments (optional)¶
To view the list of all Virto Commerce environments that are currently available for the generated token, run:
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:
Your environment has been created. You can see it in the Virto Cloud Portal:
You can also:
Now you can sign in to the created environment.