@zrhsh/wukong-cli 0.4.23 → 0.4.25
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.
- package/README.md +13 -5
- package/dist/cli.js +532 -234
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/wukong-cli.json.template +1 -1
package/README.md
CHANGED
|
@@ -117,23 +117,31 @@ wukong-cli http get /oceanet-auth/web/userInfo
|
|
|
117
117
|
## 环境切换
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
|
-
#
|
|
120
|
+
# 非交互切换(脚本 / CI / Agent 首选)
|
|
121
|
+
wukong-cli env use beta
|
|
122
|
+
|
|
123
|
+
# 查看当前环境与全部环境,--json 便于程序解析
|
|
124
|
+
wukong-cli env current
|
|
125
|
+
wukong-cli env list
|
|
126
|
+
|
|
127
|
+
# 交互式选择(仅限真实终端,方向键选择、回车确认)
|
|
121
128
|
wukong-cli env
|
|
122
129
|
|
|
123
|
-
#
|
|
130
|
+
# 或通过环境变量临时切换(优先级最高)
|
|
124
131
|
# PowerShell
|
|
125
132
|
$env:WUKONG_CLI_ENV="beta"
|
|
126
|
-
wukong-cli auth login
|
|
127
133
|
|
|
128
134
|
# Bash/Zsh
|
|
129
135
|
export WUKONG_CLI_ENV="beta"
|
|
130
|
-
wukong-cli auth login
|
|
131
136
|
|
|
132
137
|
# CMD
|
|
133
138
|
set WUKONG_CLI_ENV=beta
|
|
134
|
-
wukong-cli auth login
|
|
135
139
|
```
|
|
136
140
|
|
|
141
|
+
> stdin 不是终端(管道、后台脚本、Agent 调用)时,`wukong-cli env` 会直接列出环境并退出,不会等待输入。
|
|
142
|
+
|
|
143
|
+
详见 [环境配置指南](docs/user-guide/environments.md)。
|
|
144
|
+
|
|
137
145
|
## 配置
|
|
138
146
|
|
|
139
147
|
Wukong CLI 使用智能配置,内置默认值:
|