Kaiten
Self-Hosting

Seed Data

Seeder profiles for development and demo environments.

Seed Data

Kaiten includes a CLI seeder that populates your database with realistic data for development and demos.

Available Profiles

ProfileDescription
defaultFull seed with 4 organizations, users, entitlements, licenses, customers, instances
kaiten-sushi-shopSushi restaurant themed demo: 1 organization, 3 customers, 3 licenses, 4 entitlements, 7 feature flags

Usage

Seed with Docker Compose

KAITEN_SEED_PROFILE=kaiten-sushi-shop make up

Seed with CLI

go run api/cmd/seeder/main.go --profile kaiten-sushi-shop --clean

List Available Profiles

go run api/cmd/seeder/main.go list

Options

FlagDescription
-p, --profileProfile to seed (repeatable for multiple profiles)
-c, --cleanReset database before seeding
--run-migrationsOnly run migrations, skip seeding

Clean Seed

The --clean flag drops the database, re-runs migrations, and seeds from scratch:

go run api/cmd/seeder/main.go -p kaiten-sushi-shop -c

Multiple Profiles

Seed multiple profiles in order:

go run api/cmd/seeder/main.go -p default -p kaiten-sushi-shop

Already-seeded profiles are automatically skipped (tracked in the seeder_runs table).

On this page