gb config
Inspect and debug Genbox configuration.
Synopsis
gb config [subcommand] [options]Subcommands
show
Display the resolved configuration:
gb config show [options]Options:
--explain- Show where each value comes from--path <path>- Show specific config path--json- Output as JSON
diff
Compare two profiles:
gb config diff <profile1> <profile2>Examples
Show Full Config
gb config showExplain Values
gb config show --explainOutput:
apps.web.port: 3000
ββ CLI flag: (not set)
ββ Profile 'quick': (not set)
ββ genbox.yaml: $detect
β ββ detected.yaml: 3000
β ββ source: package.json scripts.dev "--port 3000"
ββ schema default: (none)
β Final value: 3000
apps.web.type: frontend
ββ CLI flag: (not set)
ββ Profile 'quick': (not set)
ββ genbox.yaml: frontend (explicit) βββ User specified
ββ schema default: (none)
β Final value: frontendShow Specific Path
# Show apps configuration
gb config show --path apps
# Show specific app
gb config show --path apps.api
# Show profiles
gb config show --path profilesCompare Profiles
gb config diff admin-quick full-stackOutput:
Comparing profiles: admin-quick vs full-stack
size:
- small
+ large
apps:
- [admin]
+ [admin, api, web]
database.mode:
- none
+ copy
infrastructure:
- (none)
+ mongodb: local
+ redis: localJSON Output
gb config show --json{
"version": 4,
"project": {
"name": "myproject",
"structure": "monorepo"
},
"apps": {
"admin": {
"path": "admin/",
"type": "frontend",
"port": 3001
}
}
}Value Sources
The --explain flag shows value precedence:
- CLI flags - Highest priority
- Profile overrides - From selected profile
- genbox.yaml explicit - User-defined values
- $detect markers - Auto-detected values
- Schema defaults - Built-in defaults
Notes
- Use
--explainto debug unexpected values diffhelps understand profile differences- JSON output useful for scripting
See Also
gb validate- Validate configurationgb resolve- Compute final configgb init- Initialize configuration
Last updated on