Create and install a package

Packaging lets you add multiple YAML resources to a compressed ZIP file. You can then re-apply the resources to the same tenant 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-one-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 ONE tenant.

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,