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 will set a configuration setting, by default in the project configuration file unless the -H,--home flag is set, in which case it will be set in the home configuration file.
When used without the --json flag, the new value will be hydrated depending on the type of the field being set: primitives such as strings will be hydrated directly, while complex types such as arrays and objects will be hydrated through JSON.
When used with the --json flag, the new value will always be parsed as JSON before being written to the configuration file.
If set, the configuration will be set in the home configuration file
Set complex configuration settings to JSON values