lintel init¶
Create .lintel/lintel.yaml with secure defaults in the current repository.
Usage¶
Flags¶
| Flag | Default | Purpose |
|---|---|---|
--force |
false | Overwrite an existing .lintel/lintel.yaml |
--minimal |
false | Emit a minimal config (defaults implicit) rather than the fully-annotated starter |
--stack |
auto | Comma-separated stacks (e.g. go,npm); overrides auto-detect |
What it does¶
- Verifies you are inside a Git repository (or refuses).
- Creates
.lintel/if it does not exist. - Writes
.lintel/lintel.yamlseeded from the stack(s) detected in the repo (or the stacks passed with--stack). - Appends
.lintel/overrides.logto.gitignoreif it is not already ignored. - Prints next steps (
lintel install,lintel run).
The generated config is fully commented so new users can read the file top-to-bottom and understand what each setting does. If you prefer a lean file, pass --minimal.
Example¶
cd my-service
lintel init --stack go
# wrote .lintel/lintel.yaml
# next: lintel install (to install git hooks)
# lintel run (to scan now)
Exit codes¶
| Code | Meaning |
|---|---|
| 0 | Config written |
| 2 | Not a Git repo, or .lintel/lintel.yaml exists and --force was not passed |