Bootstrap a complete environment from a single YAML file using the seed tool.
- Defining schema + tenant + config + locks in one YAML file
- Idempotent seeding — safe to run multiple times
- Field locking to prevent accidental changes to critical values
- The
seed.RunAPI for programmatic environment setup
go run .This example creates and cleans up its own schema — no seed data required (but the server must be running).
See env.yaml for the full format. Key sections:
schema— field definitions with types and constraintstenant— tenant nameconfig— initial valueslocks— fields that cannot be modified
Seeding environment...
Schema: <uuid> (v1, created=true)
Tenant: <uuid> (created=true)
Config: v1 (imported=true)
Locks: 1 applied
- seed package — seed API reference
- decree seed CLI — CLI equivalent
- Previous: Schema Lifecycle | Next: Config Validation →