Skip to content

Commit

Permalink
doc: add command options to README.md
Browse files Browse the repository at this point in the history
Documents options accepted by node-gyp.
Continuation of nodejs#880.
  • Loading branch information
gibfahn committed May 24, 2016
1 parent 3f39c1f commit 9081f6c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Commands

| **Command** | **Description**
|:--------------|:---------------------------------------------------------------
| `help` | Shows the help dialog
| `build` | Invokes `make`/`msbuild.exe` and builds the native addon
| `clean` | Removes the `build` directory if it exists
| `configure` | Generates project build files for the current platform
Expand All @@ -153,6 +154,34 @@ Commands
| `remove` | Removes the node development header files for the given version


Command Options
--------

`node-gyp` accepts the following command options:

| **Command** | **Description**
|:----------------------------------|:------------------------------------------
| `-j n`, `--jobs n` | For `build`: run parallel builds
| `--silly`, `--loglevel=silly` | Log all progress to console
| `--verbose`, `--loglevel=verbose` | Log most progress to console
| `--silent`, `--loglevel=silent` | Don't log anything
| `--debug` | Make Debug build (default=Release)
| `--release`, `--no-debug` | Make Release build
| `--make=$make` |
| `--thin=$thin` |
| `--ensure` |
| `--solution=$solution` | (windows only)
| `--proxy=$proxy` |
| `--nodedir=$path` | Set the path to the node binary
| `--msys_version=$version` |
| `--dist-url=$url` |
| `--tarball=$tarball` |
| `--python=$path` | Set the path to the python binary
| `--arch=$arch` | Build for a different architecture # Can't get this to work
| `--cafile=$cafile` | Override default CA chain (to download tarball)
| `--directory=$dir` |


License
-------

Expand Down

0 comments on commit 9081f6c

Please sign in to comment.