Deploy customizations to the XM Cloud environment
Upload a customized solution to an existing XM Cloud environment
When you make changes to your locally running solution, you can use Sitecore Command Line Interface (CLI) to upload your customized solution to an existing XM Cloud environment.
To deploy and upload your solution to the XM Cloud environment:
-
In the project working directory, in a command-line window, run the following command:
RequestResponseshelldotnet sitecore cloud deployment create --environment-id <environment-id> --upload
-
When the deployment completes, navigate to the XM Cloud CM instance and review all the artifacts deployed to the targeted XM Cloud Environment.
The default value for the --upload
command parameter is the current working directory. When providing the argument, everything in the directory is packaged and deployed to XM Cloud unless specified in a .gitignore
file.
To use another folder, use the --upload
parameter and provide the path to another directory with the --working-dir
(-dir
) parameter. For example:
dotnet sitecore cloud deployment create --environment-id <id> --no-start --no-watch --upload --working-dir <path>