Guided 4-phase setup wizard. Takes you from zero to a fully configured DevLake instance interactively — no flags required.
gh devlake init [flags]| Flag | Default | Description |
|---|---|---|
--token |
GitHub PAT (skips interactive token prompt) | |
--env-file |
.devlake.env |
Path to env file containing PAT |
--skip-cleanup |
false |
Don't delete .devlake.env after setup |
╔══════════════════════════════════════╗
║ PHASE 1: Deploy DevLake ║
╚══════════════════════════════════════╝
╔══════════════════════════════════════╗
║ PHASE 2: Configure Connections ║
╚══════════════════════════════════════╝
╔══════════════════════════════════════╗
║ PHASE 3: Configure Scopes ║
╚══════════════════════════════════════╝
╔══════════════════════════════════════╗
║ PHASE 4: Project Setup ║
╚══════════════════════════════════════╝
Prompts you to choose a deployment target:
- local — runs
deploy localin the current directory, then starts Docker containers and waits for DevLake to be ready - azure — runs
deploy azureinteractively (prompts for official vs. custom images, resource group, location)
Presents a multi-select list of available plugins. For each selected plugin:
- Resolves the PAT (from
--token,--env-file, environment, or interactive prompt) - Prompts for organization (and enterprise if needed)
- Creates the connection and tests it
For each connection created in Phase 2:
- GitHub: shows current DORA pattern defaults and asks if you want to customize them. Then resolves repos interactively.
- Copilot: adds the org/enterprise scope automatically.
- Prompts for a project name (defaults to org name)
- Lists the scopes from Phase 3 and includes them in the project
- Creates the project with DORA metrics enabled
- Configures a daily sync blueprint
- Triggers the first data collection and waits for completion
gh devlake initFully interactive — no other flags needed for a standard setup.
init |
configure full |
|
|---|---|---|
| Deploy included | ✅ Phase 1 | ❌ DevLake must already be running |
| Flag-driven | Mostly interactive | Mostly interactive |
| Customization | Prompted at each step | Prompted at each step |
| Best for | First time, exploratory | When DevLake is already deployed |
initcalls the same underlying functions asdeploy local/azure,configure connection,configure scope, andconfigure project— it's orchestration, not a separate implementation.- DORA patterns can be customized interactively in Phase 3. If you accept defaults and want to change them later, re-run
configure scopewith the pattern flags. - After
initcompletes, rungh devlake statusto confirm all services are healthy.
- deploy.md
- configure-connection.md
- configure-scope.md
- configure-project.md
- configure-full.md — same phases but flag-driven, no deploy