1 | # cli
|
2 |
|
3 | The 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 |
|
17 | The CLI package manager for shockpkg packages.
|
18 |
|
19 |
|
20 | # Usage
|
21 |
|
22 | ```sh-session
|
23 | $ npm install -g @shockpkg/cli
|
24 | $ shockpkg COMMAND
|
25 | running command...
|
26 | $ shockpkg (-v|--version|version)
|
27 | @shockpkg/cli/1.1.1 darwin-x64 node-v12.6.0
|
28 | $ shockpkg --help [COMMAND]
|
29 | USAGE
|
30 | $ shockpkg COMMAND
|
31 | ...
|
32 | ```
|
33 |
|
34 |
|
35 |
|
36 | # Commands
|
37 |
|
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 |
|
64 | display info about program
|
65 |
|
66 | ```
|
67 | USAGE
|
68 | $ shockpkg about
|
69 |
|
70 | OPTIONS
|
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 |
|
78 | list the available packages not installed
|
79 |
|
80 | ```
|
81 | USAGE
|
82 | $ shockpkg available
|
83 |
|
84 | OPTIONS
|
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 |
|
92 | cleanup temporary files and obsolete packages
|
93 |
|
94 | ```
|
95 | USAGE
|
96 | $ shockpkg cleanup
|
97 |
|
98 | OPTIONS
|
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 |
|
106 | get package file path
|
107 |
|
108 | ```
|
109 | USAGE
|
110 | $ shockpkg file PACKAGE
|
111 |
|
112 | ARGUMENTS
|
113 | PACKAGE package id
|
114 |
|
115 | OPTIONS
|
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 |
|
123 | display help for shockpkg
|
124 |
|
125 | ```
|
126 | USAGE
|
127 | $ shockpkg help [COMMAND]
|
128 |
|
129 | ARGUMENTS
|
130 | COMMAND command to show help for
|
131 |
|
132 | OPTIONS
|
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 |
|
140 | view info for package
|
141 |
|
142 | ```
|
143 | USAGE
|
144 | $ shockpkg info PACKAGE
|
145 |
|
146 | ARGUMENTS
|
147 | PACKAGE package id
|
148 |
|
149 | OPTIONS
|
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 |
|
157 | install packages, slim method, fallback on full method
|
158 |
|
159 | ```
|
160 | USAGE
|
161 | $ shockpkg install PACKAGES
|
162 |
|
163 | ARGUMENTS
|
164 | PACKAGES list of packages to be installed
|
165 |
|
166 | OPTIONS
|
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 |
|
174 | install packages, full method
|
175 |
|
176 | ```
|
177 | USAGE
|
178 | $ shockpkg install-full PACKAGES
|
179 |
|
180 | ARGUMENTS
|
181 | PACKAGES list of packages to be installed
|
182 |
|
183 | OPTIONS
|
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 |
|
191 | install packages, slim method
|
192 |
|
193 | ```
|
194 | USAGE
|
195 | $ shockpkg install-slim PACKAGES
|
196 |
|
197 | ARGUMENTS
|
198 | PACKAGES list of packages to be installed
|
199 |
|
200 | OPTIONS
|
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 |
|
208 | list the installed packages
|
209 |
|
210 | ```
|
211 | USAGE
|
212 | $ shockpkg installed
|
213 |
|
214 | OPTIONS
|
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 |
|
222 | check package is installed and current
|
223 |
|
224 | ```
|
225 | USAGE
|
226 | $ shockpkg is-current PACKAGE
|
227 |
|
228 | ARGUMENTS
|
229 | PACKAGE package id
|
230 |
|
231 | OPTIONS
|
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 |
|
239 | check package is installed
|
240 |
|
241 | ```
|
242 | USAGE
|
243 | $ shockpkg is-installed PACKAGE
|
244 |
|
245 | ARGUMENTS
|
246 | PACKAGE package id
|
247 |
|
248 | OPTIONS
|
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 |
|
256 | check package is obsolete
|
257 |
|
258 | ```
|
259 | USAGE
|
260 | $ shockpkg is-obsolete PACKAGE
|
261 |
|
262 | ARGUMENTS
|
263 | PACKAGE package id
|
264 |
|
265 | OPTIONS
|
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 |
|
273 | list the obsolete packages
|
274 |
|
275 | ```
|
276 | USAGE
|
277 | $ shockpkg obsolete
|
278 |
|
279 | OPTIONS
|
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 |
|
287 | list the outdated packages
|
288 |
|
289 | ```
|
290 | USAGE
|
291 | $ shockpkg outdated
|
292 |
|
293 | OPTIONS
|
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 |
|
301 | get package manager path
|
302 |
|
303 | ```
|
304 | USAGE
|
305 | $ shockpkg path
|
306 |
|
307 | OPTIONS
|
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 |
|
315 | remove packages
|
316 |
|
317 | ```
|
318 | USAGE
|
319 | $ shockpkg remove PACKAGES
|
320 |
|
321 | ARGUMENTS
|
322 | PACKAGES list of packages to be removed
|
323 |
|
324 | OPTIONS
|
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 |
|
332 | update the packages list
|
333 |
|
334 | ```
|
335 | USAGE
|
336 | $ shockpkg update
|
337 |
|
338 | OPTIONS
|
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 |
|
346 | install packages, slim method
|
347 |
|
348 | ```
|
349 | USAGE
|
350 | $ shockpkg upgrade
|
351 |
|
352 | OPTIONS
|
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 |
|
360 | install packages, full method
|
361 |
|
362 | ```
|
363 | USAGE
|
364 | $ shockpkg upgrade-full
|
365 |
|
366 | OPTIONS
|
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 |
|
374 | install packages, slim method
|
375 |
|
376 | ```
|
377 | USAGE
|
378 | $ shockpkg upgrade-slim
|
379 |
|
380 | OPTIONS
|
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 |
|
388 | get package manager package list URL
|
389 |
|
390 | ```
|
391 | USAGE
|
392 | $ shockpkg url
|
393 |
|
394 | OPTIONS
|
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 |
|
402 | verify an installed package
|
403 |
|
404 | ```
|
405 | USAGE
|
406 | $ shockpkg verify PACKAGE
|
407 |
|
408 | ARGUMENTS
|
409 | PACKAGE package id
|
410 |
|
411 | OPTIONS
|
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 |
|
417 |
|
418 |
|
419 | # Bugs
|
420 |
|
421 | If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
|
422 |
|
423 |
|
424 | # License
|
425 |
|
426 | Copyright (c) 2018-2019 JrMasterModelBuilder
|
427 |
|
428 | Licensed under the Mozilla Public License, v. 2.0.
|
429 |
|
430 | If this license does not work for you, feel free to contact me.
|