Skip to main content

The CLI cloud command

Abstract

Reference for the Sitecore CLI cloud command for managing XM Cloud projects, environments, and deployments.

The Sitecore XM Cloud plugin provides the cloud command. The command has subcommands that help you manage XM Cloud projects, environments, and deployments from the Sitecore CLI.

You can use the cloud command as follows:

dotnet sitecore cloud [options] 

To use one of the cloud subcommands:

dotnet sitecore cloud [subcommand] [options]

Subcommands have subcommands (operations) and options of their own. For detailed usage information, refer to the documentation of each cloud subcommand.

The cloud command has the following option:

Option

Description

-?, -h, --help

When provided, the CLI displays developer help and usage information about the command.

You can use the following cloud subcommands:

  • login - authenticates a person through the CLI with an XM Cloud organization, granting them access tokens and claims based on authorization.

  • logout - logs you out of an XM Cloud environment.

  • project - provides subcommands for managing and interacting with XM Cloud projects for a given XM Cloud organization.

  • environment - provides subcommands for managing and interacting with XM Cloud environments for a given project.

  • deployment - provides subcommands for managing and interacting with XM Cloud deployments for a given environment.