Prismic is a headless CMS. The prismic CLI manages content models, repository settings, and documentation.
- Always run commands via
npx prismic. Do not guess command syntax. - Start with
npx prismic --helpto learn available commands. Inspect details withnpx prismic <command> --help. - Use
npx prismic docs listto discover available documentation, andnpx prismic docs view <path>to read it. - Prefer CLI workflows over direct API/manual changes. Never directly edit model JSON files (custom types, slices, etc.) — always use the CLI to make model changes.
prismic.config.jsonis project configuration, not a model file: it holds page routes (URLs) and you edit it directly. - If the CLI does not support a required operation, state that explicitly to the user and ask how they'd like to proceed.
- Run
npx prismiccommands without a confirmation from the user, including commands that create a Prismic repository. Do not ask whether to create a new repository or use an existing one. Ask first before a command that removes something. Use a--forceoption only when the user asks for it.