Synopsis
--global, creates an app-level .dorgu.yaml in the target directory. When run with --global, sets up the global configuration at ~/.config/dorgu/config.yaml through an interactive prompt.
The [path] argument defaults to . (current directory) if omitted.
Description
Theinit command is the starting point for using dorgu. It supports two modes:
- App-level init (default) — Creates a
.dorgu.yamlin the specified directory, scoped to a single application. Use--minimalfor a bare-bones config or--fullfor every available option with inline comments. - Global init (
--global) — Walks you through an interactive setup to configure your LLM provider, API key, default namespace, container registry, and org name. The result is saved to~/.config/dorgu/config.yamland applies to all projects unless overridden by app-level config.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--minimal | bool | false | Create minimal configuration with only essential fields |
--full | bool | false | Create full configuration with all options and inline documentation |
--force | bool | false | Overwrite existing configuration file if one already exists |
--global | bool | false | Initialize global configuration at ~/.config/dorgu/config.yaml |
--minimal and --full only apply to app-level init (without --global). If neither is specified, a sensible default configuration is generated.App-level init
Runningdorgu init without --global creates a .dorgu.yaml file in the target directory. This file lets you customize generation behavior per-application, including output paths, namespace, skip flags, and LLM settings.
.dorgu.yaml already exists, the command will exit with an error unless --force is passed.
Minimal vs Full
Minimal (--minimal) produces a short config with only the fields you are most likely to change:
--full) includes every available option with descriptive comments, making it a useful reference:
Global init
Runningdorgu init --global starts an interactive setup that prompts you for:
- LLM provider — Choose from
openai,anthropic,gemini, orollama - API key — Your provider API key (stored in the global config file)
- Default namespace — Kubernetes namespace used when
--namespaceis not specified - Container registry — Default registry for image references (e.g.,
ghcr.io) - Org name — Your organization or username, used in image paths
~/.config/dorgu/config.yaml. These values act as defaults for all dorgu commands and can be overridden per-project via app-level .dorgu.yaml or CLI flags.
If the global config file already exists,
--force is required to overwrite it.Config merge order (highest priority first):
CLI flags > App
.dorgu.yaml > Workspace .dorgu.yaml > Global ~/.config/dorgu/config.yaml > Environment variables > Built-in defaultsExamples
Initialize default app config in the current directory:Related
- dorgu config — View and modify configuration values after initialization
- dorgu generate — Generate Kubernetes manifests from an analyzed application
- Command Overview — All CLI commands at a glance