feat: unify page-type and custom-type into single type command#104
Merged
angeloashmore merged 2 commits intoaa/remote-modelingfrom Apr 10, 2026
Merged
feat: unify page-type and custom-type into single type command#104angeloashmore merged 2 commits intoaa/remote-modelingfrom
page-type and custom-type into single type command#104angeloashmore merged 2 commits intoaa/remote-modelingfrom
Conversation
Consolidates the separate `page-type` and `custom-type` top-level commands into a single `type` command with a `--format` flag on create. - `prismic type create <name> --format page` for page types - `prismic type create <name>` defaults to custom format - `prismic type list` shows all types with format in output - `prismic type view/remove` work regardless of format - Field targeting simplified: `--to-type`/`--from-type` replace `--to-page-type`/`--to-custom-type`/`--from-page-type`/`--from-custom-type` Closes #96 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #96
Description
Unifies the separate
page-typeandcustom-typetop-level commands into a singletypecommand. This avoids agents misusingcustom-typefor pages by providing a--formatflag on create.prismic type create <name>creates a custom format content type (default)prismic type create <name> --format pagecreates a page format content typeprismic type listshows all content types with format in outputprismic type view/removework regardless of format--to-type/--from-typeChecklist
Preview
How to QA 1
prismic type --helpshows create/list/view/remove subcommandsprismic type create MyPage --format pagecreates a page content type with slices and SEO tabprismic type create MySettingscreates a custom content type with empty Main tabprismic type listshows all content types with format columnprismic field add text title --to-type MyPageadds a field to a content typeFootnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩