2017-07-04 00:20:13 -05:00
|
|
|
# Command Line Interface
|
|
|
|
|
|
|
|
The verdaccio CLI is your go start the application.
|
|
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Please make sure latest Node 4 LTS and NPM 3+ are installed.
|
|
|
|
|
|
|
|
Then, install the CLI globally (you may need sudo):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm install -g verdaccio
|
|
|
|
```
|
|
|
|
or if you use `yarn`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ yarn add global verdaccio
|
|
|
|
```
|
|
|
|
|
2017-08-18 11:37:58 -05:00
|
|
|
> Warning: Verdaccio current is not support PM2's cluster mode, run it with cluster mode may cause unknown behavior
|
|
|
|
|
2017-07-04 00:20:13 -05:00
|
|
|
## Commands
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ verdaccio --listen 4000 --config ./config.yaml
|
|
|
|
```
|
|
|
|
|
|
|
|
Command | Default | Example | Description
|
|
|
|
--- | --- | --- | ---
|
|
|
|
--listen \ **-l** | 4873 | -p 7000 | http port
|
|
|
|
--config \ **-c** | ~/home/user/.local/verdaccio/config.yaml | /foo/bar/config.yaml | the configuration file
|