@nacos-group/cli 0.0.12-beta.5 → 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 +16 -14
- package/bin/cli.js +1 -1
- package/build/{nacos-cli-0.0.12-darwin-amd64 → nacos-cli-1.0.1-darwin-amd64} +0 -0
- package/build/{nacos-cli-0.0.12-darwin-arm64 → nacos-cli-1.0.1-darwin-arm64} +0 -0
- package/build/{nacos-cli-0.0.12-linux-amd64 → nacos-cli-1.0.1-linux-amd64} +0 -0
- package/build/{nacos-cli-0.0.12-linux-arm64 → nacos-cli-1.0.1-linux-arm64} +0 -0
- package/build/{nacos-cli-0.0.12-windows-amd64.exe → nacos-cli-1.0.1-windows-amd64.exe} +0 -0
- package/build/{nacos-cli-0.0.12-windows-arm64.exe → nacos-cli-1.0.1-windows-arm64.exe} +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,20 +123,20 @@ nacos-cli agentspec-get spec1 spec2 spec3
|
|
|
123
123
|
nacos> agentspec-get my-agentspec
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
####
|
|
126
|
+
#### Publish AgentSpec
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
Publish an agent spec from local directory:
|
|
129
129
|
|
|
130
130
|
```bash
|
|
131
|
-
#
|
|
132
|
-
nacos-cli agentspec-
|
|
131
|
+
# Publish single agent spec
|
|
132
|
+
nacos-cli agentspec-publish /path/to/agentspec -s 127.0.0.1:8848 -u nacos -p nacos
|
|
133
133
|
|
|
134
|
-
#
|
|
135
|
-
nacos-cli agentspec-
|
|
134
|
+
# Publish all agent specs in a directory
|
|
135
|
+
nacos-cli agentspec-publish --all /path/to/agentspecs/folder
|
|
136
136
|
|
|
137
137
|
# Terminal mode
|
|
138
|
-
nacos> agentspec-
|
|
139
|
-
nacos> agentspec-
|
|
138
|
+
nacos> agentspec-publish /path/to/agentspec
|
|
139
|
+
nacos> agentspec-publish --all /path/to/agentspecs
|
|
140
140
|
```
|
|
141
141
|
|
|
142
142
|
### Skill Management
|
|
@@ -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 |
|
|
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
|
|
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
|
|
@@ -321,7 +323,7 @@ nacos-cli/
|
|
|
321
323
|
│ ├── sync_skill.go # skill-sync command
|
|
322
324
|
│ ├── list_agentspec.go # agentspec-list command
|
|
323
325
|
│ ├── get_agentspec.go # agentspec-get command
|
|
324
|
-
│ ├──
|
|
326
|
+
│ ├── publish_agentspec.go # agentspec-publish command
|
|
325
327
|
│ ├── list_config.go # config-list command
|
|
326
328
|
│ ├── get_config.go # config-get command
|
|
327
329
|
│ └── interactive.go # Interactive terminal
|
|
@@ -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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|