Back to Napi Rs

Version

cli/docs/version.md

1.0.01.6 KB
Original Source

Version

This file is generated by cli/codegen. Do not edit this file manually.

Update version in created npm packages

Usage

sh
# CLI
napi version [--options]
typescript
// Programatically
import { NapiCli } from '@napi-rs/cli'

new NapiCli().version({
  // options
})

Options

OptionsCLI Optionstyperequireddefaultdescription
--help,-hget help
cwd--cwdstringfalseprocess.cwd()The working directory of where napi command will be executed in, all other paths options are relative to this path
configPath--config-path,-cstringfalsePath to napi config json file
packageJsonPath--package-json-pathstringfalse'package.json'Path to package.json
npmDir--npm-dirstringfalse'npm'Path to the folder where the npm packages put