CLI reference
Commander flags plus interactive prompts. Use --yes for non-interactive CI.
dkit init
Detects Next/Nuxt (or scaffolds), stores Directus connection and UI kit preference in dkit.json.
dkit init dkit init --url http://localhost:8010 --token <token> dkit init --yes --url … --token … --ui shadcn
dkit add
Applies schema and access, installs TypeScript services as lib/dkit/<module>.ts, and copies UI blocks. Optional Directus flows apply automatically; sample seed only with --seed. Template slots pick component variants (e.g. list cards); UI kit comes from uiAdapter.
dkit add blog dkit add blog --seed dkit add blog --template list=blog-list-cards dkit add blog --with blog-list-cards,blog-detail dkit add blog --framework nuxt dkit add blog --schema-only dkit add blog --dry-run dkit add blog --yes --path /blog --prefix dkit_
Interactive mode always asks for collection prefix and module base path when the module declares one.
dkit list
Prints registry modules, slots, and blocks.
dkit list
dkit doctor
Checks project config and Directus connectivity before you apply modules.
dkit doctor