Skip to main content

命令行工具

Verdaccio 命令行是启动和控制此应用的工具。

命令

verdaccio --listen 4000 --config ~./config.yaml
参数默认值范例描述
--listen \ -l4873-p 7000HTTP 监听端口
--config \ -c~/.local/verdaccio/config.yaml~./config.yaml配置文件路径
--info \ -i输出本地环境信息

默认配置文件路径位置

要找到主目录,我们首先选择 $XDG_DATA_HOME,接着寻找Windows 环境 APPDATA 环境变量

配置文件格式

Config files should be YAML, JSON or a NodeJS module. Config file should be YAML, JSON or NodeJS module. YAML format is detected by parsing config file extension (yaml or yml, case insensitive).

默认存储位置

我们以**$XDG_DATA_HOME** 环境变量为默认值来默认查找存储,这应该和 $HOME/.local/share一样。 如果您正在使用自定义存储,则与此位置不相干。

Default database file location

The default database file location is in the storage location. The default database file location is in the storage location. Starting with version 4.0.0, the database file name will be .verdaccio-db.json for a new installation of Verdaccio. When upgrading an existing Verdaccio server, the file name will remain .sinopia-db.json. When upgrading an existing Verdaccio server, the file name will remain .sinopia-db.json.

Environment variables

Full list of environment variables.

  • VERDACCIO_HANDLE_KILL_SIGNALS to enable gracefully shutdown (since v4.12.0)