2023-04-06 12:04:53 +09:00
# Artifacts
> This file is generated by cli/codegen. Do not edit this file manually.
Copy artifacts from Github Actions into npm packages and ready to publish
## Usage
```sh
# CLI
napi artifacts [--options]
```
```typescript
// Programatically
import { NapiCli } from '@napi-rs/cli'
new NapiCli().artifacts({
// 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 |
2023-12-15 22:54:33 +09:00
| configPath | --config-path,-c | string | false | | Path to `napi` config json file |
2023-04-06 12:04:53 +09:00
| packageJsonPath | --package-json-path | string | false | 'package.json' | Path to `package.json` |
2023-12-28 13:16:07 +09:00
| outputDir | --output-dir,-o,-d | string | false | './artifacts' | Path to the folder where all built `.node` files put, same as `--output-dir` of build command |
2023-04-06 12:04:53 +09:00
| npmDir | --npm-dir | string | false | 'npm' | Path to the folder where the npm packages put |