@nacos-group/cli 1.0.0 → 1.0.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
@@ -249,9 +249,9 @@ nacos> quit # Exit terminal
249
249
 
250
250
  | Flag | Short | Default | Description |
251
251
  |------|-------|---------|-------------|
252
- | --host | | 127.0.0.1 | Nacos server host |
253
- | --port | | 8848 | Nacos server port |
254
- | --server | -s | 127.0.0.1:8848 | Nacos server address (deprecated, use --host and --port) |
252
+ | --host | | market.hiclaw.io when `--host` and `--port` are both omitted; otherwise 127.0.0.1 when only `--port` is provided | Nacos server host |
253
+ | --port | | 80 when `--host` and `--port` are both omitted; otherwise 8848 when omitted after `--host` | Nacos server port |
254
+ | --server | -s | market.hiclaw.io:80 when no host/port is provided | Nacos server address (deprecated, use --host and --port) |
255
255
  | --username | -u | nacos | Nacos username |
256
256
  | --password | -p | nacos | Nacos password |
257
257
  | --namespace | -n | (empty/public) | Nacos namespace ID |
@@ -306,7 +306,9 @@ Configuration values are applied in the following priority order:
306
306
 
307
307
  For example:
308
308
  - `nacos-cli --config ./local.conf --host 10.0.0.1` - Uses `10.0.0.1` from command line, other values from config file
309
- - `nacos-cli --host 192.168.1.100 --port 8848` - Uses command line values, defaults for username/password
309
+ - `nacos-cli` - Uses default `market.hiclaw.io:80` when neither `--host` nor `--port` is provided
310
+ - `nacos-cli --host 127.0.0.1` - Uses `127.0.0.1:8848` because `--host` was provided without `--port`
311
+ - `nacos-cli --port 8849` - Uses `127.0.0.1:8849` because only `--port` was provided
310
312
  - `nacos-cli --config ./local.conf` - Uses all values from config file
311
313
 
312
314
  ## Project Structure
@@ -397,4 +399,4 @@ MIT License
397
399
 
398
400
  - Initial Python version release
399
401
  - Basic configuration management
400
- - Basic service discovery
402
+ - Basic service discovery
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.0';
10
+ const VERSION = '1.0.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.0",
3
+ "version": "1.0.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"