Back to Napi Rs

Rename

cli/docs/rename.md

1.0.02.8 KB
Original Source

Rename

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

Rename the NAPI-RS project

Usage

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

new NapiCli().rename({
  // 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
name--name,-nstringfalseThe new name of the project
binaryName--binary-name,-bstringfalseThe new binary name *.node files
packageName--package-namestringfalseThe new package name of the project
manifestPath--manifest-pathstringfalse'Cargo.toml'Path to Cargo.toml
repository--repositorystringfalseThe new repository of the project
description--descriptionstringfalseThe new description of the project