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:
-
Validates the YAML files.
-
Creates a
.zip
file in your working directory that contains the YAML files.
To create a package:
-
Run the following command:
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:
-
Unzips the package.
-
Validates the content of all resources to check their integrity.
-
Pushes the resources to the connected Content Hub ONE tenant.
To install a package:
-
Run the following command:
RequestResponsech-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.