Docs
contextai init
Interactive setup wizard that creates your context.config.ts.
bash
contextai initThe init command runs an interactive wizard that:
- —Scans your project root to detect frameworks and TypeScript
- —Asks for your project name, stack, and architecture
- —Lets you choose which output targets to enable
- —Optionally installs a pre-commit git hook
- —Writes context.config.ts to your project root
Git hook
During init you can opt in to a pre-commit hook that runs contextai generate and stages the output files automatically before every commit.