@nacos-group/cli 1.0.4 → 1.0.5-beta.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.
- package/README.md +11 -1
- package/bin/cli.js +1 -1
- package/build/{nacos-cli-1.0.4-darwin-amd64 → nacos-cli-1.0.5-beta.1-darwin-amd64} +0 -0
- package/build/{nacos-cli-1.0.4-darwin-arm64 → nacos-cli-1.0.5-beta.1-darwin-arm64} +0 -0
- package/build/{nacos-cli-1.0.4-linux-amd64 → nacos-cli-1.0.5-beta.1-linux-amd64} +0 -0
- package/build/{nacos-cli-1.0.4-linux-arm64 → nacos-cli-1.0.5-beta.1-linux-arm64} +0 -0
- package/build/{nacos-cli-1.0.4-windows-amd64.exe → nacos-cli-1.0.5-beta.1-windows-amd64.exe} +0 -0
- package/build/{nacos-cli-1.0.4-windows-arm64.exe → nacos-cli-1.0.5-beta.1-windows-arm64.exe} +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -420,10 +420,20 @@ namespace: ""
|
|
|
420
420
|
Configuration values are applied in the following priority order:
|
|
421
421
|
1. **Command line arguments** (highest priority)
|
|
422
422
|
2. **Configuration file**
|
|
423
|
-
3. **
|
|
423
|
+
3. **Environment variables**
|
|
424
|
+
4. **Default values** (lowest priority)
|
|
425
|
+
|
|
426
|
+
Supported environment variables:
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
export NACOS_HOST=127.0.0.1
|
|
430
|
+
export NACOS_PORT=8848
|
|
431
|
+
export NACOS_NAMESPACE=xxx
|
|
432
|
+
```
|
|
424
433
|
|
|
425
434
|
For example:
|
|
426
435
|
- `nacos-cli --config ./local.conf --host 10.0.0.1` - Uses `10.0.0.1` from command line, other values from config file
|
|
436
|
+
- `NACOS_HOST=127.0.0.1 NACOS_PORT=8848 NACOS_NAMESPACE=xxx nacos-cli skill-list` - Uses environment variables when command line and config file values are not provided
|
|
427
437
|
- `nacos-cli` - Uses default `market.hiclaw.io:80` when neither `--host` nor `--port` is provided
|
|
428
438
|
- `nacos-cli --host 127.0.0.1` - Uses `127.0.0.1:8848` because `--host` was provided without `--port`
|
|
429
439
|
- `nacos-cli --port 8849` - Uses `127.0.0.1:8849` because only `--port` was provided
|
package/bin/cli.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/build/{nacos-cli-1.0.4-windows-amd64.exe → nacos-cli-1.0.5-beta.1-windows-amd64.exe}
RENAMED
|
Binary file
|