---
title: "Class ExportPackageCommand"
slug: "cli--sitecore.ch.cli.plugin.system.commands.exportpackagecommand"
abstract: ""
---
# Class ExportPackageCommand

Exports a package from the selected Content Hub instance.

## Inheritance

object

System.CommandLine.Symbol

System.CommandLine.IdentifierSymbol

[Command](https://learn.microsoft.com/dotnet/api/system.commandline.command)

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

```csharp
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.
- `--engine` Specifies the version of the package engine to use for the export.

**Global parameters**

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

## Examples

Export a single type:

```csharp
ch-cli system export --type EntityDefinitions
```

Export multiple types and save the resulting package:

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