---
title: "Class ImportDataCommand"
slug: "cli--sitecore.ch.cli.plugin.content.commands.content.importdatacommand"
abstract: ""
---
# Class ImportDataCommand

Imports a package into 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.Content.CommandHandlers.Content.ImportDataCommandHandler

ImportDataCommand

## Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ContentSitecore.CH.Cli.Plugin.Content.CommandsContent

## Assembly: Sitecore.CH.Cli.Plugin.Content.dll

## Syntax

```csharp
public class ImportDataCommand : BaseCommand<ImportDataCommandHandler>
```

## Remarks

**Required parameters**

- `--source -s` Specifies the path to the import package. Can be either a local file path or a HTTP/HTTPS URL

**Optional parameters**

- `--upload-configuration-name -n` Specifies the name of the import data configuration.
- `--import-configuration -c` Specifies the path to the import configuration. Can only be a local Json file path
- `--wait -w` Determines whether to wait for the import to complete or not.
- `--job-id` Specifies whether the job ID is returned or not.

**Global parameters**

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

## Examples

Queue an import without waiting:

```csharp
ch-cli content import --source "<local file path or HTTP/HTTPS URL>"
```

Queue an content without waiting and retrieve the job ID:

```csharp
ch-cli content import --source "<local file path or HTTP/HTTPS URL>" --job-id
```

Perform an content with waiting:

```csharp
ch-cli content import --source "<local file path or HTTP/HTTPS URL>" --wait
```
