Skip to content

Migration Guide

Migrating to a new CMS shouldn’t mean copy-pasting hundreds of entries. Chukfi provides a powerful CLI import tool to pull your existing content, media, and schemas into your local PostgreSQL database in seconds.

Chukfi supports importing directly from standard export formats (WordPress XML, Strapi JSON exports, etc.):

Terminal window
npx chukfi import --source wordpress.xml

This command will:

  1. Parse your source file and map categories to Chukfi content types
  2. Download and optimize all referenced media assets
  3. Batch insert entries into your local PostgreSQL database as drafts
Source Format Notes
WordPress WXR (.xml) Preserves posts, pages, categories, tags, and media
Sanity NDJSON export Maps document schemas to content types
Strapi JSON export Handles dynamic zones and component fields
Terminal window
# 1. Export from your old CMS (e.g., WordPress Tools → Export)
# 2. Point Chukfi at the export file
npx chukfi import --source wordpress.xml
# 3. Review the drafts in the Admin UI
# 4. Publish when ready

All imported entries are created as drafts — nothing goes live until you review and publish it. Media is uploaded to your S3 bucket (production) or local filesystem (development).

Run npx chukfi codegen to regenerate TypeScript types if your imported content introduced new fields that need frontend type coverage:

Terminal window
npx chukfi codegen --out src/types