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

Initializes the script working folder with the files needed to make intellisense work in VS Code.

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

InitializeCommand

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

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

## Syntax

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

## Remarks

**Optional parameters**

- `--endpoint -e` Specifies an alternative endpoint name for the execution of this command.
- `--folder -f` Specifies the script working folder where the script files are located. If the --folder option is not specified, the current folder is assumed to be the script working folder.

**Global parameters**

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

## Examples

Initialize scripts:

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

Initialize scripts to specific folder:

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