@elevasis/sdk 1.24.0 → 1.26.0
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/dist/cli.cjs +875 -834
- package/dist/index.d.ts +4857 -4547
- package/dist/index.js +564 -2338
- package/dist/node/index.d.ts +693 -1356
- package/dist/node/index.js +1 -1
- package/dist/test-utils/index.d.ts +4186 -4139
- package/dist/test-utils/index.js +694 -2769
- package/dist/types/worker/adapters/clickup.d.ts +22 -0
- package/dist/types/worker/adapters/index.d.ts +1 -0
- package/dist/types/worker/index.d.ts +3 -2
- package/dist/types/worker/platform.d.ts +2 -2
- package/dist/worker/index.js +427 -2803
- package/package.json +2 -2
- package/reference/_navigation.md +11 -1
- package/reference/_reference-manifest.json +70 -0
- package/reference/claude-config/rules/organization-model.md +12 -1
- package/reference/claude-config/rules/organization-os.md +12 -1
- package/reference/claude-config/skills/om/SKILL.md +13 -5
- package/reference/claude-config/skills/om/operations/codify-level-a.md +109 -100
- package/reference/claude-config/skills/om/operations/customers.md +10 -6
- package/reference/claude-config/skills/om/operations/features.md +7 -3
- package/reference/claude-config/skills/om/operations/goals.md +10 -6
- package/reference/claude-config/skills/om/operations/identity.md +8 -5
- package/reference/claude-config/skills/om/operations/labels.md +17 -1
- package/reference/claude-config/skills/om/operations/offerings.md +11 -7
- package/reference/claude-config/skills/om/operations/roles.md +11 -7
- package/reference/claude-config/skills/om/operations/techStack.md +10 -2
- package/reference/claude-config/sync-notes/2026-05-20-om-define-helpers.md +32 -0
- package/reference/claude-config/sync-notes/2026-05-22-access-model-and-right-panel.md +43 -0
- package/reference/claude-config/sync-notes/2026-05-22-lead-gen-tenant-config.md +40 -0
- package/reference/claude-config/sync-notes/2026-05-22-org-model-multi-file-split.md +61 -0
- package/reference/cli-management.mdx +539 -0
- package/reference/cli.mdx +579 -808
- package/reference/concepts.mdx +134 -146
- package/reference/deployment/api.mdx +296 -297
- package/reference/deployment/command-center.mdx +208 -209
- package/reference/deployment/index.mdx +194 -195
- package/reference/deployment/provided-features.mdx +110 -107
- package/reference/deployment/ui-execution.mdx +249 -250
- package/reference/framework/index.mdx +111 -195
- package/reference/framework/resource-documentation.mdx +90 -0
- package/reference/framework/tutorial-system.mdx +135 -135
- package/reference/getting-started.mdx +141 -142
- package/reference/index.mdx +95 -106
- package/reference/packages/ui/src/auth/README.md +6 -6
- package/reference/platform-tools/adapters-integration.mdx +300 -301
- package/reference/platform-tools/adapters-platform.mdx +552 -553
- package/reference/platform-tools/index.mdx +216 -217
- package/reference/platform-tools/type-safety.mdx +82 -82
- package/reference/resources/index.mdx +348 -349
- package/reference/resources/patterns.mdx +446 -449
- package/reference/resources/types.mdx +115 -116
- package/reference/roadmap.mdx +164 -165
- package/reference/rules/organization-model.md +14 -0
- package/reference/runtime.mdx +172 -173
- package/reference/scaffold/operations/propagation-pipeline.md +1 -1
- package/reference/scaffold/recipes/customize-crm-actions.md +45 -46
- package/reference/scaffold/recipes/extend-crm.md +253 -255
- package/reference/scaffold/recipes/extend-lead-gen.md +130 -77
- package/reference/scaffold/recipes/index.md +43 -44
- package/reference/scaffold/reference/contracts.md +1275 -1432
- package/reference/scaffold/reference/glossary.md +8 -6
- package/reference/scaffold/ui/feature-flags-and-gating.md +59 -46
- package/reference/scaffold/ui/feature-shell.mdx +11 -11
- package/reference/scaffold/ui/recipes.md +24 -24
- package/reference/troubleshooting.mdx +222 -223
package/reference/cli.mdx
CHANGED
|
@@ -1,808 +1,579 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: CLI Reference
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
ERROR
|
|
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
|
-
ERROR
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
"
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
[14:32:01.
|
|
316
|
-
[14:32:01.
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
|
340
|
-
|
|
|
341
|
-
| `--
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
-
|
|
369
|
-
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
|
375
|
-
|
|
|
376
|
-
| `--
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
"
|
|
396
|
-
|
|
397
|
-
"
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
elevasis-sdk creds
|
|
414
|
-
elevasis-sdk creds
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
- `
|
|
421
|
-
- `
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
|
427
|
-
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
elevasis-sdk creds
|
|
434
|
-
elevasis-sdk creds
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
-
|
|
453
|
-
-
|
|
454
|
-
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
|
458
|
-
|
|
|
459
|
-
| `
|
|
460
|
-
| `
|
|
461
|
-
| `
|
|
462
|
-
| `
|
|
463
|
-
| `
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
|
469
|
-
|
|
|
470
|
-
| `--
|
|
471
|
-
| `--
|
|
472
|
-
| `--
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
elevasis-sdk
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
```bash
|
|
582
|
-
elevasis-sdk request:submit --input-file ./tmp/request-report.json
|
|
583
|
-
elevasis-sdk request:submit --input '{"type":"bug","category":"sdk","severity":"high","title":"..."}'
|
|
584
|
-
```
|
|
585
|
-
|
|
586
|
-
Submits a structured request report to `POST /api/external/requests`. The payload is validated against `CreateRequestInputSchema` before the network call.
|
|
587
|
-
|
|
588
|
-
**Payload enum values** (inline in `--help` output; sourced from `packages/core/src/requests/api-schemas.ts`):
|
|
589
|
-
|
|
590
|
-
| Field | Accepted values |
|
|
591
|
-
| ---------- | ------------------------------------------------------------------------------------- |
|
|
592
|
-
| `type` | Values from `RequestTypeEnum` -- see `request:submit --help` for the current list |
|
|
593
|
-
| `category` | Values from `RequestCategoryEnum` -- see `request:submit --help` for the current list |
|
|
594
|
-
| `severity` | Values from `RequestSeverityEnum` -- see `request:submit --help` for the current list |
|
|
595
|
-
|
|
596
|
-
**Flags:**
|
|
597
|
-
|
|
598
|
-
| Flag | Description |
|
|
599
|
-
| --------------------------- | ----------------------------------------------------------------------------- |
|
|
600
|
-
| `-i, --input <json>` | Request body as JSON string |
|
|
601
|
-
| `-f, --input-file <path>` | Read body from a JSON file; relative paths resolve against the project root |
|
|
602
|
-
| `--pretty` | Human-readable output instead of raw JSON |
|
|
603
|
-
| `--cleanup-input` | Delete the input file after success (only files under `<projectRoot>/tmp/`) |
|
|
604
|
-
| `--api-url <url>` | Override the API base URL |
|
|
605
|
-
|
|
606
|
-
---
|
|
607
|
-
|
|
608
|
-
### Shared Flags
|
|
609
|
-
|
|
610
|
-
Most `project:*` commands support:
|
|
611
|
-
|
|
612
|
-
| Flag | Description |
|
|
613
|
-
| ----------------- | -------------------------------------------------- |
|
|
614
|
-
| `--pretty` | Human-readable terminal output instead of raw JSON |
|
|
615
|
-
| `--api-url <url>` | Override the API base URL |
|
|
616
|
-
|
|
617
|
-
For exact required flags and accepted enum values, see the command source under `packages/sdk/src/cli/commands/project/`.
|
|
618
|
-
|
|
619
|
-
### Command Boundary
|
|
620
|
-
|
|
621
|
-
- `/project` is a convenience router to these `elevasis-sdk project:*` commands. It is not a separate project system.
|
|
622
|
-
- `/work` is for docs-backed in-progress task tracking and session resume, not project CRUD.
|
|
623
|
-
- `/external` is for managing standalone apps in `external/`, not project records inside a deployed system.
|
|
624
|
-
- `/adev` is for implementation, debugging, testing, and platform execution flows. Use it when you need to build or run agent/workflow code rather than update project data.
|
|
625
|
-
|
|
626
|
-
---
|
|
627
|
-
|
|
628
|
-
## elevasis-sdk note:\*
|
|
629
|
-
|
|
630
|
-
`elevasis-sdk note:*` is the agent-facing surface for pushing and reading personal user notes. Workflows and agents use it to surface information -- such as "deal X stalled" or "review run completed" -- directly into a user's Notes panel in the Command Center, without sending an email or notification.
|
|
631
|
-
|
|
632
|
-
Notes are personal to the target user and scoped to the calling organization. The external API surface exposes `GET + POST` only; `note:update` and `note:delete` are not yet available via SDK CLI. Users edit and delete notes through the right-panel view in the Command Center.
|
|
633
|
-
|
|
634
|
-
### note:create
|
|
635
|
-
|
|
636
|
-
Create a personal note for a user.
|
|
637
|
-
|
|
638
|
-
**Synopsis:**
|
|
639
|
-
|
|
640
|
-
```
|
|
641
|
-
elevasis-sdk note:create --content <text>
|
|
642
|
-
[--user <email>]
|
|
643
|
-
[--title <text>]
|
|
644
|
-
[--priority low|normal|high|urgent]
|
|
645
|
-
[--pinned]
|
|
646
|
-
[--source <id>]
|
|
647
|
-
[--api-url <url>] [--pretty]
|
|
648
|
-
```
|
|
649
|
-
|
|
650
|
-
**Flags:**
|
|
651
|
-
|
|
652
|
-
| Flag | Description |
|
|
653
|
-
| ------------------------- | ----------------------------------------------------------------------------------------- |
|
|
654
|
-
| `--content <text>` | Required. The note body text |
|
|
655
|
-
| `--user <email>` | Target user email. Defaults to the API key owner when omitted |
|
|
656
|
-
| `--title <text>` | Optional note title |
|
|
657
|
-
| `--priority <priority>` | Priority level: `low`, `normal` (default), `high`, or `urgent` |
|
|
658
|
-
| `--pinned` | Pin the note to the top of the panel |
|
|
659
|
-
| `--source <id>` | Source identifier -- set this to the workflow or agent ID when calling from agent runtime |
|
|
660
|
-
| `--api-url <url>` | Override the API base URL |
|
|
661
|
-
| `--pretty` | Human-readable terminal output instead of raw JSON |
|
|
662
|
-
|
|
663
|
-
**Behavior:**
|
|
664
|
-
|
|
665
|
-
- Posts to `POST /api/external/user-notes`
|
|
666
|
-
- When `--user` is omitted the note is created for the identity bound to the API key (the caller)
|
|
667
|
-
- When `--user` is provided the platform resolves the email to a Supabase user UUID and verifies the resolved user is an active member of the calling organization before writing
|
|
668
|
-
- The `--source` flag is recorded as the `source` column in `user_notes`; agent runtimes should pass their resource ID here so users can see which workflow created the note
|
|
669
|
-
- Priority `normal` produces no badge in the UI; `high` renders orange, `urgent` renders red, `low` renders dimmed gray
|
|
670
|
-
|
|
671
|
-
**Examples:**
|
|
672
|
-
|
|
673
|
-
```bash
|
|
674
|
-
# Create a note for the API key owner
|
|
675
|
-
elevasis-sdk note:create --content "Deal X has stalled -- follow up needed"
|
|
676
|
-
|
|
677
|
-
# Create a high-priority pinned note for a specific user
|
|
678
|
-
elevasis-sdk note:create \
|
|
679
|
-
--content "Review run completed for batch_abc123" \
|
|
680
|
-
--user ops@acme.com \
|
|
681
|
-
--priority high \
|
|
682
|
-
--pinned \
|
|
683
|
-
--source "report-review-workflow" \
|
|
684
|
-
--pretty
|
|
685
|
-
```
|
|
686
|
-
|
|
687
|
-
```
|
|
688
|
-
Note created
|
|
689
|
-
ID: note_550e8400-...
|
|
690
|
-
Priority: high
|
|
691
|
-
```
|
|
692
|
-
|
|
693
|
-
---
|
|
694
|
-
|
|
695
|
-
### note:list
|
|
696
|
-
|
|
697
|
-
List notes for a user.
|
|
698
|
-
|
|
699
|
-
**Synopsis:**
|
|
700
|
-
|
|
701
|
-
```
|
|
702
|
-
elevasis-sdk note:list --user <email>
|
|
703
|
-
[--priority <p>] [--pinned]
|
|
704
|
-
[--limit <n>] [--offset <n>]
|
|
705
|
-
[--api-url <url>] [--pretty]
|
|
706
|
-
```
|
|
707
|
-
|
|
708
|
-
**Flags:**
|
|
709
|
-
|
|
710
|
-
| Flag | Description |
|
|
711
|
-
| ------------------------- | -------------------------------------------------------- |
|
|
712
|
-
| `--user <email>` | Required. The user whose notes to retrieve |
|
|
713
|
-
| `--priority <priority>` | Filter by priority: `low`, `normal`, `high`, or `urgent` |
|
|
714
|
-
| `--pinned` | Return only pinned notes |
|
|
715
|
-
| `--limit <n>` | Maximum number of results to return |
|
|
716
|
-
| `--offset <n>` | Pagination offset |
|
|
717
|
-
| `--api-url <url>` | Override the API base URL |
|
|
718
|
-
| `--pretty` | Human-readable terminal output instead of raw JSON |
|
|
719
|
-
|
|
720
|
-
**Behavior:**
|
|
721
|
-
|
|
722
|
-
- Queries `GET /api/external/user-notes?user_email=<email>`
|
|
723
|
-
- `--user` is required -- the external GET endpoint requires an explicit user target
|
|
724
|
-
- Results are sorted by the platform: pinned first, then by priority (`urgent` > `high` > `normal` > `low`), then by most recently updated
|
|
725
|
-
- Organization scope is derived from the API key -- only notes belonging to users in the calling organization are returned
|
|
726
|
-
|
|
727
|
-
**Examples:**
|
|
728
|
-
|
|
729
|
-
```bash
|
|
730
|
-
# List all notes for a user
|
|
731
|
-
elevasis-sdk note:list --user ops@acme.com
|
|
732
|
-
|
|
733
|
-
# List only high-priority pinned notes, human-readable
|
|
734
|
-
elevasis-sdk note:list --user ops@acme.com --priority high --pinned --pretty
|
|
735
|
-
```
|
|
736
|
-
|
|
737
|
-
```
|
|
738
|
-
Notes (2):
|
|
739
|
-
|
|
740
|
-
(no title) [pinned] [high]
|
|
741
|
-
ID: note_abc001
|
|
742
|
-
Review run completed for batch_abc123
|
|
743
|
-
|
|
744
|
-
Deal X stalled [pinned] [high]
|
|
745
|
-
ID: note_abc002
|
|
746
|
-
Deal X has stalled -- follow up needed
|
|
747
|
-
```
|
|
748
|
-
|
|
749
|
-
---
|
|
750
|
-
|
|
751
|
-
### Shared Flags
|
|
752
|
-
|
|
753
|
-
| Flag | Description |
|
|
754
|
-
| ------------------- | -------------------------------------------------- |
|
|
755
|
-
| `--pretty` | Human-readable terminal output instead of raw JSON |
|
|
756
|
-
| `--api-url <url>` | Override the API base URL |
|
|
757
|
-
|
|
758
|
-
### Command Boundary
|
|
759
|
-
|
|
760
|
-
- `note:create` and `note:list` operate on the **personal notes** surface -- not project notes. For project-scoped notes use `project:note:*`.
|
|
761
|
-
- `note:update` and `note:delete` are not yet available via SDK CLI. Edit and delete notes using the Notes panel in the Command Center.
|
|
762
|
-
- The Notes panel view (`NotesPanelView`) is registered in the right-panel registry alongside Overview, Recent Executions, and Notifications.
|
|
763
|
-
|
|
764
|
-
**Implementation:** `packages/sdk/src/cli/commands/notes.ts` -- delegates to `POST /api/external/user-notes` and `GET /api/external/user-notes`
|
|
765
|
-
|
|
766
|
-
---
|
|
767
|
-
|
|
768
|
-
## elevasis-sdk ui:use-local / ui:use-published
|
|
769
|
-
|
|
770
|
-
Switch the `@elevasis/ui` dependency in an external project between a local tarball build and the published npm package.
|
|
771
|
-
|
|
772
|
-
**Synopsis:**
|
|
773
|
-
|
|
774
|
-
```bash
|
|
775
|
-
elevasis-sdk ui:use-local
|
|
776
|
-
elevasis-sdk ui:use-published
|
|
777
|
-
```
|
|
778
|
-
|
|
779
|
-
**Behavior:**
|
|
780
|
-
|
|
781
|
-
- `ui:use-local` -- builds a tarball from the local `packages/ui/` source and rewrites the project's `package.json` to point at the tarball path. Use this during active `@elevasis/ui` development to test changes without publishing.
|
|
782
|
-
- `ui:use-published` -- reverts `package.json` to the published `@elevasis/ui` version string and removes any local tarball reference.
|
|
783
|
-
|
|
784
|
-
Both commands install after rewriting `package.json`. The `external/_template` root scripts `ui:use-local` and `ui:use-published` are compatibility wrappers that delegate to these CLI commands.
|
|
785
|
-
|
|
786
|
-
**Implementation:** `packages/sdk/src/cli/commands/ui/ui-switcher.ts`
|
|
787
|
-
|
|
788
|
-
---
|
|
789
|
-
|
|
790
|
-
## Global Flags
|
|
791
|
-
|
|
792
|
-
These flags are accepted by all commands:
|
|
793
|
-
|
|
794
|
-
| Flag | Description |
|
|
795
|
-
| ------------------- | --------------------------------------------------------------------------------------------------- |
|
|
796
|
-
| `--api-url <url>` | Override the API base URL. Priority: flag > `ELEVASIS_API_URL` env var > `NODE_ENV`-based default |
|
|
797
|
-
| `--json` | Output raw JSON (available on most commands) |
|
|
798
|
-
|
|
799
|
-
**API base URL resolution:**
|
|
800
|
-
|
|
801
|
-
- Production (default): `https://api.elevasis.io`
|
|
802
|
-
- Development (`NODE_ENV=development`): `http://localhost:<port>`
|
|
803
|
-
- Override: set `ELEVASIS_API_URL` or pass `--api-url`
|
|
804
|
-
- Force production: pass `--prod` on `deploy` (overrides `NODE_ENV=development`)
|
|
805
|
-
|
|
806
|
-
---
|
|
807
|
-
|
|
808
|
-
**Last Updated:** 2026-04-17
|
|
1
|
+
---
|
|
2
|
+
title: CLI Reference
|
|
3
|
+
description: Core elevasis-sdk CLI commands -- validate, deploy, execute, inspect resources, manage credentials, rename, and enumerate the command catalog
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The `elevasis-sdk` CLI is the primary interface for working with your Elevasis SDK project. Install it as part of `@elevasis/sdk` and use it to validate resource definitions, deploy to the platform, inspect execution history, and manage Projects through `project:*`.
|
|
7
|
+
|
|
8
|
+
**Installation:**
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pnpm add @elevasis/sdk
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
After installation, the `elevasis-sdk` binary is available in your project's `node_modules/.bin/`. Most commands require `ELEVASIS_PLATFORM_KEY` to be set in your environment or a `.env` file.
|
|
15
|
+
|
|
16
|
+
For management commands (project:\*, note:\*, acquisition:\*, client:\*, agent:\*, session:\*, queue:\*, schedule:\*, om:\*, ui:\*), see [CLI Management](cli-management.mdx).
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## elevasis-sdk check
|
|
21
|
+
|
|
22
|
+
Validate all resource definitions in your project without deploying.
|
|
23
|
+
|
|
24
|
+
**Synopsis:**
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
elevasis-sdk check
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Behavior:**
|
|
31
|
+
|
|
32
|
+
- Imports your `src/index.ts` and runs it through `ResourceRegistry` validation
|
|
33
|
+
- Catches the same errors that the platform catches at deploy time:
|
|
34
|
+
- Duplicate `resourceId` within the organization
|
|
35
|
+
- Invalid model configuration (temperature and token bounds)
|
|
36
|
+
- `ExecutionInterface` form fields not matching `inputSchema`
|
|
37
|
+
- Broken workflow step chains (`next` referencing non-existent steps)
|
|
38
|
+
- Relationship declarations referencing non-existent resources
|
|
39
|
+
- Exits with code 0 on success, code 1 on validation failure
|
|
40
|
+
|
|
41
|
+
**Flags:**
|
|
42
|
+
|
|
43
|
+
| Flag | Description |
|
|
44
|
+
| ------------------- | ------------------------- |
|
|
45
|
+
| `--api-url <url>` | Override the API base URL |
|
|
46
|
+
|
|
47
|
+
**Example output (success):**
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
$ elevasis-sdk check
|
|
51
|
+
|
|
52
|
+
Validating... done (4 resources, 0 errors)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Example output (failure):**
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
$ elevasis-sdk check
|
|
59
|
+
|
|
60
|
+
Validating...
|
|
61
|
+
ERROR Duplicate resource ID 'onboard-client' in organization 'Acme Corp'
|
|
62
|
+
ERROR Workflow step 'send-email' references non-existent next step 'notify'
|
|
63
|
+
|
|
64
|
+
2 errors.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## elevasis-sdk deploy
|
|
70
|
+
|
|
71
|
+
Bundle your project with esbuild and deploy it to the Elevasis platform.
|
|
72
|
+
|
|
73
|
+
**Synopsis:**
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
elevasis-sdk deploy
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Behavior:**
|
|
80
|
+
|
|
81
|
+
- Authenticates with `ELEVASIS_PLATFORM_KEY` and resolves your organization name
|
|
82
|
+
- Runs the same `ResourceRegistry` validation as `elevasis-sdk check`
|
|
83
|
+
- Bundles your `src/index.ts` and all dependencies into a single self-contained JS file (`dist/bundle.js`, approximately 50-200 KB)
|
|
84
|
+
- Uploads the bundle plus resource metadata to `POST /api/external/deploy`
|
|
85
|
+
- Streams deploy status and prints the result
|
|
86
|
+
- Resources are live immediately after a successful deploy
|
|
87
|
+
|
|
88
|
+
**Flags:**
|
|
89
|
+
|
|
90
|
+
| Flag | Description |
|
|
91
|
+
| ------------------- | ------------------------------------------------------------------------- |
|
|
92
|
+
| `--api-url <url>` | Override the API base URL (default: production) |
|
|
93
|
+
| `--prod` | Force production target, overriding `NODE_ENV=development` (internal use) |
|
|
94
|
+
|
|
95
|
+
**Environment variables:**
|
|
96
|
+
|
|
97
|
+
| Variable | Description |
|
|
98
|
+
| ----------------------- | ----------------------------------- |
|
|
99
|
+
| `ELEVASIS_PLATFORM_KEY` | Required. Your `sk_...` API key |
|
|
100
|
+
| `ELEVASIS_API_URL` | Optional. Override the API base URL |
|
|
101
|
+
|
|
102
|
+
**Example output (success):**
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
$ elevasis-sdk deploy
|
|
106
|
+
|
|
107
|
+
Authenticating... done (acme-corp)
|
|
108
|
+
Validating... done (4 resources, 0 errors)
|
|
109
|
+
Bundling... done (142 KB)
|
|
110
|
+
Uploading... done
|
|
111
|
+
|
|
112
|
+
Deployed! 4 resources live.
|
|
113
|
+
Deployment: deploy_abc123
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Example output (validation failure):**
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
$ elevasis-sdk deploy
|
|
120
|
+
|
|
121
|
+
Authenticating... done (acme-corp)
|
|
122
|
+
Validating...
|
|
123
|
+
ERROR Duplicate resource ID 'onboard-client' in organization 'Acme Corp'
|
|
124
|
+
ERROR Workflow step 'send-email' references non-existent next step 'notify'
|
|
125
|
+
|
|
126
|
+
2 errors. Deploy aborted.
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## elevasis-sdk exec
|
|
132
|
+
|
|
133
|
+
Execute a deployed resource by ID.
|
|
134
|
+
|
|
135
|
+
**Synopsis:**
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
elevasis-sdk exec <resource> --input '{...}'
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Behavior:**
|
|
142
|
+
|
|
143
|
+
- Executes the named resource synchronously by default and streams the result
|
|
144
|
+
- Use `--async` to return an `executionId` immediately and poll for completion
|
|
145
|
+
- `--input` accepts a JSON string matching the resource's `inputSchema`
|
|
146
|
+
- Organization is derived from your API key -- no org prefix needed
|
|
147
|
+
|
|
148
|
+
**Flags:**
|
|
149
|
+
|
|
150
|
+
| Flag | Description |
|
|
151
|
+
| ------------------- | ------------------------------------------------------- |
|
|
152
|
+
| `--input <json>` | JSON input matching the resource's input schema |
|
|
153
|
+
| `--async` | Execute asynchronously, return execution ID immediately |
|
|
154
|
+
| `--json` | Output raw JSON instead of formatted display |
|
|
155
|
+
| `--api-url <url>` | Override the API base URL |
|
|
156
|
+
|
|
157
|
+
**Example:**
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
elevasis-sdk exec onboard-client --input '{"clientName": "Jane", "email": "jane@example.com"}'
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
Executing onboard-client...
|
|
165
|
+
|
|
166
|
+
Status: completed
|
|
167
|
+
Duration: 1.4s
|
|
168
|
+
|
|
169
|
+
Output:
|
|
170
|
+
{
|
|
171
|
+
"success": true,
|
|
172
|
+
"clientId": "client_1708521600000",
|
|
173
|
+
"welcomeEmailSent": true
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Async example:**
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
elevasis-sdk exec onboard-client --input '{"clientName": "Jane"}' --async
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
Execution started: exec_550e8400
|
|
185
|
+
Poll with: elevasis-sdk execution onboard-client exec_550e8400
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## elevasis-sdk resources
|
|
191
|
+
|
|
192
|
+
List all deployed resources for your organization.
|
|
193
|
+
|
|
194
|
+
**Synopsis:**
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
elevasis-sdk resources
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Behavior:**
|
|
201
|
+
|
|
202
|
+
- Lists all resources registered to your organization on the platform
|
|
203
|
+
- In production, only `status: 'prod'` resources are shown
|
|
204
|
+
- Displays resource ID, type, name, and status
|
|
205
|
+
|
|
206
|
+
**Flags:**
|
|
207
|
+
|
|
208
|
+
| Flag | Description |
|
|
209
|
+
| ------------------- | ------------------------- |
|
|
210
|
+
| `--json` | Output raw JSON |
|
|
211
|
+
| `--api-url <url>` | Override the API base URL |
|
|
212
|
+
|
|
213
|
+
**Example output:**
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
$ elevasis-sdk resources
|
|
217
|
+
|
|
218
|
+
onboard-client workflow Onboard Client prod
|
|
219
|
+
send-report workflow Send Weekly Report prod
|
|
220
|
+
email-assistant agent Email Assistant prod
|
|
221
|
+
support-bot agent Support Bot dev
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## elevasis-sdk executions
|
|
227
|
+
|
|
228
|
+
View execution history for a resource.
|
|
229
|
+
|
|
230
|
+
**Synopsis:**
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
elevasis-sdk executions [resource]
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**Behavior:**
|
|
237
|
+
|
|
238
|
+
- Lists recent executions for the specified resource
|
|
239
|
+
- If `resource` is omitted, lists executions across all resources
|
|
240
|
+
- Supports filtering by status and limiting result count
|
|
241
|
+
|
|
242
|
+
**Flags:**
|
|
243
|
+
|
|
244
|
+
| Flag | Description |
|
|
245
|
+
| --------------------- | --------------------------------------------------------------- |
|
|
246
|
+
| `--limit <n>` | Maximum number of executions to return (default: 20) |
|
|
247
|
+
| `--status <status>` | Filter by status: `running`, `completed`, `failed`, `cancelled` |
|
|
248
|
+
| `--json` | Output raw JSON |
|
|
249
|
+
| `--api-url <url>` | Override the API base URL |
|
|
250
|
+
|
|
251
|
+
**Example:**
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
elevasis-sdk executions onboard-client --limit 5
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
exec_abc001 completed 2026-02-25 14:32:01 1.2s
|
|
259
|
+
exec_abc002 completed 2026-02-25 13:18:44 0.9s
|
|
260
|
+
exec_abc003 failed 2026-02-25 12:05:22 0.3s
|
|
261
|
+
exec_abc004 completed 2026-02-24 17:51:09 1.8s
|
|
262
|
+
exec_abc005 completed 2026-02-24 16:30:55 1.1s
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## elevasis-sdk execution
|
|
268
|
+
|
|
269
|
+
View full detail for a single execution.
|
|
270
|
+
|
|
271
|
+
**Synopsis:**
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
elevasis-sdk execution <resource> <id>
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
**Behavior:**
|
|
278
|
+
|
|
279
|
+
- Shows the complete execution record: input, output, logs, duration, and error (if any)
|
|
280
|
+
- Use `--json` to get the raw JSON response for programmatic use
|
|
281
|
+
|
|
282
|
+
**Flags:**
|
|
283
|
+
|
|
284
|
+
| Flag | Description |
|
|
285
|
+
| ------------------- | ------------------------- |
|
|
286
|
+
| `--json` | Output raw JSON |
|
|
287
|
+
| `--api-url <url>` | Override the API base URL |
|
|
288
|
+
|
|
289
|
+
**Example:**
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
elevasis-sdk execution onboard-client exec_abc001
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
```
|
|
296
|
+
Resource: onboard-client
|
|
297
|
+
Status: completed
|
|
298
|
+
Started: 2026-02-25 14:32:01
|
|
299
|
+
Duration: 1.2s
|
|
300
|
+
|
|
301
|
+
Input:
|
|
302
|
+
{
|
|
303
|
+
"clientName": "Jane",
|
|
304
|
+
"email": "jane@example.com"
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
Output:
|
|
308
|
+
{
|
|
309
|
+
"success": true,
|
|
310
|
+
"clientId": "client_1708521600000",
|
|
311
|
+
"welcomeEmailSent": true
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
Logs:
|
|
315
|
+
[14:32:01.123] Starting onboard-client workflow
|
|
316
|
+
[14:32:01.456] Created client record
|
|
317
|
+
[14:32:01.891] Welcome email sent to jane@example.com
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## elevasis-sdk deployments
|
|
323
|
+
|
|
324
|
+
List all deployments for your organization.
|
|
325
|
+
|
|
326
|
+
**Synopsis:**
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
elevasis-sdk deployments
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
**Behavior:**
|
|
333
|
+
|
|
334
|
+
- Shows deployment history with status, timestamp, and resource count
|
|
335
|
+
- Active deployment is marked; previous deployments show as `stopped`
|
|
336
|
+
|
|
337
|
+
**Flags:**
|
|
338
|
+
|
|
339
|
+
| Flag | Description |
|
|
340
|
+
| ------------------- | ------------------------- |
|
|
341
|
+
| `--json` | Output raw JSON |
|
|
342
|
+
| `--api-url <url>` | Override the API base URL |
|
|
343
|
+
|
|
344
|
+
**Example output:**
|
|
345
|
+
|
|
346
|
+
```
|
|
347
|
+
$ elevasis-sdk deployments
|
|
348
|
+
|
|
349
|
+
deploy_abc123 active 2026-02-25 14:00:00 4 resources
|
|
350
|
+
deploy_abc122 stopped 2026-02-24 09:30:00 3 resources
|
|
351
|
+
deploy_abc121 stopped 2026-02-23 11:15:00 3 resources
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## elevasis-sdk describe
|
|
357
|
+
|
|
358
|
+
Show the definition of a deployed resource.
|
|
359
|
+
|
|
360
|
+
**Synopsis:**
|
|
361
|
+
|
|
362
|
+
```
|
|
363
|
+
elevasis-sdk describe <resource>
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
**Behavior:**
|
|
367
|
+
|
|
368
|
+
- Displays resource metadata: name, type, description, status, and domains
|
|
369
|
+
- Shows the full `inputSchema` and `outputSchema` as JSON
|
|
370
|
+
- Type is color-coded: yellow for workflows, magenta for agents
|
|
371
|
+
|
|
372
|
+
**Flags:**
|
|
373
|
+
|
|
374
|
+
| Flag | Description |
|
|
375
|
+
| ------------------- | ------------------------- |
|
|
376
|
+
| `--json` | Output raw JSON response |
|
|
377
|
+
| `--api-url <url>` | Override the API base URL |
|
|
378
|
+
|
|
379
|
+
**Example:**
|
|
380
|
+
|
|
381
|
+
```bash
|
|
382
|
+
elevasis-sdk describe onboard-client
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
```
|
|
386
|
+
onboard-client [workflow]
|
|
387
|
+
|
|
388
|
+
Name: Onboard Client
|
|
389
|
+
Description: Creates a client record and sends a welcome email
|
|
390
|
+
Status: prod
|
|
391
|
+
Domains: crm, email
|
|
392
|
+
|
|
393
|
+
Input Schema:
|
|
394
|
+
{
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {
|
|
397
|
+
"clientName": { "type": "string" },
|
|
398
|
+
"email": { "type": "string", "format": "email" }
|
|
399
|
+
},
|
|
400
|
+
"required": ["clientName", "email"]
|
|
401
|
+
}
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
## elevasis-sdk creds
|
|
407
|
+
|
|
408
|
+
Manage credentials for your project.
|
|
409
|
+
|
|
410
|
+
**Synopsis:**
|
|
411
|
+
|
|
412
|
+
```
|
|
413
|
+
elevasis-sdk creds list
|
|
414
|
+
elevasis-sdk creds set <key> <value>
|
|
415
|
+
elevasis-sdk creds remove <key>
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
**Behavior:**
|
|
419
|
+
|
|
420
|
+
- `list` -- display all credentials configured for the project
|
|
421
|
+
- `set` -- add or update a credential
|
|
422
|
+
- `remove` -- delete a credential
|
|
423
|
+
|
|
424
|
+
**Flags:**
|
|
425
|
+
|
|
426
|
+
| Flag | Description |
|
|
427
|
+
| ------------------- | ------------------------- |
|
|
428
|
+
| `--api-url <url>` | Override the API base URL |
|
|
429
|
+
|
|
430
|
+
**Examples:**
|
|
431
|
+
|
|
432
|
+
```bash
|
|
433
|
+
elevasis-sdk creds list
|
|
434
|
+
elevasis-sdk creds set OPENAI_API_KEY sk-proj-***
|
|
435
|
+
elevasis-sdk creds remove OPENAI_API_KEY
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
---
|
|
439
|
+
|
|
440
|
+
## elevasis-sdk rename
|
|
441
|
+
|
|
442
|
+
Rename a resource ID across all reference tables in the platform database.
|
|
443
|
+
|
|
444
|
+
**Synopsis:**
|
|
445
|
+
|
|
446
|
+
```
|
|
447
|
+
elevasis-sdk rename <old-id> --to <new-id> [--execute] [--prod]
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
**Behavior:**
|
|
451
|
+
|
|
452
|
+
- Dry-run by default -- shows all affected rows per table without modifying any data
|
|
453
|
+
- Pass `--execute` to perform the rename
|
|
454
|
+
- Org-scoped: only updates rows belonging to your organization
|
|
455
|
+
- Updates resource references across 6 tables:
|
|
456
|
+
|
|
457
|
+
| Table | Column(s) updated |
|
|
458
|
+
| -------------------- | ----------------- |
|
|
459
|
+
| `executions` | `resource_id` |
|
|
460
|
+
| `sessions` | `resource_id` |
|
|
461
|
+
| `workflow_configs` | `resource_id` |
|
|
462
|
+
| `workflow_schedules` | `resource_id` |
|
|
463
|
+
| `execution_events` | `resource_id` |
|
|
464
|
+
| `session_events` | `resource_id` |
|
|
465
|
+
|
|
466
|
+
**Flags:**
|
|
467
|
+
|
|
468
|
+
| Flag | Description |
|
|
469
|
+
| ------------------- | --------------------------------------- |
|
|
470
|
+
| `--to <new-id>` | Required. The new resource ID |
|
|
471
|
+
| `--execute` | Perform the rename (default is dry-run) |
|
|
472
|
+
| `--prod` | Target the production environment |
|
|
473
|
+
| `--api-url <url>` | Override the API base URL |
|
|
474
|
+
|
|
475
|
+
**Example (dry-run):**
|
|
476
|
+
|
|
477
|
+
```bash
|
|
478
|
+
elevasis-sdk rename ist-upload-workflow --to ist-upload-contacts-workflow
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
```
|
|
482
|
+
Dry run — no changes made.
|
|
483
|
+
|
|
484
|
+
Rows that would be updated:
|
|
485
|
+
executions 6
|
|
486
|
+
sessions 0
|
|
487
|
+
workflow_configs 0
|
|
488
|
+
workflow_schedules 0
|
|
489
|
+
execution_events 0
|
|
490
|
+
session_events 0
|
|
491
|
+
|
|
492
|
+
Total: 6 rows
|
|
493
|
+
|
|
494
|
+
Re-run with --execute to apply changes.
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
**Example (execute):**
|
|
498
|
+
|
|
499
|
+
```bash
|
|
500
|
+
elevasis-sdk rename ist-upload-workflow --to ist-upload-contacts-workflow --execute
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
**Implementation:** `packages/sdk/src/cli/commands/rename.ts` -- delegates to `POST /api/external/resources/rename`
|
|
504
|
+
|
|
505
|
+
---
|
|
506
|
+
|
|
507
|
+
## elevasis-sdk cli
|
|
508
|
+
|
|
509
|
+
Enumerate the full command catalog registered in the CLI at runtime.
|
|
510
|
+
|
|
511
|
+
**Synopsis:**
|
|
512
|
+
|
|
513
|
+
```
|
|
514
|
+
elevasis-sdk cli [domain] [--format markdown|json]
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
**Behavior:**
|
|
518
|
+
|
|
519
|
+
- Walks the registered Commander command graph and prints every command, its flags, and a one-line description
|
|
520
|
+
- When `domain` is omitted, all domains are listed
|
|
521
|
+
- `--format json` returns a structured array suitable for programmatic use; `--format markdown` (default) renders a human-readable table
|
|
522
|
+
- The runtime catalog is always up to date with what is actually registered -- it does not parse TypeScript source
|
|
523
|
+
|
|
524
|
+
**Flags:**
|
|
525
|
+
|
|
526
|
+
| Flag | Description |
|
|
527
|
+
| --------------------- | ----------------------------------------------------------- |
|
|
528
|
+
| `--domain <domain>` | Filter output to one domain (alternative to positional arg) |
|
|
529
|
+
| `--format <format>` | Output format: `markdown` (default) or `json` |
|
|
530
|
+
| `--api-url <url>` | Override the API base URL |
|
|
531
|
+
|
|
532
|
+
**Examples:**
|
|
533
|
+
|
|
534
|
+
```bash
|
|
535
|
+
# Print the full catalog
|
|
536
|
+
elevasis-sdk cli
|
|
537
|
+
|
|
538
|
+
# Print only acquisition commands
|
|
539
|
+
elevasis-sdk cli acquisition
|
|
540
|
+
|
|
541
|
+
# Print the project domain as JSON
|
|
542
|
+
elevasis-sdk cli --domain project --format json
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
From the workspace (repo package):
|
|
546
|
+
|
|
547
|
+
```bash
|
|
548
|
+
pnpm --filter @elevasis/sdk exec elevasis-sdk cli
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
From an external tenant project:
|
|
552
|
+
|
|
553
|
+
```bash
|
|
554
|
+
pnpm -C external/<project>/operations exec elevasis-sdk cli
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
**Implementation:** `packages/sdk/src/cli/commands/cli/cli.ts` -- catalog built by `packages/sdk/src/cli/commands/cli/catalog.ts`
|
|
558
|
+
|
|
559
|
+
---
|
|
560
|
+
|
|
561
|
+
## Global Flags
|
|
562
|
+
|
|
563
|
+
These flags are accepted by all commands:
|
|
564
|
+
|
|
565
|
+
| Flag | Description |
|
|
566
|
+
| ------------------- | --------------------------------------------------------------------------------------------------- |
|
|
567
|
+
| `--api-url <url>` | Override the API base URL. Priority: flag > `ELEVASIS_API_URL` env var > `NODE_ENV`-based default |
|
|
568
|
+
| `--json` | Output raw JSON (available on most commands) |
|
|
569
|
+
|
|
570
|
+
**API base URL resolution:**
|
|
571
|
+
|
|
572
|
+
- Production (default): `https://api.elevasis.io`
|
|
573
|
+
- Development (`NODE_ENV=development`): `http://localhost:<port>`
|
|
574
|
+
- Override: set `ELEVASIS_API_URL` or pass `--api-url`
|
|
575
|
+
- Force production: pass `--prod` on `deploy` (overrides `NODE_ENV=development`)
|
|
576
|
+
|
|
577
|
+
---
|
|
578
|
+
|
|
579
|
+
**Last Updated:** 2026-05-19
|