$ reggie-server --help
Reggie wants to serve your packages!
Usage: reggie-server
Options:
-d, --data Directory to store Reggie's data [default: "~/.reggie/packages/package/{$package_name}/data"]
-p, --port Reggie's a good listener. What port should I listen on? [default: 8080]
-h, --host Which host should Reggie listen on? [default: "0.0.0.0"]
-u, --url URL where `npm` can access registry (usually http://{hostname}:{port}/)
启动服务器
1
reggie-server -d ~/.reggie
发布
1
$ reggie -u http://$host:$port publish
reggie 命令行参数
1
$ reggie --help
reggie publish --> Publish current module (from module root)
reggie info <package_name> --> Show JSON info about a particular package
Options:
-u, --url The base URL of the Reggie server (e.g. http://reggie:8080) [required] [default: "http://127.0.0.1:8080"]