Skip to content

Migration Guide

Content migration from existing CMS platforms is planned for a future release. In v0.2.0, demo data is available via chukfi seed, and content can be created programmatically via the CLI or REST API.

Note: This video demonstrates a planned import workflow. v0.2.0 does not include a built-in import command. Content can be created via chukfi content create or the REST API.

Creating Content Programmatically (v0.2.0)

Section titled “Creating Content Programmatically (v0.2.0)”

While the one-click import is planned, you can populate Chukfi today:

Terminal window
# Create a page via CLI
chukfi content create \
--type pages \
--title "About Us" \
--fields '{"body":"<p>Our story.</p>"}' \
--status draft \
--json
# Upload media
chukfi media upload --path ./photo.jpg --alt "Team photo" --json
# Publish
chukfi content update --id <uuid> --status published --json

The following formats are on the roadmap:

Source Format Status
WordPress WXR (.xml) Planned
Sanity NDJSON export Planned
Strapi JSON export Planned

For custom migration scripts, the CLI Reference documents all content and media commands you can use to build your own import pipeline.

Run chukfi codegen to regenerate TypeScript types for your frontend:

Terminal window
chukfi codegen --out src/types