1 | cli
|
2 | ===
|
3 |
|
4 | Mappr CLI library
|
5 |
|
6 | [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
|
7 | [![Version](https://img.shields.io/npm/v/cli.svg)](https://npmjs.org/package/cli)
|
8 | [![Downloads/week](https://img.shields.io/npm/dw/cli.svg)](https://npmjs.org/package/cli)
|
9 | [![License](https://img.shields.io/npm/l/cli.svg)](https://github.com/grigorkh/cli/blob/master/package.json)
|
10 |
|
11 |
|
12 | * [Usage](#usage)
|
13 | * [Commands](#commands)
|
14 |
|
15 | # Usage
|
16 |
|
17 | ```sh-session
|
18 | $ npm install -g @mappr/cli
|
19 | $ mappr COMMAND
|
20 | running command...
|
21 | $ mappr (-v|--version|version)
|
22 | @mappr/cli/0.0.2 linux-x64 node-v10.15.3
|
23 | $ mappr --help [COMMAND]
|
24 | USAGE
|
25 | $ mappr COMMAND
|
26 | ...
|
27 | ```
|
28 |
|
29 | # Commands
|
30 |
|
31 | * [`mappr application`](#mappr-application)
|
32 | * [`mappr application:create`](#mappr-applicationcreate)
|
33 | * [`mappr config`](#mappr-config)
|
34 | * [`mappr dataset`](#mappr-dataset)
|
35 | * [`mappr dataset:create`](#mappr-datasetcreate)
|
36 | * [`mappr dataset:delete`](#mappr-datasetdelete)
|
37 | * [`mappr dataset:list`](#mappr-datasetlist)
|
38 | * [`mappr describe`](#mappr-describe)
|
39 | * [`mappr help [COMMAND]`](#mappr-help-command)
|
40 | * [`mappr iconset`](#mappr-iconset)
|
41 | * [`mappr iconset:create`](#mappr-iconsetcreate)
|
42 | * [`mappr iconset:delete`](#mappr-iconsetdelete)
|
43 | * [`mappr iconset:list`](#mappr-iconsetlist)
|
44 | * [`mappr login`](#mappr-login)
|
45 | * [`mappr logout`](#mappr-logout)
|
46 | * [`mappr mediaset`](#mappr-mediaset)
|
47 | * [`mappr mediaset:create`](#mappr-mediasetcreate)
|
48 | * [`mappr mediaset:delete`](#mappr-mediasetdelete)
|
49 | * [`mappr mediaset:list`](#mappr-mediasetlist)
|
50 | * [`mappr project`](#mappr-project)
|
51 | * [`mappr project:create`](#mappr-projectcreate)
|
52 | * [`mappr project:delete`](#mappr-projectdelete)
|
53 | * [`mappr project:list`](#mappr-projectlist)
|
54 | * [`mappr project:select`](#mappr-projectselect)
|
55 | * [`mappr register`](#mappr-register)
|
56 | * [`mappr reset`](#mappr-reset)
|
57 | * [`mappr tasks`](#mappr-tasks)
|
58 | * [`mappr tasks:AbstractTaskCommand`](#mappr-tasksabstracttaskcommand)
|
59 | * [`mappr tasks:cancel`](#mappr-taskscancel)
|
60 | * [`mappr tasks:list`](#mappr-taskslist)
|
61 | * [`mappr tasks:logs`](#mappr-taskslogs)
|
62 | * [`mappr tasks:remove`](#mappr-tasksremove)
|
63 |
|
64 | ## `mappr application`
|
65 |
|
66 | Manages your Mappr Applications
|
67 |
|
68 | ```
|
69 | USAGE
|
70 | $ mappr application
|
71 |
|
72 | DESCRIPTION
|
73 | To create a new Mappr Application use -> mappr application:create
|
74 | ```
|
75 |
|
76 | ## `mappr application:create`
|
77 |
|
78 | Manages your Mappr Applications
|
79 |
|
80 | ```
|
81 | USAGE
|
82 | $ mappr application:create
|
83 |
|
84 | DESCRIPTION
|
85 | This command will clone a starter Mappr application into the current working directory and configure it to work with
|
86 | the development server.
|
87 |
|
88 | Note: This command needs authentication.
|
89 |
|
90 | EXAMPLE
|
91 | $ mappr application:create
|
92 | ```
|
93 |
|
94 | ## `mappr config`
|
95 |
|
96 | Returns path to the Mappr CLI config file
|
97 |
|
98 | ```
|
99 | USAGE
|
100 | $ mappr config
|
101 |
|
102 | DESCRIPTION
|
103 | This command will look for the current .mapprrc file and print out the full path to it.
|
104 | Typically the file will be located in your system's Home directory.
|
105 | But it is also possible to override the main RC file with another one inside your working directory or with command
|
106 | line arguments and env variables.
|
107 |
|
108 | EXAMPLE
|
109 | $ mappr config
|
110 | /Users/systemuser/.mapprrc
|
111 | ```
|
112 |
|
113 | ## `mappr dataset`
|
114 |
|
115 | Manages your Mappr Datasets
|
116 |
|
117 | ```
|
118 | USAGE
|
119 | $ mappr dataset
|
120 |
|
121 | DESCRIPTION
|
122 | ...
|
123 | Create dataets: mappr dataset:create
|
124 | List dataets: mappr dataset:list
|
125 | Delete dataets: mappr dataset:delete
|
126 | GraphQL API url: https://api.mappr.online/playground
|
127 | ```
|
128 |
|
129 | ## `mappr dataset:create`
|
130 |
|
131 | Create new Dataset by given name, projectId, and GEO-data.
|
132 |
|
133 | ```
|
134 | USAGE
|
135 | $ mappr dataset:create
|
136 |
|
137 | DESCRIPTION
|
138 | Note: This command needs authentication.
|
139 |
|
140 | EXAMPLE
|
141 | $ mappr dataset:create
|
142 | ```
|
143 |
|
144 | ## `mappr dataset:delete`
|
145 |
|
146 | Delete existing Dataset by given datasetId
|
147 |
|
148 | ```
|
149 | USAGE
|
150 | $ mappr dataset:delete
|
151 |
|
152 | DESCRIPTION
|
153 | This command delete Dataset by ID for the project that mentioned.
|
154 |
|
155 | Note: This command needs authentication.
|
156 |
|
157 | EXAMPLE
|
158 | $ mappr dataset:delete
|
159 | ```
|
160 |
|
161 | ## `mappr dataset:list`
|
162 |
|
163 | List all existing Datasets by given ProjectId
|
164 |
|
165 | ```
|
166 | USAGE
|
167 | $ mappr dataset:list
|
168 |
|
169 | DESCRIPTION
|
170 | This command returns the list of all Dataset available for the project that mentioned.
|
171 | For each Dataset it will print out its ID and Name.
|
172 |
|
173 | Note: This command needs authentication.
|
174 |
|
175 | EXAMPLE
|
176 | $ mappr dataset:list
|
177 |
|
178 | Dataset ID Indexes
|
179 | ────────── ────────────
|
180 | dataset-1 []
|
181 | dataset-2 [ 'localisation -> simple', 'q__fr -> simple' ]
|
182 | ```
|
183 |
|
184 | ## `mappr describe`
|
185 |
|
186 | Displays complete help for Mappr CLI in a structured way
|
187 |
|
188 | ```
|
189 | USAGE
|
190 | $ mappr describe
|
191 | ```
|
192 |
|
193 | ## `mappr help [COMMAND]`
|
194 |
|
195 | display help for mappr
|
196 |
|
197 | ```
|
198 | USAGE
|
199 | $ mappr help [COMMAND]
|
200 |
|
201 | ARGUMENTS
|
202 | COMMAND command to show help for
|
203 |
|
204 | OPTIONS
|
205 | --all see all commands in CLI
|
206 | ```
|
207 |
|
208 | _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.0/src/commands/help.ts)_
|
209 |
|
210 | ## `mappr iconset`
|
211 |
|
212 | Manages your Mappr Iconsets
|
213 |
|
214 | ```
|
215 | USAGE
|
216 | $ mappr iconset
|
217 |
|
218 | DESCRIPTION
|
219 | ...
|
220 | Create iconsets: mappr iconset:create
|
221 | List iconsets: mappr iconset:list
|
222 | Delete iconsets: mappr iconset:delete
|
223 | To play around our GraphQL API and check docs visit: https://api.mappr.online/playground
|
224 | ```
|
225 |
|
226 | ## `mappr iconset:create`
|
227 |
|
228 | Create new Iconset by given name, projectId, and icons.
|
229 |
|
230 | ```
|
231 | USAGE
|
232 | $ mappr iconset:create
|
233 |
|
234 | DESCRIPTION
|
235 | Note: This command needs authentication.
|
236 |
|
237 | EXAMPLE
|
238 | $ mappr iconset:create
|
239 | ```
|
240 |
|
241 | ## `mappr iconset:delete`
|
242 |
|
243 | Delete existing Iconset by given IconsetId
|
244 |
|
245 | ```
|
246 | USAGE
|
247 | $ mappr iconset:delete
|
248 |
|
249 | DESCRIPTION
|
250 | This command delete Iconset by ID for the project that mentioned.
|
251 |
|
252 | Note: This command needs authentication.
|
253 |
|
254 | EXAMPLE
|
255 | $ mappr iconset:delete
|
256 | ```
|
257 |
|
258 | ## `mappr iconset:list`
|
259 |
|
260 | List all existing Iconsets by given ProjectId
|
261 |
|
262 | ```
|
263 | USAGE
|
264 | $ mappr iconset:list
|
265 |
|
266 | DESCRIPTION
|
267 | This command returns the list of all Iconset available for the project that mentioned.
|
268 | For each Iconset it will print out its ID and Name.
|
269 |
|
270 | Note: This command needs authentication.
|
271 |
|
272 | EXAMPLE
|
273 | $ mappr iconset:list
|
274 |
|
275 | Iconset ID Iconset Name
|
276 | ────────── ────────────
|
277 | icon-1 IconSet 1
|
278 | icon-2 IconSet 2
|
279 | ```
|
280 |
|
281 | ## `mappr login`
|
282 |
|
283 | Logs into your Mappr account
|
284 |
|
285 | ```
|
286 | USAGE
|
287 | $ mappr login
|
288 |
|
289 | OPTIONS
|
290 | -e, --email=email your email address
|
291 | -p, --password=password your password
|
292 |
|
293 | DESCRIPTION
|
294 | This command loggs you into the Mappr CLI with your account.
|
295 |
|
296 | Note: This command needs pre-registered Mappr account. Create one with the "mappr register" command.
|
297 |
|
298 | EXAMPLES
|
299 | $ mappr login -e john@doe.com -p your-password
|
300 | ✔ Logged in! Now you can continue using Mappr CLI!
|
301 |
|
302 | $ mappr login --email john@doe.com --password your-password
|
303 | ✔ Logged in! Now you can continue using Mappr CLI!
|
304 |
|
305 | $ mappr login
|
306 | > What is your email address? john@doe.com
|
307 | > What is your password? *******
|
308 | ✔ Logged in! Now you can continue using Mappr CLI!
|
309 | ```
|
310 |
|
311 | ## `mappr logout`
|
312 |
|
313 | Logs out of your Mappr account
|
314 |
|
315 | ```
|
316 | USAGE
|
317 | $ mappr logout
|
318 |
|
319 | DESCRIPTION
|
320 | This command will log out from Mappr CLI and clear the contents of the .mapprrc file.
|
321 |
|
322 | EXAMPLE
|
323 | $ mappr logout
|
324 | ✔ Logged out!
|
325 | ```
|
326 |
|
327 | ## `mappr mediaset`
|
328 |
|
329 | Manages your Mappr Mediasets
|
330 |
|
331 | ```
|
332 | USAGE
|
333 | $ mappr mediaset
|
334 |
|
335 | DESCRIPTION
|
336 | ...
|
337 | Create mediaets: mappr mediaset:create
|
338 | List mediaets: mappr mediaset:list
|
339 | Delete mediaets: mappr mediaset:delete
|
340 | GraphQL API url: https://api.mappr.online/playground
|
341 | ```
|
342 |
|
343 | ## `mappr mediaset:create`
|
344 |
|
345 | Create new Mediaset by given name, projectId, and GDrive url.
|
346 |
|
347 | ```
|
348 | USAGE
|
349 | $ mappr mediaset:create
|
350 |
|
351 | DESCRIPTION
|
352 | Note: This command needs authentication.
|
353 |
|
354 | EXAMPLE
|
355 | $ mappr mediaset:create
|
356 | ```
|
357 |
|
358 | ## `mappr mediaset:delete`
|
359 |
|
360 | Delete existing Mediaset by given mediasetId
|
361 |
|
362 | ```
|
363 | USAGE
|
364 | $ mappr mediaset:delete
|
365 |
|
366 | DESCRIPTION
|
367 | This command delete Mediaset by ID for the project that mentioned.
|
368 |
|
369 | Note: This command needs authentication.
|
370 |
|
371 | EXAMPLE
|
372 | $ mappr mediaset:delete
|
373 | ```
|
374 |
|
375 | ## `mappr mediaset:list`
|
376 |
|
377 | List all existing Mediasets by given ProjectId
|
378 |
|
379 | ```
|
380 | USAGE
|
381 | $ mappr mediaset:list
|
382 |
|
383 | DESCRIPTION
|
384 | This command returns the list of all Mediaset available for the project that mentioned.
|
385 | For each Mediaset it will print out its ID and Name.
|
386 |
|
387 | Note: This command needs authentication.
|
388 |
|
389 | EXAMPLE
|
390 | $ mappr mediaset:list
|
391 |
|
392 | Mediaset ID Url
|
393 | ────────── ────────────
|
394 | mediaset-1 url
|
395 | mediaset-2 url
|
396 | ```
|
397 |
|
398 | ## `mappr project`
|
399 |
|
400 | Manages your Mappr Projects
|
401 |
|
402 | ```
|
403 | USAGE
|
404 | $ mappr project
|
405 |
|
406 | DESCRIPTION
|
407 | To create a new Project use -> mappr project:create
|
408 | To list all Projects use -> mappr project:list
|
409 | To delete a Project use -> mappr project:delete
|
410 | To define the current project use -> mappr project:select
|
411 | To play around our GraphQL API and check docs visit: https://api.mappr.online/playground
|
412 | ```
|
413 |
|
414 | ## `mappr project:create`
|
415 |
|
416 | Initialise new Mappr project
|
417 |
|
418 | ```
|
419 | USAGE
|
420 | $ mappr project:create
|
421 |
|
422 | OPTIONS
|
423 | -p, --projectName=project-name new project name
|
424 |
|
425 | DESCRIPTION
|
426 | This command will create a new project in your Mappr account with the given name.
|
427 |
|
428 | EXAMPLES
|
429 | $ mappr project:create -p 'My New Project'
|
430 | Initialised. Use this access key to work with your project: new-project-token
|
431 |
|
432 | $ mappr project:create --projectName 'My New Project 2'
|
433 | Initialised. Use this access key to work with your project: new-project-2-token
|
434 |
|
435 | $ mappr project:create
|
436 | > What is your project name? Project 3
|
437 | Initialised. Use this access key to work with your project: new-project-3-token
|
438 | ```
|
439 |
|
440 | ## `mappr project:delete`
|
441 |
|
442 | Delete a project with given ID
|
443 |
|
444 | ```
|
445 | USAGE
|
446 | $ mappr project:delete
|
447 |
|
448 | OPTIONS
|
449 | -p, --projectId=project-id the Project ID to delete
|
450 |
|
451 | DESCRIPTION
|
452 | This command will delete one of your projects with provided project ID.
|
453 |
|
454 | Note: This command needs authentication.
|
455 |
|
456 | EXAMPLES
|
457 | $ mappr project:delete -p project-1-id
|
458 | Deleted the project with ID: project-1-id
|
459 |
|
460 | $ mappr project:delete --projectId project-2-id
|
461 | Deleted the project with ID: project-2-id
|
462 |
|
463 | $ mappr project:delete
|
464 | > What is your project ID? project-3-id
|
465 | Deleted the project with ID: project-3-id
|
466 | ```
|
467 |
|
468 | ## `mappr project:list`
|
469 |
|
470 | List all existing projects
|
471 |
|
472 | ```
|
473 | USAGE
|
474 | $ mappr project:list
|
475 |
|
476 | DESCRIPTION
|
477 | This command returns the list of all projects available for the logged in user.
|
478 | For each project it will print out its ID, Name and Access Token.
|
479 |
|
480 | Note: This command needs authentication.
|
481 |
|
482 | EXAMPLE
|
483 | $ mappr project:list
|
484 |
|
485 | Project ID Project Name Access Token
|
486 | ────────── ──────────── ────────────
|
487 | proj-1 Project 1 proj-1-token
|
488 | proj-2 Project 2 proj-2-token
|
489 | ```
|
490 |
|
491 | ## `mappr project:select`
|
492 |
|
493 | Select a current project to work with.
|
494 |
|
495 | ```
|
496 | USAGE
|
497 | $ mappr project:select
|
498 |
|
499 | DESCRIPTION
|
500 | This command prompts to choose from one of the existing projects in your account which will be set as the current
|
501 | project in the CLI.
|
502 | All other commands that are associated with a project will automatically work with the selected one.
|
503 |
|
504 | Note: This command needs authentication.
|
505 |
|
506 | EXAMPLE
|
507 | $ mappr project:select
|
508 | ```
|
509 |
|
510 | ## `mappr register`
|
511 |
|
512 | Creates a new Mappr account
|
513 |
|
514 | ```
|
515 | USAGE
|
516 | $ mappr register
|
517 |
|
518 | OPTIONS
|
519 | -e, --email=email your email address
|
520 | -n, --name=name your name
|
521 | -p, --password=password your password
|
522 |
|
523 | DESCRIPTION
|
524 | This commands creates a new Mappr user for you with provided credentials.
|
525 | It will also automatically log you into Mappr CLI after successful registration.
|
526 |
|
527 | EXAMPLES
|
528 | $ mappr register -e john@doe.com -p your-password -n 'John Doe'
|
529 | ✔ Done! You are now logged into your Mappr account!
|
530 |
|
531 | $ mappr register --email john@doe.com --password your-password
|
532 | ✔ Done! You are now logged into your Mappr account!
|
533 |
|
534 | $ mappr register
|
535 | > What is your email address? john@doe.com
|
536 | > What is your password? *******
|
537 | > What is your name? Jon Doe
|
538 | ✔ Done! You are now logged into your Mappr account!
|
539 | ```
|
540 |
|
541 | ## `mappr reset`
|
542 |
|
543 | Resets your password
|
544 |
|
545 | ```
|
546 | USAGE
|
547 | $ mappr reset
|
548 |
|
549 | OPTIONS
|
550 | -e, --email=email your email address
|
551 | -i, --id=id your user ID
|
552 | -p, --newPassword=newPassword your password
|
553 |
|
554 | DESCRIPTION
|
555 | This command reseting yourpassword of your Mappr account.
|
556 |
|
557 | Note: This command needs pre-registered Mappr account. Create one with the "mappr register" command.
|
558 |
|
559 | EXAMPLES
|
560 | $ mappr reset -e john@doe.com -p your-new-password
|
561 | then you can do:
|
562 | $ mappr login
|
563 | > What is your email address? john@doe.com
|
564 | > What is your new password? *******
|
565 | ✔ Password reseted! Now you can continue using Mappr CLI!
|
566 | ```
|
567 |
|
568 | ## `mappr tasks`
|
569 |
|
570 | Manages long-running tasks associated with the project.
|
571 |
|
572 | ```
|
573 | USAGE
|
574 | $ mappr tasks
|
575 |
|
576 | DESCRIPTION
|
577 | - mappr tasks:list - list of all tasks associated with the current project
|
578 | and the corresponding information (like task start/end time and status)
|
579 | - mappr tasks:logs - shows logs for a specific task
|
580 | - mappr tasks:remove - removes information about the specified task
|
581 | (only for finished tasks)
|
582 | - mappr tasks:stop - stops the currently running task
|
583 |
|
584 | To play around our GraphQL API and check docs visit: https://api.mappr.online/playground
|
585 | ```
|
586 |
|
587 | ## `mappr tasks:AbstractTaskCommand`
|
588 |
|
589 | ```
|
590 | USAGE
|
591 | $ mappr tasks:AbstractTaskCommand
|
592 | ```
|
593 |
|
594 | ## `mappr tasks:cancel`
|
595 |
|
596 | Removes a selected task
|
597 |
|
598 | ```
|
599 | USAGE
|
600 | $ mappr tasks:cancel
|
601 |
|
602 | DESCRIPTION
|
603 | Removes a selected task
|
604 |
|
605 | EXAMPLE
|
606 | $ mappr tasks:remove
|
607 | ```
|
608 |
|
609 | ## `mappr tasks:list`
|
610 |
|
611 | Gives list of tasks associated with the specified project ID.
|
612 |
|
613 | ```
|
614 | USAGE
|
615 | $ mappr tasks:list
|
616 |
|
617 | DESCRIPTION
|
618 | Gives list of tasks associated with the specified project ID.
|
619 |
|
620 | EXAMPLE
|
621 | $ mappr tasks:list
|
622 | ```
|
623 |
|
624 | ## `mappr tasks:logs`
|
625 |
|
626 | ```
|
627 | USAGE
|
628 | $ mappr tasks:logs
|
629 |
|
630 | DESCRIPTION
|
631 |
|
632 |
|
633 | EXAMPLE
|
634 | $ mappr tasks:list
|
635 | ```
|
636 |
|
637 | ## `mappr tasks:remove`
|
638 |
|
639 | Removes a selected task
|
640 |
|
641 | ```
|
642 | USAGE
|
643 | $ mappr tasks:remove
|
644 |
|
645 | DESCRIPTION
|
646 | Removes a selected task
|
647 |
|
648 | EXAMPLE
|
649 | $ mappr tasks:remove
|
650 | ```
|
651 |
|