StackPanel

stackpanel config set

Set a configuration value by dot-path

stackpanel config set

Set a value in .stack/config.nix using a dot-separated path.

Values default to auto-detection:

  • valid JSON numbers become numbers
  • true/false become booleans
  • null becomes null
  • JSON arrays/objects become list/object values
  • anything else is written as a string

Use --type to force the interpretation when needed.

This command is also a useful mental model for Stackpanel's file-management JSON ops: instead of replacing an entire package.json, Stackpanel can now apply preflight-time mutations to specific paths like scripts.dev or dependencies."@gen/env".

Examples: stackpanel config set apps.docs.name docs-site stackpanel config set ports.base 6400 stackpanel config set apps.docs.tls true stackpanel config set apps.docs.tags '["docs","public"]' stackpanel config set apps.docs.env.PORT var://computed/apps/docs/port --type string stackpanel config set apps.docs.env.API_URL 'config.variables."/dev/API_URL".value' --type nix_expr

Usage

stackpanel config set <dot.path> <value>

Flags

FlagTypeDefaultDescription
--jsonboolfalseOutput result as JSON
--typestringautoValue type: auto, string, bool, number, list, object, null, nix_expr

Global Flags

These flags are inherited from parent commands.

FlagTypeDefaultDescription
--daemon, -dboolfalseRun in daemon mode (no TUI, for background processes)
--no-colorboolfalseDisable color output
--no-tuiboolfalseDisable interactive TUI mode
--verbose, -vboolfalseEnable verbose output

On this page