UNPKG

8.64 kBMarkdownView Raw
1# cli
2
3The shockpkg CLI
4
5[![npm](https://img.shields.io/npm/v/@shockpkg/cli.svg)](https://npmjs.com/package/@shockpkg/cli)
6[![node](https://img.shields.io/node/v/@shockpkg/cli.svg)](https://nodejs.org)
7
8[![dependencies](https://david-dm.org/shockpkg/cli.svg)](https://david-dm.org/shockpkg/cli)
9[![size](https://packagephobia.now.sh/badge?p=@shockpkg/cli)](https://packagephobia.now.sh/result?p=@shockpkg/cli)
10[![downloads](https://img.shields.io/npm/dm/@shockpkg/cli.svg)](https://npmcharts.com/compare/@shockpkg/cli?minimal=true)
11
12[![travis-ci](https://travis-ci.org/shockpkg/cli.svg?branch=master)](https://travis-ci.org/shockpkg/cli)
13
14
15# Overview
16
17The CLI package manager for shockpkg packages.
18
19
20# Usage
21<!-- usage -->
22```sh-session
23$ npm install -g @shockpkg/cli
24$ shockpkg COMMAND
25running command...
26$ shockpkg (-v|--version|version)
27@shockpkg/cli/1.1.1 darwin-x64 node-v12.6.0
28$ shockpkg --help [COMMAND]
29USAGE
30 $ shockpkg COMMAND
31...
32```
33<!-- usagestop -->
34
35
36# Commands
37<!-- commands -->
38* [`shockpkg about`](#shockpkg-about)
39* [`shockpkg available`](#shockpkg-available)
40* [`shockpkg cleanup`](#shockpkg-cleanup)
41* [`shockpkg file PACKAGE`](#shockpkg-file-package)
42* [`shockpkg help [COMMAND]`](#shockpkg-help-command)
43* [`shockpkg info PACKAGE`](#shockpkg-info-package)
44* [`shockpkg install PACKAGES`](#shockpkg-install-packages)
45* [`shockpkg install-full PACKAGES`](#shockpkg-install-full-packages)
46* [`shockpkg install-slim PACKAGES`](#shockpkg-install-slim-packages)
47* [`shockpkg installed`](#shockpkg-installed)
48* [`shockpkg is-current PACKAGE`](#shockpkg-is-current-package)
49* [`shockpkg is-installed PACKAGE`](#shockpkg-is-installed-package)
50* [`shockpkg is-obsolete PACKAGE`](#shockpkg-is-obsolete-package)
51* [`shockpkg obsolete`](#shockpkg-obsolete)
52* [`shockpkg outdated`](#shockpkg-outdated)
53* [`shockpkg path`](#shockpkg-path)
54* [`shockpkg remove PACKAGES`](#shockpkg-remove-packages)
55* [`shockpkg update`](#shockpkg-update)
56* [`shockpkg upgrade`](#shockpkg-upgrade)
57* [`shockpkg upgrade-full`](#shockpkg-upgrade-full)
58* [`shockpkg upgrade-slim`](#shockpkg-upgrade-slim)
59* [`shockpkg url`](#shockpkg-url)
60* [`shockpkg verify PACKAGE`](#shockpkg-verify-package)
61
62## `shockpkg about`
63
64display info about program
65
66```
67USAGE
68 $ shockpkg about
69
70OPTIONS
71 -h, --help show CLI help
72```
73
74_See code: [src/commands/about.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/about.ts)_
75
76## `shockpkg available`
77
78list the available packages not installed
79
80```
81USAGE
82 $ shockpkg available
83
84OPTIONS
85 -h, --help show CLI help
86```
87
88_See code: [src/commands/available.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/available.ts)_
89
90## `shockpkg cleanup`
91
92cleanup temporary files and obsolete packages
93
94```
95USAGE
96 $ shockpkg cleanup
97
98OPTIONS
99 -h, --help show CLI help
100```
101
102_See code: [src/commands/cleanup.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/cleanup.ts)_
103
104## `shockpkg file PACKAGE`
105
106get package file path
107
108```
109USAGE
110 $ shockpkg file PACKAGE
111
112ARGUMENTS
113 PACKAGE package id
114
115OPTIONS
116 -h, --help show CLI help
117```
118
119_See code: [src/commands/file.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/file.ts)_
120
121## `shockpkg help [COMMAND]`
122
123display help for shockpkg
124
125```
126USAGE
127 $ shockpkg help [COMMAND]
128
129ARGUMENTS
130 COMMAND command to show help for
131
132OPTIONS
133 --all see all commands in CLI
134```
135
136_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.0/src/commands/help.ts)_
137
138## `shockpkg info PACKAGE`
139
140view info for package
141
142```
143USAGE
144 $ shockpkg info PACKAGE
145
146ARGUMENTS
147 PACKAGE package id
148
149OPTIONS
150 -h, --help show CLI help
151```
152
153_See code: [src/commands/info.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/info.ts)_
154
155## `shockpkg install PACKAGES`
156
157install packages, slim method, fallback on full method
158
159```
160USAGE
161 $ shockpkg install PACKAGES
162
163ARGUMENTS
164 PACKAGES list of packages to be installed
165
166OPTIONS
167 -h, --help show CLI help
168```
169
170_See code: [src/commands/install.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/install.ts)_
171
172## `shockpkg install-full PACKAGES`
173
174install packages, full method
175
176```
177USAGE
178 $ shockpkg install-full PACKAGES
179
180ARGUMENTS
181 PACKAGES list of packages to be installed
182
183OPTIONS
184 -h, --help show CLI help
185```
186
187_See code: [src/commands/install-full.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/install-full.ts)_
188
189## `shockpkg install-slim PACKAGES`
190
191install packages, slim method
192
193```
194USAGE
195 $ shockpkg install-slim PACKAGES
196
197ARGUMENTS
198 PACKAGES list of packages to be installed
199
200OPTIONS
201 -h, --help show CLI help
202```
203
204_See code: [src/commands/install-slim.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/install-slim.ts)_
205
206## `shockpkg installed`
207
208list the installed packages
209
210```
211USAGE
212 $ shockpkg installed
213
214OPTIONS
215 -h, --help show CLI help
216```
217
218_See code: [src/commands/installed.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/installed.ts)_
219
220## `shockpkg is-current PACKAGE`
221
222check package is installed and current
223
224```
225USAGE
226 $ shockpkg is-current PACKAGE
227
228ARGUMENTS
229 PACKAGE package id
230
231OPTIONS
232 -h, --help show CLI help
233```
234
235_See code: [src/commands/is-current.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/is-current.ts)_
236
237## `shockpkg is-installed PACKAGE`
238
239check package is installed
240
241```
242USAGE
243 $ shockpkg is-installed PACKAGE
244
245ARGUMENTS
246 PACKAGE package id
247
248OPTIONS
249 -h, --help show CLI help
250```
251
252_See code: [src/commands/is-installed.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/is-installed.ts)_
253
254## `shockpkg is-obsolete PACKAGE`
255
256check package is obsolete
257
258```
259USAGE
260 $ shockpkg is-obsolete PACKAGE
261
262ARGUMENTS
263 PACKAGE package id
264
265OPTIONS
266 -h, --help show CLI help
267```
268
269_See code: [src/commands/is-obsolete.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/is-obsolete.ts)_
270
271## `shockpkg obsolete`
272
273list the obsolete packages
274
275```
276USAGE
277 $ shockpkg obsolete
278
279OPTIONS
280 -h, --help show CLI help
281```
282
283_See code: [src/commands/obsolete.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/obsolete.ts)_
284
285## `shockpkg outdated`
286
287list the outdated packages
288
289```
290USAGE
291 $ shockpkg outdated
292
293OPTIONS
294 -h, --help show CLI help
295```
296
297_See code: [src/commands/outdated.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/outdated.ts)_
298
299## `shockpkg path`
300
301get package manager path
302
303```
304USAGE
305 $ shockpkg path
306
307OPTIONS
308 -h, --help show CLI help
309```
310
311_See code: [src/commands/path.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/path.ts)_
312
313## `shockpkg remove PACKAGES`
314
315remove packages
316
317```
318USAGE
319 $ shockpkg remove PACKAGES
320
321ARGUMENTS
322 PACKAGES list of packages to be removed
323
324OPTIONS
325 -h, --help show CLI help
326```
327
328_See code: [src/commands/remove.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/remove.ts)_
329
330## `shockpkg update`
331
332update the packages list
333
334```
335USAGE
336 $ shockpkg update
337
338OPTIONS
339 -h, --help show CLI help
340```
341
342_See code: [src/commands/update.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/update.ts)_
343
344## `shockpkg upgrade`
345
346install packages, slim method
347
348```
349USAGE
350 $ shockpkg upgrade
351
352OPTIONS
353 -h, --help show CLI help
354```
355
356_See code: [src/commands/upgrade.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/upgrade.ts)_
357
358## `shockpkg upgrade-full`
359
360install packages, full method
361
362```
363USAGE
364 $ shockpkg upgrade-full
365
366OPTIONS
367 -h, --help show CLI help
368```
369
370_See code: [src/commands/upgrade-full.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/upgrade-full.ts)_
371
372## `shockpkg upgrade-slim`
373
374install packages, slim method
375
376```
377USAGE
378 $ shockpkg upgrade-slim
379
380OPTIONS
381 -h, --help show CLI help
382```
383
384_See code: [src/commands/upgrade-slim.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/upgrade-slim.ts)_
385
386## `shockpkg url`
387
388get package manager package list URL
389
390```
391USAGE
392 $ shockpkg url
393
394OPTIONS
395 -h, --help show CLI help
396```
397
398_See code: [src/commands/url.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/url.ts)_
399
400## `shockpkg verify PACKAGE`
401
402verify an installed package
403
404```
405USAGE
406 $ shockpkg verify PACKAGE
407
408ARGUMENTS
409 PACKAGE package id
410
411OPTIONS
412 -h, --help show CLI help
413```
414
415_See code: [src/commands/verify.ts](https://github.com/shockpkg/cli/blob/v1.1.1/src/commands/verify.ts)_
416<!-- commandsstop -->
417
418
419# Bugs
420
421If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
422
423
424# License
425
426Copyright (c) 2018-2019 JrMasterModelBuilder
427
428Licensed under the Mozilla Public License, v. 2.0.
429
430If this license does not work for you, feel free to contact me.