Class ExportPackageCommand
Exports a package from 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.ExportPackageCommandHandler
ExportPackageCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SystemCommands
Assembly: Sitecore.CH.Cli.Plugin.System.dll
Syntax
RequestResponse
public class ExportPackageCommand : BaseCommand<ExportPackageCommandHandler>Remarks
Required parameters
--type -tSpecifies the entity type for the export. Multiple selections are possible.
Optional parameters
--modified-since -mIf set, only entities modified after the specified date will be included in the export.--include-system-owned -iIndicates whether system-owned entities will be exported.--wait -wDetermines whether to wait for the export to complete or not.--out -oSpecifies the output file name.--order-idSpecifies whether the order ID is returned or not.--engineSpecifies the version of the package engine to use for the export.
Global parameters
-? --help -hShow this help message and exit.-v --verbosityEnables verbose logging.
Examples
Export a single type:
RequestResponse
ch-cli system export --type EntityDefinitionsExport multiple types and save the resulting package:
RequestResponse
ch-cli system export --type EntityDefinitions --type Settings --out "<local path>"