a781a4f27e
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
30 lines
1.4 KiB
Markdown
30 lines
1.4 KiB
Markdown
# 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
|
|
|
|
| Options | CLI Options | type | required | default | description |
|
|
| --------------- | ------------------- | ------ | -------- | -------------- | ------------------------------------------------------------------------------------------------------------------ |
|
|
| | --help,-h | | | | get help |
|
|
| cwd | --cwd | string | false | process.cwd() | The working directory of where napi command will be executed in, all other paths options are relative to this path |
|
|
| packageJsonPath | --package-json-path | string | false | 'package.json' | Path to `package.json` |
|
|
| npmDir | --npm-dir | string | false | 'npm' | Path to the folder where the npm packages put |
|