---
title: "Class PullCommand"
slug: "cli--sitecore.ch.cli.plugin.scripting.commands.pullcommand"
abstract: ""
---
# Class PullCommand

Pulls the specified script(s) from content hub and stored it(them) in the script working folder.

## 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.PullCommandHandler

PullCommand

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

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

## Syntax

```csharp
public class PullCommand : BaseCommand<PullCommandHandler>
```

## Remarks

**Required parameters**

- `--name -n` Specified the name of the script to pull from the Content Hub instance.

**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

Pull all scripts from the selected endpoint:

```csharp
ch-cli scripting pull -n "<*>"
```

Pull a script from the selected endpoint:

```csharp
ch-cli scripting pull -n "<my-script>"
```
