gb resolve
Compute the final resolved configuration.
Synopsis
gb resolve [options]Description
Processes genbox.yaml, resolves $detect markers, applies profile settings, and outputs the final computed configuration. This is what actually gets used when creating environments.
Options
| Option | Description |
|---|---|
--profile <name> | Resolve with specific profile |
--output <file> | Write to file instead of stdout |
--json | Output as JSON |
Examples
Basic Resolve
gb resolveWith Profile
gb resolve --profile full-stackSave to File
gb resolve --output .genbox/resolved.yamlResolution Process
- Load genbox.yaml: Read source configuration
- Load detected.yaml: Read auto-detected values
- Apply profile: Merge profile settings
- Resolve $detect: Replace markers with detected values
- Compute connections: Determine service URLs
- Apply defaults: Fill in missing values
- Validate: Check for errors
Example Output
Resolving configuration...
Loading genbox.yaml... β
Loading .genbox/detected.yaml... β
Resolving $detect markers:
apps.web.port: $detect β 3000 (from detected.yaml)
apps.web.framework: $detect β nextjs (from detected.yaml)
apps.api.port: 3050 (explicit)
apps.api.framework: nestjs (explicit)
Resolving connections:
web β api: will inject NEXT_PUBLIC_API_URL
api β mongodb: will inject MONGODB_URI
api β redis: will inject REDIS_URL
Computing environment variables... β
Output written to: .genbox/resolved.yaml
Run 'gb validate' to check for errors.Resolved vs Source
| Source (genbox.yaml) | Resolved |
|---|---|
$detect markers | Actual values |
| Profile references | Expanded settings |
| Relative paths | Absolute paths |
| Connection modes | Actual URLs |
Files Involved
project/
βββ genbox.yaml # Source config (you write this)
βββ .genbox/
βββ detected.yaml # Auto-detected values
βββ resolved.yaml # Final computed configNotes
gb createruns resolve automatically- Use for debugging configuration issues
- Resolved config shows exactly what will execute
- Check before creating to catch errors early
See Also
gb validate- Validate resolved configgb config show- View config with explanationgb init- Generate initial config
Last updated on