Class PackageInstallCommand

Installs a previously created package archive.

Inheritance
object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.Serialization.CommandHandlers.PackageInstallCommandHandler
PackageInstallCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SerializationCommands
Assembly: Sitecore.CH.Cli.Plugin.Serialization.dll
Syntax
RequestResponse

public class PackageInstallCommand : BaseCommand<PackageInstallCommandHandler>
Remarks

Required parameters

  • --path -p Path to the package to install.

Optional parameters

  • --endpoint -e Specifies an alternative endpoint name for the execution of this command.
  • --what-if -w Indicates whether to do a what-if install, where the log of changes is shown, but no changes are made.

Global parameters

  • -? --help -h Show this help message and exit.
  • -v --verbosity Enables verbose logging.
Examples

Install a package:

RequestResponse

ch-cli serialization package install --path "<package path>"

Perform a dry-run with detailed logging, outlining will happen during the actual installation without making any changes:

RequestResponse

ch-cli serialization package install --path "<package path>" --what-if

Do you have some feedback for us?

If you have suggestions for improving this article,