---
title: "Class DisableCommand"
slug: "cli--sitecore.ch.cli.plugin.scripting.commands.disablecommand"
abstract: ""
---
# Class DisableCommand

Disables a script in 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.Scripting.CommandHandlers.DisableCommandHandler

DisableCommand

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

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

## Syntax

```csharp
public class DisableCommand : BaseCommand<DisableCommandHandler>
```

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

**Global parameters**

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

## Examples

Disables a script from the selected endpoint:

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