---
title: "Update an entity print template"
slug: "update-an-entity-print-template"
abstract: "How to update an entity print template to create a PDF based on entity properties and relations."
---
# Update an entity print template

You can [use the print templates](https://doc.sitecore.com/ch/en/developers/cloud-dev/create-an-entity-print-template.html "Create an entity print template") functionality to create a PDF based on entity properties and relations, such as the PDF report of annotations made on an asset.

> [!note]
> **Before you begin**
> -   [Initialize your working folder](https://doc.sitecore.com/ch/en/developers/cloud-dev/initialize-your-working-folder.html "Initialize your working folder").

This walkthrough describes how to:

- [Pull an entity print template](https://doc.sitecore.com/ch/en/developers/cloud-dev/update-an-entity-print-template.html#UUID-395cf9c7-7e61-25f3-78e8-1f09f05dc1ad_N1715881799925 "Pull an entity print template")
- [Validate an entity print template](https://doc.sitecore.com/ch/en/developers/cloud-dev/update-an-entity-print-template.html#UUID-395cf9c7-7e61-25f3-78e8-1f09f05dc1ad_N1715881812973 "Validate an entity print template")
- [Push an entity print template](https://doc.sitecore.com/ch/en/developers/cloud-dev/update-an-entity-print-template.html#UUID-395cf9c7-7e61-25f3-78e8-1f09f05dc1ad_N1715881826628 "Push an entity print template")
- [Generate an entity print template](https://doc.sitecore.com/ch/en/developers/cloud-dev/update-an-entity-print-template.html#UUID-395cf9c7-7e61-25f3-78e8-1f09f05dc1ad_N1715881859413 "Generate an entity print template")

## Pull an entity print template

To pull an entity print template:

- Run the following command:

```shellscript
ch-cli print pull -n <YOUR_ENTITY_PRINT_TEMPLATE-NAME> -f <YOUR_FOLDER_PATH>

```

> [!note]
> If the working directory was not initialized, the `pull` command runs the `initialize` command.

## Validate an entity print template

The `validate` command validates the formatting of the JSON file and the properties and relations described in the JSON file against the entity definition and the variables used in the razor files.

To validate an entity print template:

- Run the following command:

```shellscript
ch-cli print validate -d <ENTITY_DEFINITION_NAME> -f <YOUR_FOLDER_PATH>

```

Alternatively, do the following:

1. In the **Terminal** menu, click **Run Build Task**.
2. Select the **Validate Entity Print Template** task.

    ![CLI Print Template validate template task](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_validate_template_taskpng.png)

3. Enter the name of the entity definition.

    ![CLI Print Template entity definition task argument](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_entity_definition_task_argumentpng.png)

Validation errors are shown in the **Problems** and **Terminal** views:

![CLI Print Template problems view](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_problems_viewpng.png)

![CLI Print Template terminal view](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_terminal_viewpng.png)

## Push an entity print template

To push the entity print template to your Content Hub instance:

- Run the following command:

```shellscript
ch-cli print push -n <ENTITY_PRINT_TEMPLATE_NAME> -d <ENTITY_DEFINITION_NAME> -f <YOUR_FOLDER_PATH>

```

Alternatively, do the following:

1. In the **Terminal** menu, click **Run Task**.
2. Select the **Push Entity Print Template** task.

    ![CLI Print Template push template task](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_push_template_taskpng.png)

3. Enter the name of the entity definition.

    ![CLI Print Template entity definition task argument](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_entity_definition_task_argumentpng.png)

4. Enter the name of the entity print template.

    ![CLI Print Template template name task argument](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_template_name_task_argumentpng.png)

> [!note]
> The `push` command runs the `validate` command before uploading the entity print template to the connected Content Hub instance.

## Generate an entity print template

To generate an entity print template and review the final PDF file:

- Run the following command:

```shell
ch-cli print generate -n <ENTITY_PRINT_TEMPLATE_NAME> -i <ENTITY_ID> -c <CULTURE>

```

Alternatively, do the following:

1. In the **Terminal** menu, click **Run Task**.
2. Select the **Push Entity Print Template** task.

    ![CLI Print Template generate template task](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_generate_template_taskpng.png)

3. Enter the name of the entity print template.

    ![CLI Print Template template name task argument](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_template_name_task_argumentpng.png)

4. Enter the ID of the entity.

    ![CLI Print Template entity id task argument](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_entity_id_task_argumentpng.png)

5. Enter the culture.

    ![CLI Print Template culture task argument](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/cli_print_template_culture_task_argumentpng.png)

In your browser, you can now open the downloaded PDF file.