napi-rs/cli
renovate[bot] f610129b11
fix(deps): update dependency @octokit/rest to v20 (#1653)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 18:13:49 +08:00
..
codegen fix cli watch build and remove unused --esm option (#1631) 2023-06-21 19:35:08 +08:00
docs fix cli watch build and remove unused --esm option (#1631) 2023-06-21 19:35:08 +08:00
src fix cli watch build and remove unused --esm option (#1631) 2023-06-21 19:35:08 +08:00
.npmignore
ava.config.js ci: reduce the complex of CI config (#1628) 2023-06-17 17:03:57 +08:00
CHANGELOG.md chore: publish 2023-04-07 15:00:31 +08:00
cli.mjs fix(cli): missing shebang prefix in cli entries 2023-04-06 15:34:07 +08:00
esbuild.mjs feat(cli): brand new cli tool with both cli and programmatical usage (#1492) 2023-04-06 11:04:53 +08:00
LICENSE
package.json fix(deps): update dependency @octokit/rest to v20 (#1653) 2023-07-13 18:13:49 +08:00
README.md feat(cli): brand new cli tool with both cli and programmatical usage (#1492) 2023-04-06 11:04:53 +08:00
tsconfig.json ci: reduce the complex of CI config (#1628) 2023-06-17 17:03:57 +08:00

@napi-rs/cli

Download Install size chat

Cli tools for napi-rs

# or npm, pnpm
yarn add @napi-rs/cli -D
yarn napi build

Commands

Command desc docs
new create new napi-rs project ./docs/new.md
build build napi-rs project ./docs/build.md
create-npm-dirs Create npm package dirs for different platforms ./docs/create-npm-dirs
artifacts Copy artifacts from Github Actions into specified dir ./docs/artifacts.md
rename Rename the napi-rs project ./docs/rename.md
universalize Combile built binaries into one universal binary ./docs/universalize.md
version Update version in created npm packages by create-npm-dirs ./docs/version.md
pre-publish Update package.json and copy addons into per platform packages ./docs/pre-publish.md

Debug mode

DEBUG="napi:*" napi [command]