generate
generate creates schema files and TypeScript code for managing consent in your project. It is typically used after setup to regenerate types when configuration changes.
Usage
When to use it
- After editing your consent categories, scripts, or policy packs.
- After upgrading c15t to pull in new schema fields.
- When wiring up self-hosted databases that require generated migrations.
What it produces
Depending on your project, generate writes:
- TypeScript type definitions for your consent shape.
- Configuration files consumed by
@c15t/cli setupand@c15t/backend. - Migration files for your selected database adapter (when self-hosted).
The exact set of generated files is determined by your c15t.config and the framework detected in package.json.
Flags
-y/--yes— accept defaults and skip prompts.--resume— resume from a previously interrupted run.- A storage mode (
hosted,offline,self-hosted,custom) can be passed as the first positional argument to skip the storage-mode prompt.
Plus the global flags.
Related
setup— alias forgenerate; same behaviour and flags.self-host migrate— apply generated database migrations.