Command line tool that provides a fluent API for modifying Windows registry
C:\> winreg
winreg [command]
Commands:
winreg read <hive> <path> Read a value from the registry [aliases: r]
winreg list <hive> <key> List subkeys and values of a key [aliases: l]
winreg write <hive> <path> Write a value to the registry [aliases: w]
winreg delete <hive> <path> Delete a key/value from the registry [aliases: d]
Options:
--help Show help [boolean]
--version Show version number [boolean]
$ npm install -g winreg-cli
Reads the data of a single value item from the path
Lists the contents of a registry key
, including subkeys and values
Stores the given data
at the specified path
in the registry
Deletes a value item or key from the registry. (The --force
flag is required to delete keys)
HKLM
HKCU
HKCR
HKU
HKCC
none
=>'REG_NONE'
string
=>'REG_SZ'
mstring
=>'REG_MULTI_SZ'
estring
=>'REG_EXPAND_SZ'
dword
=>'REG_DWORD'
qword
=>'REG_QWORD'
binary
=>'REG_BINARY'
- Cannot read default values
- Cannot write to default values
- Cannot clear a key, only delete the key/value
- Can only create values not empty keys