Hi,
In order to build a content model that can be versioned in a Git repo and promoted through different environments using a pipeline, I didn't find a way to do it, neither an Admin API or CLI that make import/export
I explored the "prismic theme" cli cmd to push content type but the issue with that it is only creating new repo, it is not suited for updating an existing repository to update the content model and it is not handling slice models.
,
I manage to use "slice machine" cli in order to publish to the prismic and keep it in sync for one environement, but it is becoming quite tricky to handle environment promotion (dev->staging->prod) of slices models only and it is not handling "custom types" at all.
Is there any thing I missed ? For me each it is such standard use case that I am surprised that I did not find any solutions or even queries about this in the forum. What do you think about this ?
Thanks for posting this question, and welcome to the Prismic community
No, you haven't missed anything! This is a feature that we're rolling out soon.
You're right, the theme command is not meant to versioning Custom Types. As part of Slice Machine, we're working on a Custom Type builder, which you will be able to use to version your Custom Types in your code base.
Stay tuned to our newsletter for an update when this feature comes out.