Create and install a package

Packaging lets you add multiple YAML resources to a compressed ZIP file. You can re-apply the resources in the ZIP file later to the same Content Hub instance or a different one.

Create a package

When you create a package, it:

  1. Validates the YAML files.

  2. Creates a .zip file in your working directory that contains the YAML files.

To create a package:

  • Run the following command:

RequestResponse
 ch-cli serialization package create --name <NAME> 

If validation errors occur during the packaging process, the command aborts and provides a list of those errors, which you must resolve before trying again.

Install a package

When you install a package, it:

  1. Unzips the package.

  2. Validates the content of all resources to check their integrity.

  3. Pushes the resources to the connected Content Hub instance.

To install a package:

  • Run the following command:

    RequestResponse
    ch-cli serialization package install --path <PATH> 
    

If validation errors occur during the installation process, the command aborts and provides a list of those errors, which you must resolve before trying again.

Do you have some feedback for us?

If you have suggestions for improving this article,