---
title: "Class InitializeCommand"
slug: "cli--sitecore.ch.cli.plugin.serialization.commands.initializecommand"
abstract: ""
---
# Class InitializeCommand

Initializes a folder with the files needed to serialize Content Hub entities.

## 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.Serialization.CommandHandlers.InitializeCommandHandler

InitializeCommand

## Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.SerializationCommands

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

## Syntax

```csharp
public class InitializeCommand : BaseCommand<InitializeCommandHandler>
```

## Remarks

**Optional parameters**

- `--folder -f` Specifies the a working directory other than the current folder.

**Global parameters**

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

## Examples

Initialize the current directory:

```csharp
ch-cli scripting initialize
```

Initialize the specified directory:

```csharp
ch-cli scripting initialize --folder "<local path>"
```
