Kizaki
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 apply

Use compile when you want validation or generated outputs. Use migrate when the database schema changes.

  • run compile --check for fast validation
  • run migrate plan after schema-affecting changes
  • run migrate apply to bring the local database forward in a reviewable way

The Difference Between The Two

  • compile answers: “is the schema and generation surface valid?”
  • migrate answers: “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

On this page