Use the Content Hub CLI for deployment automation
To use the Content Hub CLI for package-based CI/CD deployment automation, follow this workflow:
- Install the Content Hub CLI
- Log in with the CLI
- Initialize your working folder
- Export packages from the source environment
- Import packages into the target environment
Do not manually edit, move, or delete folders in import or export packages as modifying the package structure will cause failures. If you do encounter a problem after importing a modified package, we recommend you export the package again and then re-import it without any modifications.
The following list shows examples of common calls used in deployment automation. Replace package.zip with a valid file name.
To help you use the Content Hub CLI for deployment automation, we provide an example using an Azure pipeline. Refer to the general best practices for guidance. Migrate changes between instances contains additional information about migrating data.