pnpm Config and Store/Set config value

Set a pnpm configuration value.

Section: Configuration Basics

Set config value

bash
bash
pnpm config set store-dir ~/.pnpm-store
Explanation

Set a pnpm configuration value.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Configuration Basics
Get config value
Read a pnpm configuration value.
OpenIn sheetbashsame section
Delete config value
Remove a config key.
OpenIn sheetbashsame section
List config
Print active configuration values.
OpenIn sheetbashsame section
Create project .npmrc
Write common pnpm/npm-compatible configuration into .npmrc.
OpenIn sheetbashsame section
Configure store directory
Pin the store location explicitly.
OpenIn sheetbash3 tag match
Show store path
Display the content-addressable store location.
OpenIn sheetbash2 tag match