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.