Class ExportPackageCommand

Version: 3.4

Exports a package from the selected Content Hub instance.

Inheritance
object
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 -t Specifies the entity type for the export. Multiple selections are possible.

Optional parameters

  • --modified-since -m If set, only entities modified after the specified date will be included in the export.
  • --include-system-owned -i Indicates whether system-owned entities will be exported.
  • --wait -w Determines whether to wait for the export to complete or not.
  • --out -o Specifies the output file name.
  • --order-id Specifies whether the order ID is returned or not.

Global parameters

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

Export a single type:

RequestResponse
ch-cli system export --type EntityDefinitions

Export multiple types and save the resulting package:

RequestResponse
ch-cli system export --type EntityDefinitions --type Settings --out "<local path>"

Do you have some feedback for us?

If you have suggestions for improving this article,