how to get the version from the package.json code example Example: package.json version $(node -pe 'require(\"./package.json\")[\"version\"]')