yarn config set — Yarn CLI reference
Set a configuration value
Docs/Reference/CLI/config/set
yarn config set
Set a configuration value
yarn config set <NAME> <VALUE>
This command writes a configuration setting to the project configuration file by default. Use -H,--home to write to the home configuration file instead.
Without --json, the value is interpreted according to the setting type: primitive values can be passed directly, while arrays and objects are parsed from JSON.
With --json, the value is always parsed as JSON before it is written.
Write to the home configuration file instead of the project file
Parse the value as JSON before writing it