ct init
Initialize a new project with a default structure.
ct initct init [flags]| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--dir | -d | string | "." | Project directory |
Output structure
Section titled “Output structure”myproject/ main.ct # manifest definitions (TypeScript syntax) values.json # configurable valuesmain.ct is the entrypoint for your Kubernetes manifests, written in TypeScript-like syntax executed by the CT runtime.
values.json holds configurable values that can be overridden per environment via ct template --values or ct apply --set.
Examples
Section titled “Examples”Initialize in the current directory:
ct initInitialize in a specific directory:
ct init --dir ./my-appWhat’s next
Section titled “What’s next”After initializing, you typically:
- Edit
main.ctto define your Kubernetes resources. - Adjust
values.jsonfor your environment. - Render manifests with
ct template. - Generate IDE types with
ct types.