@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 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. **Default values** (lowest priority)
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
@@ -7,7 +7,7 @@ const os = require('os');
7
7
 
8
8
  // Fixed nacos-cli binary version
9
9
  // npm package version is independent from binary version
10
- const VERSION = '1.0.4';
10
+ const VERSION = '1.0.5-beta.1';
11
11
 
12
12
  // Detect platform and architecture
13
13
  function getBinaryName() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nacos-group/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5-beta.1",
4
4
  "description": "A command-line tool for managing Nacos configurations and AI skills",
5
5
  "bin": {
6
6
  "nacos-cli": "./bin/cli.js"