Qentrah
Projects
On this page
Guides

Generate TypeScript types

View as Markdown

Code generation

Terminal
Shell
npx @qentrah/sdk@3.0.0-beta.31 codegen \
  --url https://cms.example.com \
  --api-key "$QENTRAH_API_KEY" \
  --out src/qentrah.d.ts

Expected result

The CLI writes the generated declarations to the --out path. Run it against a reachable CMS with permission to read the collection schema. Import the resulting types in your application and regenerate them when schemas change. Use the scoped package command above so npx resolves the documented SDK rather than a similarly named package.

Source captured: 2026-10-11