跳到主要内容
版本号:5.x (Latest)

命令行工具

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

命令

verdaccio --listen 4000 --config ~./config.yaml
参数默认值范例描述
--listen \ -lhttp:localhost:48737000Define protocol + host + port (formats)
--config \ -c~/.local/verdaccio/config.yaml~./config.yamlSet location of the configuration file
--info \ -iPrint local environment information
--version \ -vShow version information

默认配置文件路径位置

要找到主目录,我们首先选择 $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一样。 如果您正在使用自定义存储,则与此位置不相干。

You can use VERDACCIO_STORAGE_PATH to define an alternative storage path, read more about VERDACCIO_STORAGE_PATH at the environment variables page.

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.

The database name sinopia-db.json is deprecated and support will be removed after v6.x

Environment variables

Full list of environment variables.