English
Generate TypeScript schema from Notion databases
pull
npx notcms-kit pull
--env
[".env", ".env.local", ".dev.vars"]
npx notcms-kit pull --env .env.development
import { Schema } from 'notcms'; export const schema = { // example blog: { id: "abc123...", properties: { title: "title", content: "rich_text", published: "checkbox", publishDate: "date", author: "relation", tags: "multi_select" } } } satisfies Schema;
{ "scripts": { "schema:pull": "notcms-kit pull", } }