pnpm config
Aliases: c
Kelola file konfigurasi.
The configuration files are in INI format.
The local configuration file is located in the root of the project and is named .npmrc.
File konfigurasi global terletak di salah satu lokasi berikut:
- If the $XDG_CONFIG_HOME env variable is set, then $XDG_CONFIG_HOME/pnpm/rc
- On Windows: ~/AppData/Local/pnpm/config/rc
- On macOS: ~/Library/Preferences/pnpm/rc
- On Linux: ~/.config/pnpm/rc
Perintah
set <key> <value>
Memberikan nilai kepada key sesuai dengan value yang diberikan.
get <key>
Mengambil value dari key yang disediakan.
delete <key>
Menghapus key dari berkas konfigurasi.
list
Tampilkan semua pengaturan konfigurasi.
Pengaturan
--global, -g
Atur konfigurasi pada fail konfigurasi global.
--location
When set to project, the .npmrc file at the nearest package.json will be used.
When set to global, the performance is the same as setting the --global option.
--json
Tampilkan semua pengaturan konfigurasi ke dalam format JSON.