@zdsj/pbms-cli 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -4,6 +4,24 @@
4
4
 
5
5
  ## 安装
6
6
 
7
+ ### 通过 npx 使用(推荐,无需全局安装)
8
+
9
+ ```bash
10
+ npx @zdsj/pbms-cli@latest --help
11
+ npx @zdsj/pbms-cli@latest dashboard
12
+ ```
13
+
14
+ ### 全局安装
15
+
16
+ ```bash
17
+ npm install -g @zdsj/pbms-cli
18
+
19
+ # 安装后可在任意目录使用 pbms 命令
20
+ pbms --help
21
+ ```
22
+
23
+ ### 本地开发
24
+
7
25
  ```bash
8
26
  cd cli
9
27
  npm install
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@zdsj/pbms-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "项目预算管理系统命令行工具",
5
5
  "type": "module",
6
6
  "bin": {
7
- "pbms": "./bin/pbms.js"
7
+ "pbms": "./bin/pbms.js",
8
+ "pbms-cli": "./bin/pbms.js"
8
9
  },
9
10
  "scripts": {
10
11
  "start": "node bin/pbms.js",