ReferenceCLI
Compile And Migrate
Validate schema changes, generate migrations, and keep local and hosted environments in sync.
Common Commands
kizaki compile --check
kizaki migrate plan --name add_projects
kizaki migrate applyUse compile when you want validation or generated outputs. Use migrate when the database schema changes.
Recommended Usage
- run
compile --checkfor fast validation - run
migrate planafter schema-affecting changes - run
migrate applyto bring the local database forward in a reviewable way
The Difference Between The Two
compileanswers: “is the schema and generation surface valid?”migrateanswers: “how does the database move safely to match the new schema?”
You will often use both in the same session, but they solve different parts of the workflow.
Related guide: Migrations