---
title: "Class GenerateCommand"
slug: "cli--sitecore.ch.cli.plugin.content.commands.print.generatecommand"
abstract: ""
---
# Class GenerateCommand

Generates the specified entity print template against the specified entity and shows the final PDF.

## 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.Content.CommandHandlers.Print.GenerateCommandHandler

GenerateCommand

## Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.PluginSitecore.CH.Cli.Plugin.ContentSitecore.CH.Cli.Plugin.Content.CommandsPrint

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

## Syntax

```csharp
public class GenerateCommand : BaseCommand<GenerateCommandHandler>
```

## Remarks

**Required parameters**

- `--name -n` Specifies the template name.
- `--entityId -i` Specifies the entity id.

**Optional parameters**

- `--endpoint -e` Specifies an alternative endpoint name for the execution of this command.
- `--culture -c` Specifies the culture.

**Global parameters**

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

## Examples

Generates the entity print template:

```csharp
ch-cli print execute --name "<template name>" --entityId "<entity id>" --culture "<culture>"
```
