0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/website/translated_docs/zh-CN/cli.md
2018-08-09 08:05:57 +02:00

24 lines
No EOL
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: cli
title: "命令行工具"
---
Verdaccio 命令行是启动和控制此应用的工具。
## 命令
```bash
verdaccio --listen 4000 --config ~./config.yaml
```
| 参数 | 默认值 | 示例 | 描述 |
| ------------------ | ------------------------------ | -------------- | --------- |
| --listen \ **-l** | 4873 | -p 7000 | HTTP 监听端口 |
| --config \ **-c** | ~/.local/verdaccio/config.yaml | ~./config.yaml | 配置文件路径 |
## 默认配置文件路径位置
要找到主目录,我们首先选择 **$XDG_DATA_HOME**接着寻找Windows 环境 [APPDATA 环境变量](https://www.howtogeek.com/318177/what-is-the-appdata-folder-in-windows/)。
## 默认存储位置
我们以**$XDG_DATA_HOME** 环境变量为默认值来默认查找存储,[这应该和](https://askubuntu.com/questions/538526/is-home-local-share-the-default-value-for-xdg-data-home-in-ubuntu-14-04) $HOME/.local/share一样。 如果您正在使用自定义存储,则与此位置不相干。