Script to republish a CCV version in a life cycle environment

Latest response

Has anyone created a script that can republish a Composite Content View version in a specific life cycle environment automatically?

Like:
Add a new CV to CCV mycontentview
Run republish-cv mycontentview mylifecycleenv
Which does:
1. Save current CCV layout, which versions are used etc
2. List and store what component versions that are used for mycontentview in mylifecycleenv
3. Change mycontentview layout to component versions stored in step 2.
4. Publish mycontentview
5. Promote mycontentview mylifecycleenv
6. Restore mycontentview layout as saved in step 1

Result: mycontentview with same CV components + additional new CV component

Responses