napi-rs/cli
renovate[bot] e175e6fbd6
fix(deps): update dependency emnapi to v0.45.0 (#1879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-30 00:45:50 +08:00
..
codegen fix(cli): compatible with napi artifacts -d option (#1872) 2023-12-28 12:16:07 +08:00
docs fix(cli): compatible with napi artifacts -d option (#1872) 2023-12-28 12:16:07 +08:00
src fix(cli): also load wasm file from packages (#1876) 2023-12-30 00:43:38 +08:00
.npmignore feat(cli): new project command 2020-12-23 00:16:45 +08:00
CHANGELOG.md chore(release): publish 2023-12-30 00:44:20 +08:00
cli.mjs fix(cli): missing shebang prefix in cli entries 2023-04-06 15:34:07 +08:00
esbuild.mjs feat(cli): support @napi-rs/cross-toolchain (#1838) 2023-12-05 17:27:23 +08:00
LICENSE refactor(cli): init yarn workspace, move napi-rs package => @napi-rs/cli 2020-12-02 22:34:39 +08:00
package.json fix(deps): update dependency emnapi to v0.45.0 (#1879) 2023-12-30 00:45:50 +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 feat: integrate with emnapi (#1669) 2023-11-02 12:57:11 +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]