@contextual-io/cli 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +353 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/oclif.manifest.json +4 -0
- package/package.json +82 -0
package/README.md
ADDED
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
contextual-cli
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
Contextual CLI
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
[](https://oclif.io)
|
|
8
|
+
[](https://npmjs.org/package/contextual-cli)
|
|
9
|
+
[](https://npmjs.org/package/contextual-cli)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<!-- toc -->
|
|
13
|
+
* [Usage](#usage)
|
|
14
|
+
* [Commands](#commands)
|
|
15
|
+
<!-- tocstop -->
|
|
16
|
+
# Usage
|
|
17
|
+
<!-- usage -->
|
|
18
|
+
```sh-session
|
|
19
|
+
$ npm install -g @contextual-io/cli
|
|
20
|
+
$ ctxl COMMAND
|
|
21
|
+
running command...
|
|
22
|
+
$ ctxl (--version)
|
|
23
|
+
@contextual-io/cli/0.1.1 linux-x64 node-v25.2.1
|
|
24
|
+
$ ctxl --help [COMMAND]
|
|
25
|
+
USAGE
|
|
26
|
+
$ ctxl COMMAND
|
|
27
|
+
...
|
|
28
|
+
```
|
|
29
|
+
<!-- usagestop -->
|
|
30
|
+
# Commands
|
|
31
|
+
<!-- commands -->
|
|
32
|
+
* [`ctxl help [COMMAND]`](#ctxl-help-command)
|
|
33
|
+
* [`ctxl plugins`](#ctxl-plugins)
|
|
34
|
+
* [`ctxl plugins add PLUGIN`](#ctxl-plugins-add-plugin)
|
|
35
|
+
* [`ctxl plugins:inspect PLUGIN...`](#ctxl-pluginsinspect-plugin)
|
|
36
|
+
* [`ctxl plugins install PLUGIN`](#ctxl-plugins-install-plugin)
|
|
37
|
+
* [`ctxl plugins link PATH`](#ctxl-plugins-link-path)
|
|
38
|
+
* [`ctxl plugins remove [PLUGIN]`](#ctxl-plugins-remove-plugin)
|
|
39
|
+
* [`ctxl plugins reset`](#ctxl-plugins-reset)
|
|
40
|
+
* [`ctxl plugins uninstall [PLUGIN]`](#ctxl-plugins-uninstall-plugin)
|
|
41
|
+
* [`ctxl plugins unlink [PLUGIN]`](#ctxl-plugins-unlink-plugin)
|
|
42
|
+
* [`ctxl plugins update`](#ctxl-plugins-update)
|
|
43
|
+
|
|
44
|
+
## `ctxl help [COMMAND]`
|
|
45
|
+
|
|
46
|
+
Display help for ctxl.
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
USAGE
|
|
50
|
+
$ ctxl help [COMMAND...] [-n]
|
|
51
|
+
|
|
52
|
+
ARGUMENTS
|
|
53
|
+
[COMMAND...] Command to show help for.
|
|
54
|
+
|
|
55
|
+
FLAGS
|
|
56
|
+
-n, --nested-commands Include all nested commands in the output.
|
|
57
|
+
|
|
58
|
+
DESCRIPTION
|
|
59
|
+
Display help for ctxl.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
|
|
63
|
+
|
|
64
|
+
## `ctxl plugins`
|
|
65
|
+
|
|
66
|
+
List installed plugins.
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
USAGE
|
|
70
|
+
$ ctxl plugins [--json] [--core]
|
|
71
|
+
|
|
72
|
+
FLAGS
|
|
73
|
+
--core Show core plugins.
|
|
74
|
+
|
|
75
|
+
GLOBAL FLAGS
|
|
76
|
+
--json Format output as json.
|
|
77
|
+
|
|
78
|
+
DESCRIPTION
|
|
79
|
+
List installed plugins.
|
|
80
|
+
|
|
81
|
+
EXAMPLES
|
|
82
|
+
$ ctxl plugins
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/index.ts)_
|
|
86
|
+
|
|
87
|
+
## `ctxl plugins add PLUGIN`
|
|
88
|
+
|
|
89
|
+
Installs a plugin into ctxl.
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
USAGE
|
|
93
|
+
$ ctxl plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
94
|
+
|
|
95
|
+
ARGUMENTS
|
|
96
|
+
PLUGIN... Plugin to install.
|
|
97
|
+
|
|
98
|
+
FLAGS
|
|
99
|
+
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
100
|
+
-h, --help Show CLI help.
|
|
101
|
+
-s, --silent Silences npm output.
|
|
102
|
+
-v, --verbose Show verbose npm output.
|
|
103
|
+
|
|
104
|
+
GLOBAL FLAGS
|
|
105
|
+
--json Format output as json.
|
|
106
|
+
|
|
107
|
+
DESCRIPTION
|
|
108
|
+
Installs a plugin into ctxl.
|
|
109
|
+
|
|
110
|
+
Uses npm to install plugins.
|
|
111
|
+
|
|
112
|
+
Installation of a user-installed plugin will override a core plugin.
|
|
113
|
+
|
|
114
|
+
Use the CTXL_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
115
|
+
Use the CTXL_NPM_REGISTRY environment variable to set the npm registry.
|
|
116
|
+
|
|
117
|
+
ALIASES
|
|
118
|
+
$ ctxl plugins add
|
|
119
|
+
|
|
120
|
+
EXAMPLES
|
|
121
|
+
Install a plugin from npm registry.
|
|
122
|
+
|
|
123
|
+
$ ctxl plugins add myplugin
|
|
124
|
+
|
|
125
|
+
Install a plugin from a github url.
|
|
126
|
+
|
|
127
|
+
$ ctxl plugins add https://github.com/someuser/someplugin
|
|
128
|
+
|
|
129
|
+
Install a plugin from a github slug.
|
|
130
|
+
|
|
131
|
+
$ ctxl plugins add someuser/someplugin
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## `ctxl plugins:inspect PLUGIN...`
|
|
135
|
+
|
|
136
|
+
Displays installation properties of a plugin.
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
USAGE
|
|
140
|
+
$ ctxl plugins inspect PLUGIN...
|
|
141
|
+
|
|
142
|
+
ARGUMENTS
|
|
143
|
+
PLUGIN... [default: .] Plugin to inspect.
|
|
144
|
+
|
|
145
|
+
FLAGS
|
|
146
|
+
-h, --help Show CLI help.
|
|
147
|
+
-v, --verbose
|
|
148
|
+
|
|
149
|
+
GLOBAL FLAGS
|
|
150
|
+
--json Format output as json.
|
|
151
|
+
|
|
152
|
+
DESCRIPTION
|
|
153
|
+
Displays installation properties of a plugin.
|
|
154
|
+
|
|
155
|
+
EXAMPLES
|
|
156
|
+
$ ctxl plugins inspect myplugin
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/inspect.ts)_
|
|
160
|
+
|
|
161
|
+
## `ctxl plugins install PLUGIN`
|
|
162
|
+
|
|
163
|
+
Installs a plugin into ctxl.
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
USAGE
|
|
167
|
+
$ ctxl plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
168
|
+
|
|
169
|
+
ARGUMENTS
|
|
170
|
+
PLUGIN... Plugin to install.
|
|
171
|
+
|
|
172
|
+
FLAGS
|
|
173
|
+
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
174
|
+
-h, --help Show CLI help.
|
|
175
|
+
-s, --silent Silences npm output.
|
|
176
|
+
-v, --verbose Show verbose npm output.
|
|
177
|
+
|
|
178
|
+
GLOBAL FLAGS
|
|
179
|
+
--json Format output as json.
|
|
180
|
+
|
|
181
|
+
DESCRIPTION
|
|
182
|
+
Installs a plugin into ctxl.
|
|
183
|
+
|
|
184
|
+
Uses npm to install plugins.
|
|
185
|
+
|
|
186
|
+
Installation of a user-installed plugin will override a core plugin.
|
|
187
|
+
|
|
188
|
+
Use the CTXL_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
189
|
+
Use the CTXL_NPM_REGISTRY environment variable to set the npm registry.
|
|
190
|
+
|
|
191
|
+
ALIASES
|
|
192
|
+
$ ctxl plugins add
|
|
193
|
+
|
|
194
|
+
EXAMPLES
|
|
195
|
+
Install a plugin from npm registry.
|
|
196
|
+
|
|
197
|
+
$ ctxl plugins install myplugin
|
|
198
|
+
|
|
199
|
+
Install a plugin from a github url.
|
|
200
|
+
|
|
201
|
+
$ ctxl plugins install https://github.com/someuser/someplugin
|
|
202
|
+
|
|
203
|
+
Install a plugin from a github slug.
|
|
204
|
+
|
|
205
|
+
$ ctxl plugins install someuser/someplugin
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/install.ts)_
|
|
209
|
+
|
|
210
|
+
## `ctxl plugins link PATH`
|
|
211
|
+
|
|
212
|
+
Links a plugin into the CLI for development.
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
USAGE
|
|
216
|
+
$ ctxl plugins link PATH [-h] [--install] [-v]
|
|
217
|
+
|
|
218
|
+
ARGUMENTS
|
|
219
|
+
PATH [default: .] path to plugin
|
|
220
|
+
|
|
221
|
+
FLAGS
|
|
222
|
+
-h, --help Show CLI help.
|
|
223
|
+
-v, --verbose
|
|
224
|
+
--[no-]install Install dependencies after linking the plugin.
|
|
225
|
+
|
|
226
|
+
DESCRIPTION
|
|
227
|
+
Links a plugin into the CLI for development.
|
|
228
|
+
|
|
229
|
+
Installation of a linked plugin will override a user-installed or core plugin.
|
|
230
|
+
|
|
231
|
+
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
232
|
+
command will override the user-installed or core plugin implementation. This is useful for development work.
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
EXAMPLES
|
|
236
|
+
$ ctxl plugins link myplugin
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/link.ts)_
|
|
240
|
+
|
|
241
|
+
## `ctxl plugins remove [PLUGIN]`
|
|
242
|
+
|
|
243
|
+
Removes a plugin from the CLI.
|
|
244
|
+
|
|
245
|
+
```
|
|
246
|
+
USAGE
|
|
247
|
+
$ ctxl plugins remove [PLUGIN...] [-h] [-v]
|
|
248
|
+
|
|
249
|
+
ARGUMENTS
|
|
250
|
+
[PLUGIN...] plugin to uninstall
|
|
251
|
+
|
|
252
|
+
FLAGS
|
|
253
|
+
-h, --help Show CLI help.
|
|
254
|
+
-v, --verbose
|
|
255
|
+
|
|
256
|
+
DESCRIPTION
|
|
257
|
+
Removes a plugin from the CLI.
|
|
258
|
+
|
|
259
|
+
ALIASES
|
|
260
|
+
$ ctxl plugins unlink
|
|
261
|
+
$ ctxl plugins remove
|
|
262
|
+
|
|
263
|
+
EXAMPLES
|
|
264
|
+
$ ctxl plugins remove myplugin
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## `ctxl plugins reset`
|
|
268
|
+
|
|
269
|
+
Remove all user-installed and linked plugins.
|
|
270
|
+
|
|
271
|
+
```
|
|
272
|
+
USAGE
|
|
273
|
+
$ ctxl plugins reset [--hard] [--reinstall]
|
|
274
|
+
|
|
275
|
+
FLAGS
|
|
276
|
+
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
|
|
277
|
+
--reinstall Reinstall all plugins after uninstalling.
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/reset.ts)_
|
|
281
|
+
|
|
282
|
+
## `ctxl plugins uninstall [PLUGIN]`
|
|
283
|
+
|
|
284
|
+
Removes a plugin from the CLI.
|
|
285
|
+
|
|
286
|
+
```
|
|
287
|
+
USAGE
|
|
288
|
+
$ ctxl plugins uninstall [PLUGIN...] [-h] [-v]
|
|
289
|
+
|
|
290
|
+
ARGUMENTS
|
|
291
|
+
[PLUGIN...] plugin to uninstall
|
|
292
|
+
|
|
293
|
+
FLAGS
|
|
294
|
+
-h, --help Show CLI help.
|
|
295
|
+
-v, --verbose
|
|
296
|
+
|
|
297
|
+
DESCRIPTION
|
|
298
|
+
Removes a plugin from the CLI.
|
|
299
|
+
|
|
300
|
+
ALIASES
|
|
301
|
+
$ ctxl plugins unlink
|
|
302
|
+
$ ctxl plugins remove
|
|
303
|
+
|
|
304
|
+
EXAMPLES
|
|
305
|
+
$ ctxl plugins uninstall myplugin
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/uninstall.ts)_
|
|
309
|
+
|
|
310
|
+
## `ctxl plugins unlink [PLUGIN]`
|
|
311
|
+
|
|
312
|
+
Removes a plugin from the CLI.
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
USAGE
|
|
316
|
+
$ ctxl plugins unlink [PLUGIN...] [-h] [-v]
|
|
317
|
+
|
|
318
|
+
ARGUMENTS
|
|
319
|
+
[PLUGIN...] plugin to uninstall
|
|
320
|
+
|
|
321
|
+
FLAGS
|
|
322
|
+
-h, --help Show CLI help.
|
|
323
|
+
-v, --verbose
|
|
324
|
+
|
|
325
|
+
DESCRIPTION
|
|
326
|
+
Removes a plugin from the CLI.
|
|
327
|
+
|
|
328
|
+
ALIASES
|
|
329
|
+
$ ctxl plugins unlink
|
|
330
|
+
$ ctxl plugins remove
|
|
331
|
+
|
|
332
|
+
EXAMPLES
|
|
333
|
+
$ ctxl plugins unlink myplugin
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
## `ctxl plugins update`
|
|
337
|
+
|
|
338
|
+
Update installed plugins.
|
|
339
|
+
|
|
340
|
+
```
|
|
341
|
+
USAGE
|
|
342
|
+
$ ctxl plugins update [-h] [-v]
|
|
343
|
+
|
|
344
|
+
FLAGS
|
|
345
|
+
-h, --help Show CLI help.
|
|
346
|
+
-v, --verbose
|
|
347
|
+
|
|
348
|
+
DESCRIPTION
|
|
349
|
+
Update installed plugins.
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/update.ts)_
|
|
353
|
+
<!-- commandsstop -->
|
package/bin/dev.cmd
ADDED
package/bin/dev.js
ADDED
package/bin/run.cmd
ADDED
package/bin/run.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@contextual-io/cli",
|
|
3
|
+
"description": "Contextual CLI",
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"author": "Nasser Oloumi",
|
|
6
|
+
"bin": {
|
|
7
|
+
"ctxl": "./bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"bugs": "https://github.com/ContextualIO/contextual-cli/issues",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@oclif/core": "^4",
|
|
12
|
+
"@oclif/plugin-help": "^6",
|
|
13
|
+
"@oclif/plugin-plugins": "^5",
|
|
14
|
+
"@oclif/table": "^0.5.1",
|
|
15
|
+
"chalk": "^5.6.2",
|
|
16
|
+
"cross-fetch": "^4.1.0",
|
|
17
|
+
"open": "^11.0.0",
|
|
18
|
+
"stream-json": "^1.9.1",
|
|
19
|
+
"zod": "4.1.12"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@eslint/compat": "^1",
|
|
23
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
24
|
+
"@oclif/test": "^4",
|
|
25
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
26
|
+
"@types/chai": "^4",
|
|
27
|
+
"@types/mocha": "^10",
|
|
28
|
+
"@types/node": "^18",
|
|
29
|
+
"@types/stream-json": "^1.7.8",
|
|
30
|
+
"chai": "^4",
|
|
31
|
+
"eslint": "^9",
|
|
32
|
+
"eslint-config-oclif": "^6",
|
|
33
|
+
"eslint-config-prettier": "^10",
|
|
34
|
+
"eslint-plugin-unused-imports": "^4.3.0",
|
|
35
|
+
"mocha": "^10",
|
|
36
|
+
"oclif": "^4",
|
|
37
|
+
"shx": "^0.3.3",
|
|
38
|
+
"ts-node": "^10",
|
|
39
|
+
"typescript": "^5"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18.0.0"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"./bin",
|
|
46
|
+
"./dist",
|
|
47
|
+
"./oclif.manifest.json"
|
|
48
|
+
],
|
|
49
|
+
"homepage": "https://github.com/ContextualIO/contextual-cli",
|
|
50
|
+
"keywords": [
|
|
51
|
+
"oclif"
|
|
52
|
+
],
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"main": "dist/index.js",
|
|
55
|
+
"type": "module",
|
|
56
|
+
"oclif": {
|
|
57
|
+
"bin": "ctxl",
|
|
58
|
+
"dirname": "ctxl",
|
|
59
|
+
"commands": "./dist/commands",
|
|
60
|
+
"plugins": [
|
|
61
|
+
"@oclif/plugin-help",
|
|
62
|
+
"@oclif/plugin-plugins"
|
|
63
|
+
],
|
|
64
|
+
"topicSeparator": " ",
|
|
65
|
+
"topics": {
|
|
66
|
+
"hello": {
|
|
67
|
+
"description": "Say hello to the world and others"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"repository": "ContextualIO/contextual-cli",
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
74
|
+
"lint": "eslint",
|
|
75
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
76
|
+
"posttest": "pnpm run lint",
|
|
77
|
+
"prepack": "oclif manifest && oclif readme",
|
|
78
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
79
|
+
"version": "oclif readme && git add README.md"
|
|
80
|
+
},
|
|
81
|
+
"types": "dist/index.d.ts"
|
|
82
|
+
}
|