Docs/CLI/Global Config

Global Config

GwenUI CLI stores your preferences in a global config file at ~/.gwen/config.json.

Location#

~/.gwen/config.json

The global config persists your preferences across all GwenUI projects on your machine.

Config structure#

{
  "blocksDir": "src/components/blocks",
  "cssFile": "src/app/globals.css",
  "theme": "gwen-noir",
  "packageManager": "pnpm"
}

Fields#

FieldTypeDefaultDescription
blocksDirstringsrc/components/blocksWhere blocks are installed
cssFilestringsrc/app/globals.cssYour global CSS file path
themestringgwen-noirActive GwenUI theme
packageManagerstringauto-detectedPackage manager to use

Editing the config#

The config is plain JSON — edit it directly:

# Open in your default editor
code ~/.gwen/config.json
 
# Or cat to inspect
cat ~/.gwen/config.json

Editing the global config affects all GwenUI projects on your machine. Per-project overrides are not yet supported — coming in a future release.

Resetting the config#

Delete the config file to reset to defaults:

rm ~/.gwen/config.json

Then run gwen-ui init again to reconfigure.

Package manager detection#

If packageManager is not set, the CLI auto-detects based on lockfiles:

LockfileDetected
pnpm-lock.yamlpnpm
yarn.lockyarn
bun.lockbbun
package-lock.jsonnpm