Class ImportPackageCommand
Imports a package into the selected Content Hub instance.
Inheritance
object
System.CommandLine.Symbol
System.CommandLine.IdentifierSymbol
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Plugin.System.CommandHandlers.ImportPackageCommandHandler
ImportPackageCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SystemCommands
Assembly: Sitecore.CH.Cli.Plugin.System.dll
Syntax
Remarks
Required parameters
--source -sSpecifies the path to the import package. Can be either a local file path or a HTTP/HTTPS URL
Optional parameters
--wait -wDetermines whether to wait for the import to complete or not.--job-idSpecifies whether the job ID is returned or not.
Global parameters
-? --help -hShow this help message and exit.-v --verbosityEnables verbose logging.
Examples
Queue an import without waiting:
Queue an import without waiting and retrieve the job ID:
Perform an import with waiting: