0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00
verdaccio/website/translated_docs/vi-VN/cli.md

2.1 KiB

id title
cli Công cụ dòng lệnh Command line

The Verdaccio CLI is your tool to start and stop the application.

Các lệnh

verdaccio --listen 4000 --config ~./config.yaml
Tham số Giá trị mặc định Ví dụ Miêu tả
--listen \ -l 4873 -p 7000 http port
--config \ -c ~/.local/verdaccio/config.yaml ~./config.yaml tệp tin cấu hình
--info \ -i prints local environment information

Vị trí đường dẫn tệp cấu hình mặc định

To locate the home directory, we rely on $XDG_DATA_HOME as a first choice and for Windows environments we look for the APPDATA environment variable.

Config file format

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

Vị trí lưu trữ mặc định

We use the $XDG_DATA_HOME environment by variable default to locate the storage by default which should be the same as $HOME/.local/share. Vị trí này sẽ không liên quan đến bạn nếu bạn đang sử dụng bộ nhớ tùy chỉnh.

Default database file 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.

Environment variables

Full list of environment variables.

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