UNPKG

13.8 kBMarkdownView Raw
1cli
2===
3
4Mappr 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<!-- toc -->
12* [Usage](#usage)
13* [Commands](#commands)
14<!-- tocstop -->
15# Usage
16<!-- usage -->
17```sh-session
18$ npm install -g @mappr/cli
19$ mappr COMMAND
20running command...
21$ mappr (-v|--version|version)
22@mappr/cli/0.0.2 linux-x64 node-v10.15.3
23$ mappr --help [COMMAND]
24USAGE
25 $ mappr COMMAND
26...
27```
28<!-- usagestop -->
29# Commands
30<!-- commands -->
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
66Manages your Mappr Applications
67
68```
69USAGE
70 $ mappr application
71
72DESCRIPTION
73 To create a new Mappr Application use -> mappr application:create
74```
75
76## `mappr application:create`
77
78Manages your Mappr Applications
79
80```
81USAGE
82 $ mappr application:create
83
84DESCRIPTION
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
90EXAMPLE
91 $ mappr application:create
92```
93
94## `mappr config`
95
96Returns path to the Mappr CLI config file
97
98```
99USAGE
100 $ mappr config
101
102DESCRIPTION
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
108EXAMPLE
109 $ mappr config
110 /Users/systemuser/.mapprrc
111```
112
113## `mappr dataset`
114
115Manages your Mappr Datasets
116
117```
118USAGE
119 $ mappr dataset
120
121DESCRIPTION
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
131Create new Dataset by given name, projectId, and GEO-data.
132
133```
134USAGE
135 $ mappr dataset:create
136
137DESCRIPTION
138 Note: This command needs authentication.
139
140EXAMPLE
141 $ mappr dataset:create
142```
143
144## `mappr dataset:delete`
145
146Delete existing Dataset by given datasetId
147
148```
149USAGE
150 $ mappr dataset:delete
151
152DESCRIPTION
153 This command delete Dataset by ID for the project that mentioned.
154
155 Note: This command needs authentication.
156
157EXAMPLE
158 $ mappr dataset:delete
159```
160
161## `mappr dataset:list`
162
163List all existing Datasets by given ProjectId
164
165```
166USAGE
167 $ mappr dataset:list
168
169DESCRIPTION
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
175EXAMPLE
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
186Displays complete help for Mappr CLI in a structured way
187
188```
189USAGE
190 $ mappr describe
191```
192
193## `mappr help [COMMAND]`
194
195display help for mappr
196
197```
198USAGE
199 $ mappr help [COMMAND]
200
201ARGUMENTS
202 COMMAND command to show help for
203
204OPTIONS
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
212Manages your Mappr Iconsets
213
214```
215USAGE
216 $ mappr iconset
217
218DESCRIPTION
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
228Create new Iconset by given name, projectId, and icons.
229
230```
231USAGE
232 $ mappr iconset:create
233
234DESCRIPTION
235 Note: This command needs authentication.
236
237EXAMPLE
238 $ mappr iconset:create
239```
240
241## `mappr iconset:delete`
242
243Delete existing Iconset by given IconsetId
244
245```
246USAGE
247 $ mappr iconset:delete
248
249DESCRIPTION
250 This command delete Iconset by ID for the project that mentioned.
251
252 Note: This command needs authentication.
253
254EXAMPLE
255 $ mappr iconset:delete
256```
257
258## `mappr iconset:list`
259
260List all existing Iconsets by given ProjectId
261
262```
263USAGE
264 $ mappr iconset:list
265
266DESCRIPTION
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
272EXAMPLE
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
283Logs into your Mappr account
284
285```
286USAGE
287 $ mappr login
288
289OPTIONS
290 -e, --email=email your email address
291 -p, --password=password your password
292
293DESCRIPTION
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
298EXAMPLES
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
313Logs out of your Mappr account
314
315```
316USAGE
317 $ mappr logout
318
319DESCRIPTION
320 This command will log out from Mappr CLI and clear the contents of the .mapprrc file.
321
322EXAMPLE
323 $ mappr logout
324 ✔ Logged out!
325```
326
327## `mappr mediaset`
328
329Manages your Mappr Mediasets
330
331```
332USAGE
333 $ mappr mediaset
334
335DESCRIPTION
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
345Create new Mediaset by given name, projectId, and GDrive url.
346
347```
348USAGE
349 $ mappr mediaset:create
350
351DESCRIPTION
352 Note: This command needs authentication.
353
354EXAMPLE
355 $ mappr mediaset:create
356```
357
358## `mappr mediaset:delete`
359
360Delete existing Mediaset by given mediasetId
361
362```
363USAGE
364 $ mappr mediaset:delete
365
366DESCRIPTION
367 This command delete Mediaset by ID for the project that mentioned.
368
369 Note: This command needs authentication.
370
371EXAMPLE
372 $ mappr mediaset:delete
373```
374
375## `mappr mediaset:list`
376
377List all existing Mediasets by given ProjectId
378
379```
380USAGE
381 $ mappr mediaset:list
382
383DESCRIPTION
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
389EXAMPLE
390 $ mappr mediaset:list
391
392 Mediaset ID Url
393 ────────── ────────────
394 mediaset-1 url
395 mediaset-2 url
396```
397
398## `mappr project`
399
400Manages your Mappr Projects
401
402```
403USAGE
404 $ mappr project
405
406DESCRIPTION
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
416Initialise new Mappr project
417
418```
419USAGE
420 $ mappr project:create
421
422OPTIONS
423 -p, --projectName=project-name new project name
424
425DESCRIPTION
426 This command will create a new project in your Mappr account with the given name.
427
428EXAMPLES
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
442Delete a project with given ID
443
444```
445USAGE
446 $ mappr project:delete
447
448OPTIONS
449 -p, --projectId=project-id the Project ID to delete
450
451DESCRIPTION
452 This command will delete one of your projects with provided project ID.
453
454 Note: This command needs authentication.
455
456EXAMPLES
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
470List all existing projects
471
472```
473USAGE
474 $ mappr project:list
475
476DESCRIPTION
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
482EXAMPLE
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
493Select a current project to work with.
494
495```
496USAGE
497 $ mappr project:select
498
499DESCRIPTION
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
506EXAMPLE
507 $ mappr project:select
508```
509
510## `mappr register`
511
512Creates a new Mappr account
513
514```
515USAGE
516 $ mappr register
517
518OPTIONS
519 -e, --email=email your email address
520 -n, --name=name your name
521 -p, --password=password your password
522
523DESCRIPTION
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
527EXAMPLES
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
543Resets your password
544
545```
546USAGE
547 $ mappr reset
548
549OPTIONS
550 -e, --email=email your email address
551 -i, --id=id your user ID
552 -p, --newPassword=newPassword your password
553
554DESCRIPTION
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
559EXAMPLES
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
570Manages long-running tasks associated with the project.
571
572```
573USAGE
574 $ mappr tasks
575
576DESCRIPTION
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```
590USAGE
591 $ mappr tasks:AbstractTaskCommand
592```
593
594## `mappr tasks:cancel`
595
596Removes a selected task
597
598```
599USAGE
600 $ mappr tasks:cancel
601
602DESCRIPTION
603 Removes a selected task
604
605EXAMPLE
606 $ mappr tasks:remove
607```
608
609## `mappr tasks:list`
610
611Gives list of tasks associated with the specified project ID.
612
613```
614USAGE
615 $ mappr tasks:list
616
617DESCRIPTION
618 Gives list of tasks associated with the specified project ID.
619
620EXAMPLE
621 $ mappr tasks:list
622```
623
624## `mappr tasks:logs`
625
626```
627USAGE
628 $ mappr tasks:logs
629
630DESCRIPTION
631
632
633EXAMPLE
634 $ mappr tasks:list
635```
636
637## `mappr tasks:remove`
638
639Removes a selected task
640
641```
642USAGE
643 $ mappr tasks:remove
644
645DESCRIPTION
646 Removes a selected task
647
648EXAMPLE
649 $ mappr tasks:remove
650```
651<!-- commandsstop -->