other
Prismic CLI for Headless Automation
Use the Prismic CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write Bearer token auth
Prismic CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Prismic CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Prismic CLI for Headless Automation
kosmokrator integrations:configure prismic --set access_token="$PRISMIC_ACCESS_TOKEN" --set repository="$PRISMIC_REPOSITORY" --enable --read allow --write ask --json
kosmo integrations:call prismic.prismic_list_documents '{"q":"example_q","pageSize":1,"page":1,"orderings":"example_orderings","lang":"example_lang","ref":"example_ref"}' --json Discovery Before Execution
Agents and scripts can inspect Prismic docs and schemas before choosing a function.
kosmo integrations:docs prismic --json
kosmo integrations:docs prismic.prismic_list_documents --json
kosmo integrations:schema prismic.prismic_list_documents --json
kosmo integrations:search "Prismic" --json
kosmo integrations:list --json Useful Prismic CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
prismic.prismic_list_documents | Read | q, pageSize, page, orderings, lang, ref | Search and list documents from the Prismic repository. Supports filtering with Prismic query predicates, pagination, ordering, and language selection. |
prismic.prismic_get_document | Read | id, ref, lang | Retrieve a single document from the Prismic repository by its unique document ID. |
prismic.prismic_list_types | Read | limit, page | List all custom types defined in the Prismic repository. Returns type IDs and names that can be used for document queries. |
prismic.prismic_get_tags | Read | none | List all tags defined in the Prismic repository. Tags can be used to filter documents in search queries. |
prismic.prismic_list_refs | Read | none | List all refs (releases and drafts) for the Prismic repository. The master ref points to the published content; other refs point to drafts or releases in progress. |
prismic.prismic_list_languages | Read | none | List all languages configured in the Prismic repository. Returns language codes and names that can be used for querying content in specific locales. |
prismic.prismic_get_current_user | Read | none | Verify the Prismic API connection is working by performing a minimal document search. Returns connection status and repository information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.