@nebulaos/cli 0.1.0 → 0.1.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/LICENSE.txt +21 -0
- package/README.md +310 -298
- package/dist/bin/nebulaos.js +133 -17
- package/dist/bin/nebulaos.js.map +1 -1
- package/dist/index.js +135 -19
- package/dist/index.js.map +1 -1
- package/package.json +59 -59
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-present, iamkun
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,298 +1,310 @@
|
|
|
1
|
-
# NebulaOS CLI
|
|
2
|
-
|
|
3
|
-
> Command-line interface for managing NebulaOS AI agents, workflows, and resources.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- **Authentication** -- Login with Personal Access Tokens (PAT), manage contexts for multiple organizations
|
|
8
|
-
- **Resource Management** -- List, inspect, archive, unarchive, and promote agents, workflows, and tools
|
|
9
|
-
- **Execution** -- Run agents and workflows remotely,
|
|
10
|
-
- **LLM Gateway** -- Manage routes, API keys, browse model catalog, track usage and requests
|
|
11
|
-
- **RAG** -- Create and manage Retrieval-Augmented Generation connections, run semantic searches
|
|
12
|
-
- **Feature Flags** -- Enable, disable, and configure platform features
|
|
13
|
-
- **Observability** -- Search and inspect traces, view metrics
|
|
14
|
-
- **Multi-format Output** -- Table, JSON, YAML, and quiet modes for both humans and AI agents
|
|
15
|
-
|
|
16
|
-
## Installation
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# npm
|
|
20
|
-
npm install -g @nebulaos/cli
|
|
21
|
-
|
|
22
|
-
# pnpm
|
|
23
|
-
pnpm add -g @nebulaos/cli
|
|
24
|
-
|
|
25
|
-
# yarn
|
|
26
|
-
yarn global add @nebulaos/cli
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
After installation, the `nebulaos` command will be available globally.
|
|
30
|
-
|
|
31
|
-
## Quick Start
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
# 1. Login with your Personal Access Token
|
|
35
|
-
nebulaos auth login
|
|
36
|
-
|
|
37
|
-
# 2. Check authentication status
|
|
38
|
-
nebulaos auth status
|
|
39
|
-
|
|
40
|
-
# 3. List your organizations
|
|
41
|
-
nebulaos orgs list
|
|
42
|
-
|
|
43
|
-
# 4. List registered resources
|
|
44
|
-
nebulaos resources list
|
|
45
|
-
|
|
46
|
-
# 5. Execute an agent
|
|
47
|
-
nebulaos exec run <resourceId> --input '{"prompt": "Hello"}'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
|
86
|
-
|
|
87
|
-
| `
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
|
98
|
-
|
|
99
|
-
|
|
|
100
|
-
| `--
|
|
101
|
-
| `--
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
|
130
|
-
|
|
131
|
-
| `nebulaos clients
|
|
132
|
-
| `nebulaos clients
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
|
141
|
-
|
|
142
|
-
| `nebulaos resources
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
|
172
|
-
|
|
173
|
-
| `nebulaos
|
|
174
|
-
| `nebulaos
|
|
175
|
-
| `nebulaos
|
|
176
|
-
| `nebulaos
|
|
177
|
-
| `nebulaos
|
|
178
|
-
| `nebulaos
|
|
179
|
-
| `nebulaos
|
|
180
|
-
|
|
181
|
-
###
|
|
182
|
-
|
|
183
|
-
| Command | Description |
|
|
184
|
-
|---|---|
|
|
185
|
-
| `nebulaos
|
|
186
|
-
| `nebulaos
|
|
187
|
-
| `nebulaos
|
|
188
|
-
| `nebulaos
|
|
189
|
-
| `nebulaos
|
|
190
|
-
| `nebulaos
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
| `nebulaos
|
|
198
|
-
| `nebulaos
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
1
|
+
# NebulaOS CLI
|
|
2
|
+
|
|
3
|
+
> Command-line interface for managing NebulaOS AI agents, workflows, and resources.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Authentication** -- Login with Personal Access Tokens (PAT), manage contexts for multiple organizations
|
|
8
|
+
- **Resource Management** -- List, inspect, archive, unarchive, and promote agents, workflows, and tools
|
|
9
|
+
- **Execution** -- Run agents and workflows remotely, with optional memory context for multi-turn conversations
|
|
10
|
+
- **LLM Gateway** -- Manage routes, API keys, browse model catalog, track usage and requests
|
|
11
|
+
- **RAG** -- Create and manage Retrieval-Augmented Generation connections, run semantic searches
|
|
12
|
+
- **Feature Flags** -- Enable, disable, and configure platform features
|
|
13
|
+
- **Observability** -- Search and inspect traces, view metrics
|
|
14
|
+
- **Multi-format Output** -- Table, JSON, YAML, and quiet modes for both humans and AI agents
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# npm
|
|
20
|
+
npm install -g @nebulaos/cli
|
|
21
|
+
|
|
22
|
+
# pnpm
|
|
23
|
+
pnpm add -g @nebulaos/cli
|
|
24
|
+
|
|
25
|
+
# yarn
|
|
26
|
+
yarn global add @nebulaos/cli
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
After installation, the `nebulaos` command will be available globally.
|
|
30
|
+
|
|
31
|
+
## Quick Start
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# 1. Login with your Personal Access Token
|
|
35
|
+
nebulaos auth login
|
|
36
|
+
|
|
37
|
+
# 2. Check authentication status
|
|
38
|
+
nebulaos auth status
|
|
39
|
+
|
|
40
|
+
# 3. List your organizations
|
|
41
|
+
nebulaos orgs list
|
|
42
|
+
|
|
43
|
+
# 4. List registered resources
|
|
44
|
+
nebulaos resources list
|
|
45
|
+
|
|
46
|
+
# 5. Execute an agent
|
|
47
|
+
nebulaos exec run <resourceId> --input '{"prompt": "Hello"}'
|
|
48
|
+
|
|
49
|
+
# 6. Multi-turn conversation (same memory-key = same context)
|
|
50
|
+
nebulaos exec run <resourceId> -i '"Hello"' -m my-session
|
|
51
|
+
nebulaos exec run <resourceId> -i '"What did I just say?"' -m my-session
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Configuration
|
|
55
|
+
|
|
56
|
+
### Contexts
|
|
57
|
+
|
|
58
|
+
NebulaOS CLI supports multiple contexts, allowing you to manage several organizations or environments. Each context stores an API URL, authentication token, and organization ID.
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Login creates a context automatically
|
|
62
|
+
nebulaos auth login --api-url https://api.myorg.nebulaos.com --context-name production
|
|
63
|
+
|
|
64
|
+
# Switch between organizations
|
|
65
|
+
nebulaos orgs switch my-other-org
|
|
66
|
+
|
|
67
|
+
# View all configuration
|
|
68
|
+
nebulaos config list
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Defaults
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Set default output format
|
|
75
|
+
nebulaos config set defaults.output json
|
|
76
|
+
|
|
77
|
+
# Set default page size (1-100)
|
|
78
|
+
nebulaos config set defaults.pageSize 50
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Configuration is stored using the [conf](https://github.com/sindresorhus/conf) library under the `nebulaos` project name (`~/.config/nebulaos/config.json` on Linux).
|
|
82
|
+
|
|
83
|
+
### Environment Variables
|
|
84
|
+
|
|
85
|
+
| Variable | Description | Corresponding Flag |
|
|
86
|
+
|---|---|---|
|
|
87
|
+
| `NEBULAOS_OUTPUT` | Default output format (`table`, `json`, `yaml`, `quiet`) | `-o, --output` |
|
|
88
|
+
| `NEBULAOS_CONTEXT` | Context name to use | `--context` |
|
|
89
|
+
| `NEBULAOS_API_URL` | Override API URL | `--api-url` |
|
|
90
|
+
| `NEBULAOS_TOKEN` | Override authentication token | `--token` |
|
|
91
|
+
| `NEBULAOS_ORG_ID` | Override organization ID | `--org-id` |
|
|
92
|
+
|
|
93
|
+
## Global Options
|
|
94
|
+
|
|
95
|
+
These options are available on every command:
|
|
96
|
+
|
|
97
|
+
| Option | Description |
|
|
98
|
+
|---|---|
|
|
99
|
+
| `-o, --output <format>` | Output format: `table`, `json`, `yaml`, `quiet` |
|
|
100
|
+
| `--context <name>` | Use a specific context |
|
|
101
|
+
| `--api-url <url>` | Override API URL |
|
|
102
|
+
| `--token <token>` | Override authentication token |
|
|
103
|
+
| `--org-id <id>` | Override organization ID |
|
|
104
|
+
| `--no-color` | Disable colored output |
|
|
105
|
+
| `--verbose` | Enable verbose output |
|
|
106
|
+
| `-V, --version` | Show CLI version |
|
|
107
|
+
| `-h, --help` | Show help |
|
|
108
|
+
|
|
109
|
+
## Commands
|
|
110
|
+
|
|
111
|
+
### Authentication
|
|
112
|
+
|
|
113
|
+
| Command | Description |
|
|
114
|
+
|---|---|
|
|
115
|
+
| `nebulaos auth login` | Authenticate with a Personal Access Token |
|
|
116
|
+
| `nebulaos auth logout` | Remove credentials for a context |
|
|
117
|
+
| `nebulaos auth status` | Show current authentication status |
|
|
118
|
+
|
|
119
|
+
### Organizations
|
|
120
|
+
|
|
121
|
+
| Command | Description |
|
|
122
|
+
|---|---|
|
|
123
|
+
| `nebulaos orgs list` | List accessible organizations |
|
|
124
|
+
| `nebulaos orgs get <id>` | Get organization details |
|
|
125
|
+
| `nebulaos orgs switch <slug>` | Switch active organization context |
|
|
126
|
+
|
|
127
|
+
### Clients
|
|
128
|
+
|
|
129
|
+
| Command | Description |
|
|
130
|
+
|---|---|
|
|
131
|
+
| `nebulaos clients list` | List clients in the current organization |
|
|
132
|
+
| `nebulaos clients get <id>` | Get client details (including agents and workflows) |
|
|
133
|
+
| `nebulaos clients create` | Create a new client |
|
|
134
|
+
| `nebulaos clients api-keys list <clientId>` | List API keys for a client |
|
|
135
|
+
| `nebulaos clients api-keys create <clientId>` | Create a new API key |
|
|
136
|
+
| `nebulaos clients api-keys revoke <clientId> <keyId>` | Revoke an API key |
|
|
137
|
+
|
|
138
|
+
### Resources
|
|
139
|
+
|
|
140
|
+
| Command | Description |
|
|
141
|
+
|---|---|
|
|
142
|
+
| `nebulaos resources list` | List registered resources (agents, workflows, tools) |
|
|
143
|
+
| `nebulaos resources get <id>` | Get resource details |
|
|
144
|
+
| `nebulaos resources archive <id>` | Archive a resource |
|
|
145
|
+
| `nebulaos resources unarchive <id>` | Unarchive a resource |
|
|
146
|
+
| `nebulaos resources promote <id>` | Promote a resource from discovered to official |
|
|
147
|
+
|
|
148
|
+
### Execution
|
|
149
|
+
|
|
150
|
+
| Command | Description |
|
|
151
|
+
|---|---|
|
|
152
|
+
| `nebulaos exec run <resourceId>` | Execute a resource (agent or workflow) with optional memory context |
|
|
153
|
+
| `nebulaos exec list` | List executions |
|
|
154
|
+
| `nebulaos exec get <id>` | Get execution details |
|
|
155
|
+
| `nebulaos exec logs <id>` | View execution logs |
|
|
156
|
+
|
|
157
|
+
**Multi-turn conversations:**
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
# Use --memory-key (-m) to maintain context across executions
|
|
161
|
+
nebulaos exec run my-agent -i '"Olá"' -m session-123
|
|
162
|
+
nebulaos exec run my-agent -i '"Qual foi minha última mensagem?"' -m session-123
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### LLM Gateway
|
|
166
|
+
|
|
167
|
+
| Command | Description |
|
|
168
|
+
|---|---|
|
|
169
|
+
| `nebulaos llm routes list` | List all LLM gateway routes |
|
|
170
|
+
| `nebulaos llm routes get <alias>` | Get route details |
|
|
171
|
+
| `nebulaos llm routes create` | Create a new route |
|
|
172
|
+
| `nebulaos llm routes update <alias>` | Update a route |
|
|
173
|
+
| `nebulaos llm routes delete <alias>` | Delete a route |
|
|
174
|
+
| `nebulaos llm keys list` | List LLM gateway API keys |
|
|
175
|
+
| `nebulaos llm keys create` | Create a new LLM API key |
|
|
176
|
+
| `nebulaos llm keys revoke <keyId>` | Revoke an LLM API key |
|
|
177
|
+
| `nebulaos llm catalog` | Browse the LLM model catalog |
|
|
178
|
+
| `nebulaos llm requests` | List recent LLM gateway requests |
|
|
179
|
+
| `nebulaos llm usage` | Show LLM gateway usage statistics |
|
|
180
|
+
|
|
181
|
+
### RAG
|
|
182
|
+
|
|
183
|
+
| Command | Description |
|
|
184
|
+
|---|---|
|
|
185
|
+
| `nebulaos rag connections list` | List RAG connections |
|
|
186
|
+
| `nebulaos rag connections get <id>` | Get connection details |
|
|
187
|
+
| `nebulaos rag connections create` | Create a new RAG connection |
|
|
188
|
+
| `nebulaos rag connections update <id>` | Update a RAG connection |
|
|
189
|
+
| `nebulaos rag connections delete <id>` | Delete a RAG connection |
|
|
190
|
+
| `nebulaos rag connections test <id>` | Test a RAG connection |
|
|
191
|
+
| `nebulaos rag search` | Search using RAG |
|
|
192
|
+
|
|
193
|
+
### Features
|
|
194
|
+
|
|
195
|
+
| Command | Description |
|
|
196
|
+
|---|---|
|
|
197
|
+
| `nebulaos features catalog` | List all available features in the catalog |
|
|
198
|
+
| `nebulaos features list` | List enabled features |
|
|
199
|
+
| `nebulaos features get <key>` | Get feature details |
|
|
200
|
+
| `nebulaos features enable <key>` | Enable a feature |
|
|
201
|
+
| `nebulaos features disable <key>` | Disable a feature |
|
|
202
|
+
| `nebulaos features config <key>` | View or update feature configuration |
|
|
203
|
+
|
|
204
|
+
### Observability
|
|
205
|
+
|
|
206
|
+
| Command | Description |
|
|
207
|
+
|---|---|
|
|
208
|
+
| `nebulaos obs traces search` | Search traces |
|
|
209
|
+
| `nebulaos obs traces get <traceId>` | Get trace details |
|
|
210
|
+
| `nebulaos obs metrics` | View observability metrics |
|
|
211
|
+
|
|
212
|
+
### Config
|
|
213
|
+
|
|
214
|
+
| Command | Description |
|
|
215
|
+
|---|---|
|
|
216
|
+
| `nebulaos config list` | List all configuration values |
|
|
217
|
+
| `nebulaos config get <key>` | Get a configuration value |
|
|
218
|
+
| `nebulaos config set <key> <value>` | Set a configuration value |
|
|
219
|
+
|
|
220
|
+
## Output Formats
|
|
221
|
+
|
|
222
|
+
### Table (default)
|
|
223
|
+
|
|
224
|
+
Human-readable formatted tables with colored output.
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
nebulaos resources list
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
ID Name Type Status Created At
|
|
232
|
+
550e8400-e29b-41d4-a716-446655440000 my-agent agent official 1/15/2026
|
|
233
|
+
6ba7b810-9dad-11d1-80b4-00c04fd430c8 my-workflow workflow discovered 1/20/2026
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### JSON
|
|
237
|
+
|
|
238
|
+
Machine-readable JSON, ideal for scripting and AI agent integration.
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
nebulaos resources list -o json
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
```json
|
|
245
|
+
[
|
|
246
|
+
{
|
|
247
|
+
"id": "550e8400-e29b-41d4-a716-446655440000",
|
|
248
|
+
"name": "my-agent",
|
|
249
|
+
"type": "agent",
|
|
250
|
+
"status": "official",
|
|
251
|
+
"createdAt": "2026-01-15T10:30:00.000Z"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### YAML
|
|
257
|
+
|
|
258
|
+
YAML output for configuration-friendly contexts.
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
nebulaos resources list -o yaml
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
```yaml
|
|
265
|
+
- id: 550e8400-e29b-41d4-a716-446655440000
|
|
266
|
+
name: my-agent
|
|
267
|
+
type: agent
|
|
268
|
+
status: official
|
|
269
|
+
createdAt: "2026-01-15T10:30:00.000Z"
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Quiet
|
|
273
|
+
|
|
274
|
+
Outputs only IDs, one per line. Useful for piping to other commands.
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
nebulaos resources list -o quiet
|
|
278
|
+
# 550e8400-e29b-41d4-a716-446655440000
|
|
279
|
+
# 6ba7b810-9dad-11d1-80b4-00c04fd430c8
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
## Exit Codes
|
|
283
|
+
|
|
284
|
+
| Code | Meaning |
|
|
285
|
+
|---|---|
|
|
286
|
+
| `0` | Success |
|
|
287
|
+
| `1` | General error |
|
|
288
|
+
| `2` | Invalid argument |
|
|
289
|
+
| `3` | Authentication error |
|
|
290
|
+
| `4` | Authorization error |
|
|
291
|
+
| `5` | Not found |
|
|
292
|
+
| `6` | Conflict error |
|
|
293
|
+
| `7` | Validation error |
|
|
294
|
+
| `8` | Network error |
|
|
295
|
+
| `9` | Timeout error |
|
|
296
|
+
| `10` | Server error |
|
|
297
|
+
| `11` | Configuration error |
|
|
298
|
+
|
|
299
|
+
## For AI Agents
|
|
300
|
+
|
|
301
|
+
This CLI is designed to be used by AI agents (Claude, Cursor, etc.). See [docs/ai-usage.md](docs/ai-usage.md) for the complete guide on machine-friendly usage, including JSON output parsing, pagination, and automation patterns.
|
|
302
|
+
|
|
303
|
+
## Documentation
|
|
304
|
+
|
|
305
|
+
- [Command Reference](docs/commands.md) -- Detailed reference for all commands with examples
|
|
306
|
+
- [AI Agent Usage Guide](docs/ai-usage.md) -- Guide for AI agent integration and automation
|
|
307
|
+
|
|
308
|
+
## License
|
|
309
|
+
|
|
310
|
+
Proprietary - StaryaAI
|