logo
logo

Class ExportPackageCommand

Exports a package from the selected Content Hub instance.

Inheritance
System.Object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<Sitecore.CH.Cli.Plugin.System.CommandHandlers.ExportPackageCommandHandler>
ExportPackageCommand
Namespace: Sitecore.CH.Cli.Plugin.System.Commands
Assembly: Sitecore.CH.Cli.Plugin.System.dll
Syntax
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:

ch-cli system export --type EntityDefinitions

Export multiple types and save the resulting package:

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

Can we improve this article ? Provide feedback