@nacos-group/cli 0.0.11 → 0.0.12-beta.2
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 +80 -4
- package/bin/cli.js +1 -1
- package/build/{nacos-cli-0.0.11-darwin-amd64 → nacos-cli-0.0.12-darwin-amd64} +0 -0
- package/build/{nacos-cli-0.0.11-darwin-arm64 → nacos-cli-0.0.12-darwin-arm64} +0 -0
- package/build/{nacos-cli-0.0.11-linux-amd64 → nacos-cli-0.0.12-linux-amd64} +0 -0
- package/build/{nacos-cli-0.0.11-linux-arm64 → nacos-cli-0.0.12-linux-arm64} +0 -0
- package/build/{nacos-cli-0.0.11-windows-amd64.exe → nacos-cli-0.0.12-windows-amd64.exe} +0 -0
- package/build/{nacos-cli-0.0.11-windows-arm64.exe → nacos-cli-0.0.12-windows-arm64.exe} +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,22 +7,39 @@ A powerful command-line tool for managing Nacos configuration center and AI skil
|
|
|
7
7
|
- 🚀 Fast and lightweight - single binary with no dependencies
|
|
8
8
|
- 💻 Interactive terminal mode with auto-completion
|
|
9
9
|
- 🎯 Skill management - upload, download, list, and sync AI skills
|
|
10
|
+
- 🤖 AgentSpec management - upload, download, and list AI agent specs
|
|
10
11
|
- 📝 Configuration management - list and get configurations
|
|
11
12
|
- 🔄 Real-time skill synchronization with Nacos
|
|
12
13
|
- 🌐 Namespace support for multi-environment management
|
|
13
|
-
- 📦 Batch operations - upload all skills at once
|
|
14
|
+
- 📦 Batch operations - upload all skills and agent specs at once
|
|
14
15
|
|
|
15
16
|
## Installation
|
|
16
17
|
|
|
18
|
+
### npm / npx
|
|
19
|
+
|
|
20
|
+
Use `npx` to run directly without installation:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx @nacos-group/cli --help
|
|
24
|
+
npx @nacos-group/cli skill-list --host 127.0.0.1 --port 8848 -u nacos -p nacos
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Or install globally via npm:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install -g @nacos-group/cli
|
|
31
|
+
nacos-cli --help
|
|
32
|
+
```
|
|
33
|
+
|
|
17
34
|
### Download Binary
|
|
18
35
|
|
|
19
|
-
Download the latest release from [GitHub Releases](https://github.com/
|
|
36
|
+
Download the latest release from [GitHub Releases](https://github.com/nacos-group/nacos-cli/releases).
|
|
20
37
|
|
|
21
38
|
### Build from Source
|
|
22
39
|
|
|
23
40
|
```bash
|
|
24
41
|
# Clone the repository
|
|
25
|
-
git clone https://github.com/
|
|
42
|
+
git clone https://github.com/nacos-group/nacos-cli.git
|
|
26
43
|
cd nacos-cli
|
|
27
44
|
|
|
28
45
|
# Build
|
|
@@ -68,6 +85,60 @@ nacos> help
|
|
|
68
85
|
|
|
69
86
|
## Commands
|
|
70
87
|
|
|
88
|
+
### AgentSpec Management
|
|
89
|
+
|
|
90
|
+
#### List AgentSpecs
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# CLI mode (description shown by default, truncated at 200 chars)
|
|
94
|
+
nacos-cli agentspec-list -s 127.0.0.1:8848 -u nacos -p nacos
|
|
95
|
+
|
|
96
|
+
# With filters
|
|
97
|
+
nacos-cli agentspec-list --name my-agentspec --page 1 --size 20
|
|
98
|
+
|
|
99
|
+
# Terminal mode
|
|
100
|
+
nacos> agentspec-list
|
|
101
|
+
nacos> agentspec-list --name my-agentspec --page 2
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### Get/Download AgentSpec
|
|
105
|
+
|
|
106
|
+
Download an agent spec to local directory (default: `~/.agentspecs`):
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# CLI mode
|
|
110
|
+
nacos-cli agentspec-get my-agentspec -s 127.0.0.1:8848 -u nacos -p nacos
|
|
111
|
+
nacos-cli agentspec-get my-agentspec -o /custom/path
|
|
112
|
+
|
|
113
|
+
# Download specific version
|
|
114
|
+
nacos-cli agentspec-get my-agentspec --version v1
|
|
115
|
+
|
|
116
|
+
# Download by route label
|
|
117
|
+
nacos-cli agentspec-get my-agentspec --label latest
|
|
118
|
+
|
|
119
|
+
# Download multiple agent specs
|
|
120
|
+
nacos-cli agentspec-get spec1 spec2 spec3
|
|
121
|
+
|
|
122
|
+
# Terminal mode
|
|
123
|
+
nacos> agentspec-get my-agentspec
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### Upload AgentSpec
|
|
127
|
+
|
|
128
|
+
Upload an agent spec from local directory:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# Upload single agent spec
|
|
132
|
+
nacos-cli agentspec-upload /path/to/agentspec -s 127.0.0.1:8848 -u nacos -p nacos
|
|
133
|
+
|
|
134
|
+
# Upload all agent specs in a directory
|
|
135
|
+
nacos-cli agentspec-upload --all /path/to/agentspecs/folder
|
|
136
|
+
|
|
137
|
+
# Terminal mode
|
|
138
|
+
nacos> agentspec-upload /path/to/agentspec
|
|
139
|
+
nacos> agentspec-upload --all /path/to/agentspecs
|
|
140
|
+
```
|
|
141
|
+
|
|
71
142
|
### Skill Management
|
|
72
143
|
|
|
73
144
|
#### List Skills
|
|
@@ -248,12 +319,16 @@ nacos-cli/
|
|
|
248
319
|
│ ├── get_skill.go # skill-get command
|
|
249
320
|
│ ├── upload_skill.go # skill-upload command
|
|
250
321
|
│ ├── sync_skill.go # skill-sync command
|
|
322
|
+
│ ├── list_agentspec.go # agentspec-list command
|
|
323
|
+
│ ├── get_agentspec.go # agentspec-get command
|
|
324
|
+
│ ├── upload_agentspec.go # agentspec-upload command
|
|
251
325
|
│ ├── list_config.go # config-list command
|
|
252
326
|
│ ├── get_config.go # config-get command
|
|
253
327
|
│ └── interactive.go # Interactive terminal
|
|
254
328
|
├── internal/
|
|
255
329
|
│ ├── client/ # Nacos client
|
|
256
330
|
│ ├── skill/ # Skill service
|
|
331
|
+
│ ├── agentspec/ # AgentSpec service
|
|
257
332
|
│ ├── sync/ # Sync service
|
|
258
333
|
│ ├── listener/ # Config listener
|
|
259
334
|
│ ├── terminal/ # Terminal implementation
|
|
@@ -310,9 +385,10 @@ MIT License
|
|
|
310
385
|
|
|
311
386
|
- Rewritten in Go for better performance and portability
|
|
312
387
|
- Added skill management commands (list, get, upload, sync)
|
|
388
|
+
- Added agent spec management commands (list, get, upload)
|
|
313
389
|
- Added real-time skill synchronization with Nacos
|
|
314
390
|
- Added interactive terminal mode with auto-completion
|
|
315
|
-
- Added batch upload support for multiple skills
|
|
391
|
+
- Added batch upload support for multiple skills and agent specs
|
|
316
392
|
- Added configuration management commands
|
|
317
393
|
- Improved error handling and user experience
|
|
318
394
|
- Removed all emoji clutter from terminal output
|
package/bin/cli.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|