Skip to Content
New to Genbox? Check out our Getting Started guide
Commandsresolve

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

OptionDescription
--profile <name>Resolve with specific profile
--output <file>Write to file instead of stdout
--jsonOutput as JSON

Examples

Basic Resolve

gb resolve

With Profile

gb resolve --profile full-stack

Save to File

gb resolve --output .genbox/resolved.yaml

Resolution Process

  1. Load genbox.yaml: Read source configuration
  2. Load detected.yaml: Read auto-detected values
  3. Apply profile: Merge profile settings
  4. Resolve $detect: Replace markers with detected values
  5. Compute connections: Determine service URLs
  6. Apply defaults: Fill in missing values
  7. 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 markersActual values
Profile referencesExpanded settings
Relative pathsAbsolute paths
Connection modesActual URLs

Files Involved

project/ β”œβ”€β”€ genbox.yaml # Source config (you write this) └── .genbox/ β”œβ”€β”€ detected.yaml # Auto-detected values └── resolved.yaml # Final computed config

Notes

  • gb create runs resolve automatically
  • Use for debugging configuration issues
  • Resolved config shows exactly what will execute
  • Check before creating to catch errors early

See Also

Last updated on