@nacos-group/cli 1.0.4 → 1.0.5-beta.3
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 +122 -25
- package/bin/cli.js +1 -1
- package/build/{nacos-cli-1.0.4-windows-arm64.exe → nacos-cli-1.0.5-beta.3-darwin-amd64} +0 -0
- package/build/{nacos-cli-1.0.4-linux-arm64 → nacos-cli-1.0.5-beta.3-darwin-arm64} +0 -0
- package/build/{nacos-cli-1.0.4-linux-amd64 → nacos-cli-1.0.5-beta.3-linux-amd64} +0 -0
- package/build/nacos-cli-1.0.5-beta.3-linux-arm64 +0 -0
- package/build/{nacos-cli-1.0.4-darwin-arm64 → nacos-cli-1.0.5-beta.3-windows-amd64.exe} +0 -0
- package/build/nacos-cli-1.0.5-beta.3-windows-arm64.exe +0 -0
- package/package.json +1 -1
- package/build/nacos-cli-1.0.4-darwin-amd64 +0 -0
- package/build/nacos-cli-1.0.4-windows-amd64.exe +0 -0
package/README.md
CHANGED
|
@@ -84,6 +84,31 @@ nacos> config-list
|
|
|
84
84
|
nacos> help
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
+
### HTTPS Support
|
|
88
|
+
|
|
89
|
+
Connect to Nacos servers over HTTPS (e.g., behind a TLS-terminating gateway or K8s Ingress):
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Explicit --scheme flag
|
|
93
|
+
nacos-cli skill-list --host nacos.example.com --port 443 --scheme https -u nacos -p nacos
|
|
94
|
+
|
|
95
|
+
# Auto-detect from host prefix (scheme is inferred automatically)
|
|
96
|
+
nacos-cli skill-list --host https://nacos.example.com:443 -u nacos -p nacos
|
|
97
|
+
|
|
98
|
+
# Via profile configuration
|
|
99
|
+
nacos-cli --profile prod skill-list
|
|
100
|
+
|
|
101
|
+
# Via environment variable
|
|
102
|
+
NACOS_SCHEME=https nacos-cli skill-list --host nacos.example.com --port 443 -u nacos -p nacos
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Scheme resolution priority (highest to lowest):
|
|
106
|
+
1. `--scheme` command-line flag
|
|
107
|
+
2. Auto-detected from `--host` prefix (`https://...`)
|
|
108
|
+
3. Profile config file `scheme` field
|
|
109
|
+
4. `NACOS_SCHEME` environment variable
|
|
110
|
+
5. Default: `http`
|
|
111
|
+
|
|
87
112
|
## Commands
|
|
88
113
|
|
|
89
114
|
### AgentSpec Management
|
|
@@ -291,6 +316,27 @@ nacos> skill-release skill-creator --version 0.0.2
|
|
|
291
316
|
> `HTTP 400 parameter validate error` just after `skill-review`, wait and retry
|
|
292
317
|
> when `skill-describe` shows the version as `reviewed`.
|
|
293
318
|
|
|
319
|
+
#### Manage Skill Visibility and Tags
|
|
320
|
+
|
|
321
|
+
Set skill visibility scope:
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
nacos-cli skill-scope skill-creator --scope PUBLIC
|
|
325
|
+
nacos-cli skill-scope skill-creator --scope PRIVATE
|
|
326
|
+
|
|
327
|
+
# Terminal mode
|
|
328
|
+
nacos> skill-scope skill-creator --scope PUBLIC
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
Set skill metadata tags:
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
nacos-cli skill-tags skill-creator --tags retail,finance
|
|
335
|
+
|
|
336
|
+
# Terminal mode
|
|
337
|
+
nacos> skill-tags skill-creator --tags retail,finance
|
|
338
|
+
```
|
|
339
|
+
|
|
294
340
|
#### Publish Skill (deprecated)
|
|
295
341
|
|
|
296
342
|
`skill-publish` is kept as a backward-compatible shortcut that runs
|
|
@@ -369,6 +415,7 @@ nacos> quit # Exit terminal
|
|
|
369
415
|
|------|-------|---------|-------------|
|
|
370
416
|
| --host | | market.hiclaw.io when `--host` and `--port` are both omitted; otherwise 127.0.0.1 when only `--port` is provided | Nacos server host |
|
|
371
417
|
| --port | | 80 when `--host` and `--port` are both omitted; otherwise 8848 when omitted after `--host` | Nacos server port |
|
|
418
|
+
| --scheme | | http | Protocol scheme: `http` or `https` |
|
|
372
419
|
| --server | -s | market.hiclaw.io:80 when no host/port is provided | Nacos server address (deprecated, use --host and --port) |
|
|
373
420
|
| --username | -u | nacos | Nacos username |
|
|
374
421
|
| --password | -p | nacos | Nacos password |
|
|
@@ -376,54 +423,89 @@ nacos> quit # Exit terminal
|
|
|
376
423
|
| --config | -c | | Path to configuration file |
|
|
377
424
|
| --help | -h | | Show help information |
|
|
378
425
|
|
|
379
|
-
## Configuration
|
|
426
|
+
## Profile Configuration
|
|
380
427
|
|
|
381
|
-
|
|
428
|
+
Use `profile edit` to create or update a profile configuration:
|
|
382
429
|
|
|
383
430
|
```bash
|
|
384
|
-
# Create
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
password: nacos
|
|
390
|
-
namespace: ""
|
|
391
|
-
EOF
|
|
431
|
+
# Create or update the current profile
|
|
432
|
+
nacos-cli profile edit
|
|
433
|
+
|
|
434
|
+
# Create or update a named profile
|
|
435
|
+
nacos-cli profile edit dev
|
|
392
436
|
|
|
393
|
-
# Use
|
|
394
|
-
nacos-cli --
|
|
437
|
+
# Use a profile once
|
|
438
|
+
nacos-cli --profile dev skill-list
|
|
439
|
+
|
|
440
|
+
# Switch the default profile used when --profile is omitted
|
|
441
|
+
nacos-cli profile switch dev
|
|
395
442
|
```
|
|
396
443
|
|
|
397
|
-
|
|
444
|
+
Profile files are stored under `~/.nacos-cli/<profile>.conf`. They are YAML
|
|
445
|
+
files managed by the CLI, and sensitive fields are encrypted before they are
|
|
446
|
+
saved.
|
|
398
447
|
|
|
399
|
-
|
|
448
|
+
Example generated profile:
|
|
400
449
|
|
|
401
450
|
```yaml
|
|
402
|
-
# Nacos server host
|
|
403
451
|
host: 127.0.0.1
|
|
404
|
-
|
|
405
|
-
# Nacos server port
|
|
406
452
|
port: 8848
|
|
453
|
+
scheme: http # http or https (default: http)
|
|
454
|
+
authType: nacos
|
|
455
|
+
username: ENC[v1:aes-256-gcm:...]
|
|
456
|
+
password: ENC[v1:aes-256-gcm:...]
|
|
457
|
+
namespace: ""
|
|
458
|
+
```
|
|
407
459
|
|
|
408
|
-
|
|
409
|
-
|
|
460
|
+
Sensitive fields (`username`, `password`, `accessKey`, `secretKey`, and
|
|
461
|
+
`securityToken`) are encrypted with AES-256-GCM before being saved by the CLI.
|
|
462
|
+
The local encryption key is stored at `~/.nacos-cli/key` with `0600`
|
|
463
|
+
permissions. Existing plaintext config files remain readable for backward
|
|
464
|
+
compatibility; the next profile load or `profile edit` rewrites sensitive fields
|
|
465
|
+
in encrypted form.
|
|
410
466
|
|
|
411
|
-
|
|
412
|
-
password: nacos
|
|
467
|
+
Profile management commands:
|
|
413
468
|
|
|
414
|
-
|
|
415
|
-
|
|
469
|
+
```bash
|
|
470
|
+
# List profiles
|
|
471
|
+
nacos-cli profile list
|
|
472
|
+
nacos-cli profile list --output json
|
|
473
|
+
|
|
474
|
+
# Show or read profile values
|
|
475
|
+
nacos-cli profile show dev
|
|
476
|
+
nacos-cli profile get dev server
|
|
477
|
+
nacos-cli profile get auth-type
|
|
478
|
+
|
|
479
|
+
# Non-interactively create or update profile values
|
|
480
|
+
nacos-cli profile set dev host=127.0.0.1 port=8848 auth-type=none
|
|
481
|
+
nacos-cli profile set dev auth-type=nacos username=nacos password=nacos
|
|
482
|
+
nacos-cli profile set dev server=127.0.0.1:8848 namespace=public
|
|
483
|
+
|
|
484
|
+
# Delete a profile
|
|
485
|
+
nacos-cli profile delete dev
|
|
416
486
|
```
|
|
417
487
|
|
|
418
488
|
### Configuration Priority
|
|
419
489
|
|
|
420
490
|
Configuration values are applied in the following priority order:
|
|
421
491
|
1. **Command line arguments** (highest priority)
|
|
422
|
-
2. **
|
|
423
|
-
3. **
|
|
492
|
+
2. **Explicit `--profile` or `--config` file**
|
|
493
|
+
3. **Current profile selected by `profile switch`**
|
|
494
|
+
4. **Environment variables**
|
|
495
|
+
5. **Default values** (lowest priority)
|
|
496
|
+
|
|
497
|
+
Supported environment variables:
|
|
498
|
+
|
|
499
|
+
```bash
|
|
500
|
+
export NACOS_HOST=127.0.0.1
|
|
501
|
+
export NACOS_PORT=8848
|
|
502
|
+
export NACOS_NAMESPACE=xxx
|
|
503
|
+
export NACOS_SCHEME=https # http or https (default: http)
|
|
504
|
+
```
|
|
424
505
|
|
|
425
506
|
For example:
|
|
426
507
|
- `nacos-cli --config ./local.conf --host 10.0.0.1` - Uses `10.0.0.1` from command line, other values from config file
|
|
508
|
+
- `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
509
|
- `nacos-cli` - Uses default `market.hiclaw.io:80` when neither `--host` nor `--port` is provided
|
|
428
510
|
- `nacos-cli --host 127.0.0.1` - Uses `127.0.0.1:8848` because `--host` was provided without `--port`
|
|
429
511
|
- `nacos-cli --port 8849` - Uses `127.0.0.1:8849` because only `--port` was provided
|
|
@@ -441,6 +523,8 @@ nacos-cli/
|
|
|
441
523
|
│ ├── upload_skill.go # skill-upload
|
|
442
524
|
│ ├── review_skill.go # skill-review
|
|
443
525
|
│ ├── release_skill.go # skill-release
|
|
526
|
+
│ ├── update_skill_scope.go # skill-scope
|
|
527
|
+
│ ├── update_skill_tags.go # skill-tags
|
|
444
528
|
│ ├── publish_skill.go # skill-publish (deprecated wrapper)
|
|
445
529
|
│ ├── sync_skill.go # skill-sync
|
|
446
530
|
│ ├── list_agentspec.go # agentspec-list
|
|
@@ -511,6 +595,19 @@ MIT License
|
|
|
511
595
|
|
|
512
596
|
## Changelog
|
|
513
597
|
|
|
598
|
+
### Next Release
|
|
599
|
+
|
|
600
|
+
- Fixed `skill-upload` and `agentspec-upload` creating ZIP archives with an
|
|
601
|
+
extra directory prefix, causing server-side extraction failures
|
|
602
|
+
([#46](https://github.com/nacos-group/nacos-cli/issues/46))
|
|
603
|
+
- Fixed ZIP archive paths using OS-native backslashes on Windows, violating
|
|
604
|
+
the ZIP specification's forward-slash requirement
|
|
605
|
+
([#26](https://github.com/nacos-group/nacos-cli/issues/26))
|
|
606
|
+
- Added HTTPS support via `--scheme` flag, profile `scheme` field, and `NACOS_SCHEME`
|
|
607
|
+
environment variable ([#57](https://github.com/nacos-group/nacos-cli/issues/57))
|
|
608
|
+
- Auto-detect scheme from `--host` URL prefix (e.g. `--host https://nacos.example.com`)
|
|
609
|
+
- All 22 hardcoded `http://` URL constructions replaced with configurable scheme
|
|
610
|
+
|
|
514
611
|
### v1.0.4 (2026-05-08)
|
|
515
612
|
|
|
516
613
|
- Aligned `agentspec-*` commands with `skill-*` around the full server lifecycle
|
package/bin/cli.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|