npm pkg set version=2.0.0

Category: Node.js & npm/yarn

npm pkg set version=2.0.0

Programmatically set a field in package.json from the command line

Writes a new value to a field in package.json from the command line — scriptable and avoids the need for text editing or jq.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.