@contextual-io/cli 0.1.1 → 0.1.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 +456 -1
- package/dist/commands/base.d.ts +41 -0
- package/dist/commands/base.js +164 -0
- package/dist/commands/config/add.d.ts +13 -0
- package/dist/commands/config/add.js +34 -0
- package/dist/commands/config/current.d.ts +10 -0
- package/dist/commands/config/current.js +15 -0
- package/dist/commands/config/delete.d.ts +10 -0
- package/dist/commands/config/delete.js +17 -0
- package/dist/commands/config/get.d.ts +12 -0
- package/dist/commands/config/get.js +25 -0
- package/dist/commands/config/list.d.ts +13 -0
- package/dist/commands/config/list.js +33 -0
- package/dist/commands/config/login.d.ts +8 -0
- package/dist/commands/config/login.js +21 -0
- package/dist/commands/config/use.d.ts +10 -0
- package/dist/commands/config/use.js +17 -0
- package/dist/commands/records/add.d.ts +14 -0
- package/dist/commands/records/add.js +73 -0
- package/dist/commands/records/delete.d.ts +13 -0
- package/dist/commands/records/delete.js +55 -0
- package/dist/commands/records/get.d.ts +13 -0
- package/dist/commands/records/get.js +53 -0
- package/dist/commands/records/list.d.ts +22 -0
- package/dist/commands/records/list.js +145 -0
- package/dist/commands/records/query.d.ts +19 -0
- package/dist/commands/records/query.js +134 -0
- package/dist/commands/records/replace.d.ts +14 -0
- package/dist/commands/records/replace.js +69 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/cli-configuration.d.ts +9 -0
- package/dist/models/cli-configuration.js +8 -0
- package/dist/models/errors.d.ts +5 -0
- package/dist/models/errors.js +14 -0
- package/dist/models/silo.d.ts +7 -0
- package/dist/models/silo.js +2 -0
- package/dist/models/uri.d.ts +7 -0
- package/dist/models/uri.js +7 -0
- package/dist/models/url-safe-id.d.ts +3 -0
- package/dist/models/url-safe-id.js +4 -0
- package/dist/models/user-config.d.ts +54 -0
- package/dist/models/user-config.js +24 -0
- package/dist/utils/auth.d.ts +6 -0
- package/dist/utils/auth.js +101 -0
- package/dist/utils/cli-configuration.d.ts +3 -0
- package/dist/utils/cli-configuration.js +19 -0
- package/dist/utils/endpoints.d.ts +3 -0
- package/dist/utils/endpoints.js +2 -0
- package/dist/utils/stream.d.ts +3 -0
- package/dist/utils/stream.js +21 -0
- package/dist/utils/time.d.ts +2 -0
- package/dist/utils/time.js +5 -0
- package/oclif.manifest.json +740 -2
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,4 +1,742 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commands": {
|
|
3
|
-
|
|
2
|
+
"commands": {
|
|
3
|
+
"base": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"flags": {
|
|
7
|
+
"config-id": {
|
|
8
|
+
"char": "C",
|
|
9
|
+
"helpGroup": "GLOBAL",
|
|
10
|
+
"name": "config-id",
|
|
11
|
+
"summary": "Specify config id to use for call.",
|
|
12
|
+
"hasDynamicHelp": false,
|
|
13
|
+
"multiple": false,
|
|
14
|
+
"type": "option"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"hasDynamicHelp": false,
|
|
18
|
+
"hiddenAliases": [],
|
|
19
|
+
"id": "base",
|
|
20
|
+
"pluginAlias": "@contextual-io/cli",
|
|
21
|
+
"pluginName": "@contextual-io/cli",
|
|
22
|
+
"pluginType": "core",
|
|
23
|
+
"strict": true,
|
|
24
|
+
"enableJsonFlag": false,
|
|
25
|
+
"isESM": true,
|
|
26
|
+
"relativePath": [
|
|
27
|
+
"dist",
|
|
28
|
+
"commands",
|
|
29
|
+
"base.js"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"config:add": {
|
|
33
|
+
"aliases": [],
|
|
34
|
+
"args": {
|
|
35
|
+
"config-id": {
|
|
36
|
+
"description": "id of config",
|
|
37
|
+
"name": "config-id",
|
|
38
|
+
"required": true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"description": "add a new config",
|
|
42
|
+
"examples": [
|
|
43
|
+
"<%= config.bin %> <%= command.id %> some-config-id --tenant-id my-tenant"
|
|
44
|
+
],
|
|
45
|
+
"flags": {
|
|
46
|
+
"silo": {
|
|
47
|
+
"char": "s",
|
|
48
|
+
"description": "silo",
|
|
49
|
+
"name": "silo",
|
|
50
|
+
"default": "prod",
|
|
51
|
+
"hasDynamicHelp": false,
|
|
52
|
+
"multiple": false,
|
|
53
|
+
"options": [
|
|
54
|
+
"prod",
|
|
55
|
+
"qa",
|
|
56
|
+
"dev"
|
|
57
|
+
],
|
|
58
|
+
"type": "option"
|
|
59
|
+
},
|
|
60
|
+
"tenant-id": {
|
|
61
|
+
"char": "t",
|
|
62
|
+
"description": "tenant id (if different from config id)",
|
|
63
|
+
"name": "tenant-id",
|
|
64
|
+
"hasDynamicHelp": false,
|
|
65
|
+
"multiple": false,
|
|
66
|
+
"type": "option"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"hasDynamicHelp": false,
|
|
70
|
+
"hiddenAliases": [],
|
|
71
|
+
"id": "config:add",
|
|
72
|
+
"pluginAlias": "@contextual-io/cli",
|
|
73
|
+
"pluginName": "@contextual-io/cli",
|
|
74
|
+
"pluginType": "core",
|
|
75
|
+
"strict": true,
|
|
76
|
+
"enableJsonFlag": false,
|
|
77
|
+
"isESM": true,
|
|
78
|
+
"relativePath": [
|
|
79
|
+
"dist",
|
|
80
|
+
"commands",
|
|
81
|
+
"config",
|
|
82
|
+
"add.js"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"config:current": {
|
|
86
|
+
"aliases": [],
|
|
87
|
+
"args": {},
|
|
88
|
+
"description": "get the current config",
|
|
89
|
+
"examples": [
|
|
90
|
+
"<%= config.bin %> <%= command.id %>"
|
|
91
|
+
],
|
|
92
|
+
"flags": {
|
|
93
|
+
"json": {
|
|
94
|
+
"description": "Format output as json.",
|
|
95
|
+
"helpGroup": "GLOBAL",
|
|
96
|
+
"name": "json",
|
|
97
|
+
"allowNo": false,
|
|
98
|
+
"type": "boolean"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"hasDynamicHelp": false,
|
|
102
|
+
"hiddenAliases": [],
|
|
103
|
+
"id": "config:current",
|
|
104
|
+
"pluginAlias": "@contextual-io/cli",
|
|
105
|
+
"pluginName": "@contextual-io/cli",
|
|
106
|
+
"pluginType": "core",
|
|
107
|
+
"strict": true,
|
|
108
|
+
"enableJsonFlag": true,
|
|
109
|
+
"isESM": true,
|
|
110
|
+
"relativePath": [
|
|
111
|
+
"dist",
|
|
112
|
+
"commands",
|
|
113
|
+
"config",
|
|
114
|
+
"current.js"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"config:delete": {
|
|
118
|
+
"aliases": [],
|
|
119
|
+
"args": {
|
|
120
|
+
"config-id": {
|
|
121
|
+
"description": "id of config",
|
|
122
|
+
"name": "config-id",
|
|
123
|
+
"required": true
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"description": "delete a config",
|
|
127
|
+
"examples": [
|
|
128
|
+
"<%= config.bin %> <%= command.id %> some-config-id"
|
|
129
|
+
],
|
|
130
|
+
"flags": {},
|
|
131
|
+
"hasDynamicHelp": false,
|
|
132
|
+
"hiddenAliases": [],
|
|
133
|
+
"id": "config:delete",
|
|
134
|
+
"pluginAlias": "@contextual-io/cli",
|
|
135
|
+
"pluginName": "@contextual-io/cli",
|
|
136
|
+
"pluginType": "core",
|
|
137
|
+
"strict": true,
|
|
138
|
+
"enableJsonFlag": false,
|
|
139
|
+
"isESM": true,
|
|
140
|
+
"relativePath": [
|
|
141
|
+
"dist",
|
|
142
|
+
"commands",
|
|
143
|
+
"config",
|
|
144
|
+
"delete.js"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"config:get": {
|
|
148
|
+
"aliases": [],
|
|
149
|
+
"args": {
|
|
150
|
+
"config-id": {
|
|
151
|
+
"description": "id of config",
|
|
152
|
+
"name": "config-id"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"description": "get a specific config",
|
|
156
|
+
"examples": [
|
|
157
|
+
"<%= config.bin %> <%= command.id %>",
|
|
158
|
+
"<%= config.bin %> <%= command.id %> some-config-id"
|
|
159
|
+
],
|
|
160
|
+
"flags": {
|
|
161
|
+
"json": {
|
|
162
|
+
"description": "Format output as json.",
|
|
163
|
+
"helpGroup": "GLOBAL",
|
|
164
|
+
"name": "json",
|
|
165
|
+
"allowNo": false,
|
|
166
|
+
"type": "boolean"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"hasDynamicHelp": false,
|
|
170
|
+
"hiddenAliases": [],
|
|
171
|
+
"id": "config:get",
|
|
172
|
+
"pluginAlias": "@contextual-io/cli",
|
|
173
|
+
"pluginName": "@contextual-io/cli",
|
|
174
|
+
"pluginType": "core",
|
|
175
|
+
"strict": true,
|
|
176
|
+
"enableJsonFlag": true,
|
|
177
|
+
"isESM": true,
|
|
178
|
+
"relativePath": [
|
|
179
|
+
"dist",
|
|
180
|
+
"commands",
|
|
181
|
+
"config",
|
|
182
|
+
"get.js"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"config:list": {
|
|
186
|
+
"aliases": [],
|
|
187
|
+
"args": {},
|
|
188
|
+
"description": "list all available configs",
|
|
189
|
+
"examples": [
|
|
190
|
+
"<%= config.bin %> <%= command.id %>"
|
|
191
|
+
],
|
|
192
|
+
"flags": {
|
|
193
|
+
"json": {
|
|
194
|
+
"description": "Format output as json.",
|
|
195
|
+
"helpGroup": "GLOBAL",
|
|
196
|
+
"name": "json",
|
|
197
|
+
"allowNo": false,
|
|
198
|
+
"type": "boolean"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"hasDynamicHelp": false,
|
|
202
|
+
"hiddenAliases": [],
|
|
203
|
+
"id": "config:list",
|
|
204
|
+
"pluginAlias": "@contextual-io/cli",
|
|
205
|
+
"pluginName": "@contextual-io/cli",
|
|
206
|
+
"pluginType": "core",
|
|
207
|
+
"strict": true,
|
|
208
|
+
"enableJsonFlag": true,
|
|
209
|
+
"isESM": true,
|
|
210
|
+
"relativePath": [
|
|
211
|
+
"dist",
|
|
212
|
+
"commands",
|
|
213
|
+
"config",
|
|
214
|
+
"list.js"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"config:login": {
|
|
218
|
+
"aliases": [],
|
|
219
|
+
"args": {},
|
|
220
|
+
"description": "login using the current config",
|
|
221
|
+
"examples": [
|
|
222
|
+
"<%= config.bin %> <%= command.id %>"
|
|
223
|
+
],
|
|
224
|
+
"flags": {},
|
|
225
|
+
"hasDynamicHelp": false,
|
|
226
|
+
"hiddenAliases": [],
|
|
227
|
+
"id": "config:login",
|
|
228
|
+
"pluginAlias": "@contextual-io/cli",
|
|
229
|
+
"pluginName": "@contextual-io/cli",
|
|
230
|
+
"pluginType": "core",
|
|
231
|
+
"strict": true,
|
|
232
|
+
"enableJsonFlag": false,
|
|
233
|
+
"isESM": true,
|
|
234
|
+
"relativePath": [
|
|
235
|
+
"dist",
|
|
236
|
+
"commands",
|
|
237
|
+
"config",
|
|
238
|
+
"login.js"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"config:use": {
|
|
242
|
+
"aliases": [],
|
|
243
|
+
"args": {
|
|
244
|
+
"config-id": {
|
|
245
|
+
"description": "id of config",
|
|
246
|
+
"name": "config-id",
|
|
247
|
+
"required": true
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"description": "use a config",
|
|
251
|
+
"examples": [
|
|
252
|
+
"<%= config.bin %> <%= command.id %> some-config-id"
|
|
253
|
+
],
|
|
254
|
+
"flags": {},
|
|
255
|
+
"hasDynamicHelp": false,
|
|
256
|
+
"hiddenAliases": [],
|
|
257
|
+
"id": "config:use",
|
|
258
|
+
"pluginAlias": "@contextual-io/cli",
|
|
259
|
+
"pluginName": "@contextual-io/cli",
|
|
260
|
+
"pluginType": "core",
|
|
261
|
+
"strict": true,
|
|
262
|
+
"enableJsonFlag": false,
|
|
263
|
+
"isESM": true,
|
|
264
|
+
"relativePath": [
|
|
265
|
+
"dist",
|
|
266
|
+
"commands",
|
|
267
|
+
"config",
|
|
268
|
+
"use.js"
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"records:add": {
|
|
272
|
+
"aliases": [
|
|
273
|
+
"create",
|
|
274
|
+
"import"
|
|
275
|
+
],
|
|
276
|
+
"args": {
|
|
277
|
+
"uri": {
|
|
278
|
+
"description": "uri of type",
|
|
279
|
+
"name": "uri"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"description": "create record(s)",
|
|
283
|
+
"examples": [
|
|
284
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
285
|
+
"<%= config.bin %> <%= command.id %> --type my-type --input-file records.json"
|
|
286
|
+
],
|
|
287
|
+
"flags": {
|
|
288
|
+
"config-id": {
|
|
289
|
+
"char": "C",
|
|
290
|
+
"helpGroup": "GLOBAL",
|
|
291
|
+
"name": "config-id",
|
|
292
|
+
"summary": "Specify config id to use for call.",
|
|
293
|
+
"hasDynamicHelp": false,
|
|
294
|
+
"multiple": false,
|
|
295
|
+
"type": "option"
|
|
296
|
+
},
|
|
297
|
+
"input-file": {
|
|
298
|
+
"char": "i",
|
|
299
|
+
"description": "file to read. can read stdin if value is '-'",
|
|
300
|
+
"name": "input-file",
|
|
301
|
+
"default": "-",
|
|
302
|
+
"hasDynamicHelp": false,
|
|
303
|
+
"multiple": false,
|
|
304
|
+
"type": "option"
|
|
305
|
+
},
|
|
306
|
+
"type": {
|
|
307
|
+
"char": "T",
|
|
308
|
+
"description": "type",
|
|
309
|
+
"name": "type",
|
|
310
|
+
"hasDynamicHelp": false,
|
|
311
|
+
"multiple": false,
|
|
312
|
+
"type": "option"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"hasDynamicHelp": false,
|
|
316
|
+
"hiddenAliases": [],
|
|
317
|
+
"id": "records:add",
|
|
318
|
+
"pluginAlias": "@contextual-io/cli",
|
|
319
|
+
"pluginName": "@contextual-io/cli",
|
|
320
|
+
"pluginType": "core",
|
|
321
|
+
"strict": true,
|
|
322
|
+
"enableJsonFlag": false,
|
|
323
|
+
"isESM": true,
|
|
324
|
+
"relativePath": [
|
|
325
|
+
"dist",
|
|
326
|
+
"commands",
|
|
327
|
+
"records",
|
|
328
|
+
"add.js"
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
"records:delete": {
|
|
332
|
+
"aliases": [],
|
|
333
|
+
"args": {
|
|
334
|
+
"uri": {
|
|
335
|
+
"description": "uri of record",
|
|
336
|
+
"name": "uri"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"description": "delete record(s)",
|
|
340
|
+
"examples": [
|
|
341
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type/instance-1",
|
|
342
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1",
|
|
343
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1 --id instance-2",
|
|
344
|
+
"<%= config.bin %> <%= command.id %> --type my-type --id instance-1",
|
|
345
|
+
"<%= config.bin %> <%= command.id %> --type my-type --id instance-1 --id instance-2"
|
|
346
|
+
],
|
|
347
|
+
"flags": {
|
|
348
|
+
"config-id": {
|
|
349
|
+
"char": "C",
|
|
350
|
+
"helpGroup": "GLOBAL",
|
|
351
|
+
"name": "config-id",
|
|
352
|
+
"summary": "Specify config id to use for call.",
|
|
353
|
+
"hasDynamicHelp": false,
|
|
354
|
+
"multiple": false,
|
|
355
|
+
"type": "option"
|
|
356
|
+
},
|
|
357
|
+
"id": {
|
|
358
|
+
"char": "i",
|
|
359
|
+
"description": "id(s)",
|
|
360
|
+
"name": "id",
|
|
361
|
+
"hasDynamicHelp": false,
|
|
362
|
+
"multiple": true,
|
|
363
|
+
"type": "option"
|
|
364
|
+
},
|
|
365
|
+
"type": {
|
|
366
|
+
"char": "T",
|
|
367
|
+
"description": "type",
|
|
368
|
+
"name": "type",
|
|
369
|
+
"hasDynamicHelp": false,
|
|
370
|
+
"multiple": false,
|
|
371
|
+
"type": "option"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"hasDynamicHelp": false,
|
|
375
|
+
"hiddenAliases": [],
|
|
376
|
+
"id": "records:delete",
|
|
377
|
+
"pluginAlias": "@contextual-io/cli",
|
|
378
|
+
"pluginName": "@contextual-io/cli",
|
|
379
|
+
"pluginType": "core",
|
|
380
|
+
"strict": true,
|
|
381
|
+
"enableJsonFlag": false,
|
|
382
|
+
"isESM": true,
|
|
383
|
+
"relativePath": [
|
|
384
|
+
"dist",
|
|
385
|
+
"commands",
|
|
386
|
+
"records",
|
|
387
|
+
"delete.js"
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
"records:get": {
|
|
391
|
+
"aliases": [],
|
|
392
|
+
"args": {
|
|
393
|
+
"uri": {
|
|
394
|
+
"description": "uri of record",
|
|
395
|
+
"name": "uri"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"description": "get a record",
|
|
399
|
+
"examples": [
|
|
400
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type/instance-1",
|
|
401
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1",
|
|
402
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1 --id instance-2",
|
|
403
|
+
"<%= config.bin %> <%= command.id %> --type my-type --id instance-1",
|
|
404
|
+
"<%= config.bin %> <%= command.id %> --type my-type --id instance-1 --id instance-2"
|
|
405
|
+
],
|
|
406
|
+
"flags": {
|
|
407
|
+
"config-id": {
|
|
408
|
+
"char": "C",
|
|
409
|
+
"helpGroup": "GLOBAL",
|
|
410
|
+
"name": "config-id",
|
|
411
|
+
"summary": "Specify config id to use for call.",
|
|
412
|
+
"hasDynamicHelp": false,
|
|
413
|
+
"multiple": false,
|
|
414
|
+
"type": "option"
|
|
415
|
+
},
|
|
416
|
+
"id": {
|
|
417
|
+
"char": "i",
|
|
418
|
+
"description": "id(s)",
|
|
419
|
+
"name": "id",
|
|
420
|
+
"hasDynamicHelp": false,
|
|
421
|
+
"multiple": true,
|
|
422
|
+
"type": "option"
|
|
423
|
+
},
|
|
424
|
+
"type": {
|
|
425
|
+
"char": "T",
|
|
426
|
+
"description": "type",
|
|
427
|
+
"name": "type",
|
|
428
|
+
"hasDynamicHelp": false,
|
|
429
|
+
"multiple": false,
|
|
430
|
+
"type": "option"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"hasDynamicHelp": false,
|
|
434
|
+
"hiddenAliases": [],
|
|
435
|
+
"id": "records:get",
|
|
436
|
+
"pluginAlias": "@contextual-io/cli",
|
|
437
|
+
"pluginName": "@contextual-io/cli",
|
|
438
|
+
"pluginType": "core",
|
|
439
|
+
"strict": true,
|
|
440
|
+
"enableJsonFlag": false,
|
|
441
|
+
"isESM": true,
|
|
442
|
+
"relativePath": [
|
|
443
|
+
"dist",
|
|
444
|
+
"commands",
|
|
445
|
+
"records",
|
|
446
|
+
"get.js"
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
"records:list": {
|
|
450
|
+
"aliases": [],
|
|
451
|
+
"args": {
|
|
452
|
+
"uri": {
|
|
453
|
+
"description": "uri of type",
|
|
454
|
+
"name": "uri"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"description": "list records",
|
|
458
|
+
"examples": [
|
|
459
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
460
|
+
"<%= config.bin %> <%= command.id %> --type my-type",
|
|
461
|
+
"<%= config.bin %> <%= command.id %> --type my-type --order-by field1:desc",
|
|
462
|
+
"<%= config.bin %> <%= command.id %> --type my-type -s field1=value1 -s field2=value2 --include-total"
|
|
463
|
+
],
|
|
464
|
+
"flags": {
|
|
465
|
+
"config-id": {
|
|
466
|
+
"char": "C",
|
|
467
|
+
"helpGroup": "GLOBAL",
|
|
468
|
+
"name": "config-id",
|
|
469
|
+
"summary": "Specify config id to use for call.",
|
|
470
|
+
"hasDynamicHelp": false,
|
|
471
|
+
"multiple": false,
|
|
472
|
+
"type": "option"
|
|
473
|
+
},
|
|
474
|
+
"exact-search": {
|
|
475
|
+
"char": "S",
|
|
476
|
+
"description": "search fields exactly",
|
|
477
|
+
"name": "exact-search",
|
|
478
|
+
"hasDynamicHelp": false,
|
|
479
|
+
"multiple": true,
|
|
480
|
+
"type": "option"
|
|
481
|
+
},
|
|
482
|
+
"export": {
|
|
483
|
+
"char": "e",
|
|
484
|
+
"description": "export data as JSONL",
|
|
485
|
+
"name": "export",
|
|
486
|
+
"allowNo": false,
|
|
487
|
+
"type": "boolean"
|
|
488
|
+
},
|
|
489
|
+
"from": {
|
|
490
|
+
"char": "f",
|
|
491
|
+
"description": "search from",
|
|
492
|
+
"name": "from",
|
|
493
|
+
"hasDynamicHelp": false,
|
|
494
|
+
"multiple": true,
|
|
495
|
+
"type": "option"
|
|
496
|
+
},
|
|
497
|
+
"include-total": {
|
|
498
|
+
"description": "include total count",
|
|
499
|
+
"name": "include-total",
|
|
500
|
+
"allowNo": false,
|
|
501
|
+
"type": "boolean"
|
|
502
|
+
},
|
|
503
|
+
"order-by": {
|
|
504
|
+
"char": "o",
|
|
505
|
+
"description": "order fields",
|
|
506
|
+
"name": "order-by",
|
|
507
|
+
"hasDynamicHelp": false,
|
|
508
|
+
"multiple": true,
|
|
509
|
+
"type": "option"
|
|
510
|
+
},
|
|
511
|
+
"page-size": {
|
|
512
|
+
"description": "number of records per page",
|
|
513
|
+
"name": "page-size",
|
|
514
|
+
"hasDynamicHelp": false,
|
|
515
|
+
"multiple": false,
|
|
516
|
+
"type": "option"
|
|
517
|
+
},
|
|
518
|
+
"page-token": {
|
|
519
|
+
"description": "page token to fetch",
|
|
520
|
+
"name": "page-token",
|
|
521
|
+
"hasDynamicHelp": false,
|
|
522
|
+
"multiple": false,
|
|
523
|
+
"type": "option"
|
|
524
|
+
},
|
|
525
|
+
"progress": {
|
|
526
|
+
"char": "p",
|
|
527
|
+
"description": "show progress during export",
|
|
528
|
+
"name": "progress",
|
|
529
|
+
"allowNo": false,
|
|
530
|
+
"type": "boolean"
|
|
531
|
+
},
|
|
532
|
+
"search": {
|
|
533
|
+
"char": "s",
|
|
534
|
+
"description": "search fields",
|
|
535
|
+
"name": "search",
|
|
536
|
+
"hasDynamicHelp": false,
|
|
537
|
+
"multiple": true,
|
|
538
|
+
"type": "option"
|
|
539
|
+
},
|
|
540
|
+
"to": {
|
|
541
|
+
"char": "t",
|
|
542
|
+
"description": "search to",
|
|
543
|
+
"name": "to",
|
|
544
|
+
"hasDynamicHelp": false,
|
|
545
|
+
"multiple": true,
|
|
546
|
+
"type": "option"
|
|
547
|
+
},
|
|
548
|
+
"type": {
|
|
549
|
+
"char": "T",
|
|
550
|
+
"description": "type",
|
|
551
|
+
"name": "type",
|
|
552
|
+
"hasDynamicHelp": false,
|
|
553
|
+
"multiple": false,
|
|
554
|
+
"type": "option"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"hasDynamicHelp": false,
|
|
558
|
+
"hiddenAliases": [],
|
|
559
|
+
"id": "records:list",
|
|
560
|
+
"pluginAlias": "@contextual-io/cli",
|
|
561
|
+
"pluginName": "@contextual-io/cli",
|
|
562
|
+
"pluginType": "core",
|
|
563
|
+
"strict": true,
|
|
564
|
+
"enableJsonFlag": false,
|
|
565
|
+
"isESM": true,
|
|
566
|
+
"relativePath": [
|
|
567
|
+
"dist",
|
|
568
|
+
"commands",
|
|
569
|
+
"records",
|
|
570
|
+
"list.js"
|
|
571
|
+
]
|
|
572
|
+
},
|
|
573
|
+
"records:query": {
|
|
574
|
+
"aliases": [],
|
|
575
|
+
"args": {
|
|
576
|
+
"uri": {
|
|
577
|
+
"description": "uri of type",
|
|
578
|
+
"name": "uri"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"description": "query records",
|
|
582
|
+
"examples": [
|
|
583
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
584
|
+
"<%= config.bin %> <%= command.id %> --type my-type --query-file query.json",
|
|
585
|
+
"<%= config.bin %> <%= command.id %> --type my-type --order-by field1:desc --query-file query.json",
|
|
586
|
+
"<%= config.bin %> <%= command.id %> --type my-type --include-total --query-file query.json"
|
|
587
|
+
],
|
|
588
|
+
"flags": {
|
|
589
|
+
"config-id": {
|
|
590
|
+
"char": "C",
|
|
591
|
+
"helpGroup": "GLOBAL",
|
|
592
|
+
"name": "config-id",
|
|
593
|
+
"summary": "Specify config id to use for call.",
|
|
594
|
+
"hasDynamicHelp": false,
|
|
595
|
+
"multiple": false,
|
|
596
|
+
"type": "option"
|
|
597
|
+
},
|
|
598
|
+
"export": {
|
|
599
|
+
"char": "e",
|
|
600
|
+
"description": "export data as JSONL",
|
|
601
|
+
"name": "export",
|
|
602
|
+
"allowNo": false,
|
|
603
|
+
"type": "boolean"
|
|
604
|
+
},
|
|
605
|
+
"include-total": {
|
|
606
|
+
"description": "include total count",
|
|
607
|
+
"name": "include-total",
|
|
608
|
+
"allowNo": false,
|
|
609
|
+
"type": "boolean"
|
|
610
|
+
},
|
|
611
|
+
"order-by": {
|
|
612
|
+
"char": "o",
|
|
613
|
+
"description": "order fields",
|
|
614
|
+
"name": "order-by",
|
|
615
|
+
"hasDynamicHelp": false,
|
|
616
|
+
"multiple": true,
|
|
617
|
+
"type": "option"
|
|
618
|
+
},
|
|
619
|
+
"page-size": {
|
|
620
|
+
"description": "number of records per page",
|
|
621
|
+
"name": "page-size",
|
|
622
|
+
"hasDynamicHelp": false,
|
|
623
|
+
"multiple": false,
|
|
624
|
+
"type": "option"
|
|
625
|
+
},
|
|
626
|
+
"page-token": {
|
|
627
|
+
"description": "page token to fetch",
|
|
628
|
+
"name": "page-token",
|
|
629
|
+
"hasDynamicHelp": false,
|
|
630
|
+
"multiple": false,
|
|
631
|
+
"type": "option"
|
|
632
|
+
},
|
|
633
|
+
"progress": {
|
|
634
|
+
"char": "p",
|
|
635
|
+
"description": "show progress during export",
|
|
636
|
+
"name": "progress",
|
|
637
|
+
"allowNo": false,
|
|
638
|
+
"type": "boolean"
|
|
639
|
+
},
|
|
640
|
+
"query-file": {
|
|
641
|
+
"char": "q",
|
|
642
|
+
"description": "file to read. can read stdin if value is '-'",
|
|
643
|
+
"name": "query-file",
|
|
644
|
+
"default": "-",
|
|
645
|
+
"hasDynamicHelp": false,
|
|
646
|
+
"multiple": false,
|
|
647
|
+
"type": "option"
|
|
648
|
+
},
|
|
649
|
+
"type": {
|
|
650
|
+
"char": "T",
|
|
651
|
+
"description": "type",
|
|
652
|
+
"name": "type",
|
|
653
|
+
"hasDynamicHelp": false,
|
|
654
|
+
"multiple": false,
|
|
655
|
+
"type": "option"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"hasDynamicHelp": false,
|
|
659
|
+
"hiddenAliases": [],
|
|
660
|
+
"id": "records:query",
|
|
661
|
+
"pluginAlias": "@contextual-io/cli",
|
|
662
|
+
"pluginName": "@contextual-io/cli",
|
|
663
|
+
"pluginType": "core",
|
|
664
|
+
"strict": true,
|
|
665
|
+
"enableJsonFlag": false,
|
|
666
|
+
"isESM": true,
|
|
667
|
+
"relativePath": [
|
|
668
|
+
"dist",
|
|
669
|
+
"commands",
|
|
670
|
+
"records",
|
|
671
|
+
"query.js"
|
|
672
|
+
]
|
|
673
|
+
},
|
|
674
|
+
"records:replace": {
|
|
675
|
+
"aliases": [],
|
|
676
|
+
"args": {
|
|
677
|
+
"uri": {
|
|
678
|
+
"description": "uri of record",
|
|
679
|
+
"name": "uri"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
"description": "replace a record",
|
|
683
|
+
"examples": [
|
|
684
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type/instance-1 --input-file record.json",
|
|
685
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1 --input-file record.json",
|
|
686
|
+
"<%= config.bin %> <%= command.id %> --type my-type --id instance-1 --input-file record.json"
|
|
687
|
+
],
|
|
688
|
+
"flags": {
|
|
689
|
+
"config-id": {
|
|
690
|
+
"char": "C",
|
|
691
|
+
"helpGroup": "GLOBAL",
|
|
692
|
+
"name": "config-id",
|
|
693
|
+
"summary": "Specify config id to use for call.",
|
|
694
|
+
"hasDynamicHelp": false,
|
|
695
|
+
"multiple": false,
|
|
696
|
+
"type": "option"
|
|
697
|
+
},
|
|
698
|
+
"id": {
|
|
699
|
+
"char": "i",
|
|
700
|
+
"description": "id",
|
|
701
|
+
"name": "id",
|
|
702
|
+
"hasDynamicHelp": false,
|
|
703
|
+
"multiple": false,
|
|
704
|
+
"type": "option"
|
|
705
|
+
},
|
|
706
|
+
"input-file": {
|
|
707
|
+
"char": "i",
|
|
708
|
+
"description": "file to read. can read stdin if value is '-'",
|
|
709
|
+
"name": "input-file",
|
|
710
|
+
"default": "-",
|
|
711
|
+
"hasDynamicHelp": false,
|
|
712
|
+
"multiple": false,
|
|
713
|
+
"type": "option"
|
|
714
|
+
},
|
|
715
|
+
"type": {
|
|
716
|
+
"char": "T",
|
|
717
|
+
"description": "type",
|
|
718
|
+
"name": "type",
|
|
719
|
+
"hasDynamicHelp": false,
|
|
720
|
+
"multiple": false,
|
|
721
|
+
"type": "option"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"hasDynamicHelp": false,
|
|
725
|
+
"hiddenAliases": [],
|
|
726
|
+
"id": "records:replace",
|
|
727
|
+
"pluginAlias": "@contextual-io/cli",
|
|
728
|
+
"pluginName": "@contextual-io/cli",
|
|
729
|
+
"pluginType": "core",
|
|
730
|
+
"strict": true,
|
|
731
|
+
"enableJsonFlag": false,
|
|
732
|
+
"isESM": true,
|
|
733
|
+
"relativePath": [
|
|
734
|
+
"dist",
|
|
735
|
+
"commands",
|
|
736
|
+
"records",
|
|
737
|
+
"replace.js"
|
|
738
|
+
]
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"version": "0.1.3"
|
|
4
742
|
}
|