---
title: "Class PackageInstallCommand"
slug: "cli--sitecore.ch.cli.plugin.serialization.commands.packageinstallcommand"
abstract: ""
---
# Class PackageInstallCommand

Installs a previously created package archive.

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

PackageInstallCommand

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

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

## Syntax

```csharp
public class PackageInstallCommand : BaseCommand<PackageInstallCommandHandler>
```

## Remarks

**Required parameters**

- `--path -p` Path to the package to install.

**Optional parameters**

- `--endpoint -e` Specifies an alternative endpoint name for the execution of this command.
- `--what-if -w` Indicates whether to do a what-if install, where the log of changes is shown, but no changes are made.

**Global parameters**

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

## Examples

Install a package:

```csharp
ch-cli serialization package install --path "<package path>"
```

Perform a dry-run with detailed logging, outlining will happen during the actual installation without making any changes:

```csharp
ch-cli serialization package install --path "<package path>" --what-if
```
