-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathbit.ts
2571 lines (2560 loc) · 88.7 KB
/
bit.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const completionSpec: Fig.Spec = {
name: "bit",
description: "Bit documentation: https://bit.dev/docs",
subcommands: [
// Start a working area
// { name: "init", description: "Create or reinitialize an empty workspace" },
{
name: "init",
description: "Create or reinitialize an empty workspace",
args: { description: "Path" },
options: [
{
name: ["--bare", "-b"],
args: { description: "Initialize an empty bit bare scope" },
},
{
name: ["--shared", "-s"],
args: { description: "Add group write permissions to a scope" },
},
{
name: "--standalone",
description: "Do not nest component store within .git",
},
{
name: ["--reset", "-r"],
description: "Write missing or damaged Bit files",
},
{
name: "--reset-new",
description: "Reset .bitmap file as if components were newly added",
},
{
name: "--reset-lane-new",
description: "Reset only components belonging to lanes",
},
{
name: "--reset-hard",
description: "Delete all Bit files and directories",
},
{ name: "--reset-scope", description: "Removes local scope" },
{
name: ["--default-directory", "-d"],
args: { description: "Set the default directory pattern" },
},
{
name: "--default-scope",
args: { description: "Set the default scope for components" },
},
{
name: ["--package-manager", "-p"],
args: { description: "Set the package manager to be used" },
},
{
name: "--force",
description:
"Force workspace initialization without clearing local objects",
},
{
name: "--harmony",
description: "DEPRECATED: Harmony is the default now",
},
{
name: ["--interactive", "-I"],
description: "Start an interactive process",
},
],
},
// { name: "new", description: "Create a new workspace from a template" },
{
name: "new",
description: "Create a new workspace from a template",
args: [
{ description: "The name of the workspace template" },
{
description: "The name for the new workspace and workspace directory",
},
],
options: [
{
name: ["--aspect", "-a"],
description: "ID of the aspect that registered the template",
},
{
name: ["--template", "-t"],
description: "Env-ID of the template's owner. Alias for --env",
},
{ name: "--env", description: "Env-ID of the template. Alias for -t" },
{
name: ["--default-scope", "-d"],
description:
"Set defaultScope in the new workspace's workspace.jsonc",
},
{
name: "--skip-git",
description: "Skip generation of Git repository in the new workspace",
},
{
name: "--empty",
description: "Skip template's default component creation",
},
{
name: "--load-from",
description: "Local path to the workspace containing the template",
},
],
},
// Workspace commands
// { name: "config", description: "Global config management" },
{
name: "config",
description: "Global config management",
subcommands: [
{
name: "set",
description: "Set a global configuration",
args: [
{ description: "Configuration key" },
{ description: "Configuration value" },
],
},
{
name: "del",
description: "Delete given key from global configuration",
args: { description: "Configuration key" },
},
{
name: "get",
description: "Get a value from global configuration",
args: { description: "Configuration key" },
},
{
name: "list",
description: "List all configuration(s)",
},
],
},
// { name: "scope-config", description: "Scope config management" },
{
name: "scope-config",
description: "Scope config management\n\nbit scope-config",
subcommands: [
{
name: "set",
description:
"Set a scope configuration.\n\nUsage: scope-config set <key> <val>",
args: [
{ description: "Configuration key to set" },
{ description: "Value for the configuration key" },
],
},
{
name: "del",
description:
"Delete given key from global configuration.\n\nUsage: scope-config del <key>",
args: { description: "Configuration key to delete" },
},
{
name: "get",
description:
"Get a scope configuration.\n\nUsage: scope-config get <key>",
args: { description: "Configuration key to retrieve" },
},
{
name: "list",
description:
"List all scope configuration(s).\n\nUsage: scope-config list",
},
],
},
// { name: "login", description: "Log in to Bit cloud" },
{
name: "login",
description: "Log in to Bit cloud",
options: [
{
name: "--cloud-domain",
description: "Login cloud domain (default bit.cloud)",
},
{
name: ["--port", "-p"],
description: "Port number to open for localhost server",
},
{
name: "--suppress-browser-launch",
description: "Do not open a browser for authentication",
},
{
name: "--npmrc-path",
description: "Path to npmrc file to configure bit.cloud registry",
},
{
name: "--skip-registry-config",
description: "Don't configure bit.cloud registry",
},
{
name: "--machine-name",
description: "Specify machine-name to pair with the token",
},
],
},
{ name: "logout", description: "Log the CLI out of Bit" },
// { name: "doctor", description: "Diagnose a bit workspace" },
{
name: "doctor",
description: "Diagnose a bit workspace",
args: { description: "Diagnosis name" },
options: [
{
name: ["--json", "-j"],
description: "Return diagnoses in json format",
},
{ name: "--list", description: "List all available diagnoses" },
{
name: ["--save", "-s"],
args: {
name: "filePath",
description: "Path to save diagnoses to a file",
},
},
{
name: ["--archive", "-a"],
args: {
name: "filePath",
description:
"Path to archive the workspace including diagnosis info",
},
},
],
},
// { name: "completion", description: "Enable bash/zsh-completion shortcuts for commands and options" },
{
name: "completion",
description:
"Enable bash/zsh-completion shortcuts for commands and options",
},
// { name: "cli", description: "EXPERIMENTAL. Enters bit cli program and generates commands list" },
{
name: "cli",
description:
"EXPERIMENTAL: Enters bit cli program and generates commands list",
subcommands: [
{
name: "generate",
description: "Generate an .md file with all commands details",
options: [
{
name: "--metadata",
description:
"Metadata/front-matter to place at the top of the .md file",
},
{
name: "--docs",
description: "Generate the cli-reference.docs.mdx file",
},
{
name: ["--json", "-j"],
description: "Output the commands info as JSON",
},
],
},
],
},
// { name: "help", description: "Shows help" },
{
name: ["help", "$0"],
description: "Shows help",
options: [{ name: "--internal", description: "Show internal commands" }],
},
// { name: "clear-cache", description: "Clears Bit's cache from current working machine" },
{
name: ["clear-cache", "cc"],
description: "Clears Bit's cache from current working machine",
options: [
{
name: ["--remote", "-r"],
description: "Clear memory cache from a remote scope",
},
],
},
// Collaborate on components
// { name: "remote", description: "Manage set of tracked bit scope(s)" },
{
name: "remote",
description: "Manage set of tracked bit scope(s)",
subcommands: [
{
name: "add",
description: "Add a bare-scope as a remote, usage: remote add <url>",
args: { description: "URL of the remote scope" },
options: [
{
name: ["--global", "-g"],
description: "Configure a remote bit scope",
},
],
},
{
name: "del",
description: "Remove a tracked bit remote: usage: remote del <name>",
args: { description: "Name of the remote to remove" },
options: [
{
name: ["--global", "-g"],
description: "Remove a globally configured remote scope",
},
],
},
],
},
// { name: "remove", description: "Remove component(s) from the workspace, or a remote scope" },
{
name: ["remove", "rm"],
description: "Remove component(s) from the local workspace",
args: { description: "Component name, ID, or pattern" },
options: [
{
name: ["--track", "-t"],
description: "Keep tracking component in .bitmap",
},
{ name: "--keep-files", description: "Keep component files" },
{
name: ["--force", "-f"],
description: "Removes the component even if used as a dependency",
},
{ name: ["--silent", "-s"], description: "Skip confirmation" },
],
},
// { name: "import", description: "Import components from their remote scopes to the local workspace" },
{
name: "import",
description:
"Import components from their remote scopes to the local workspace",
args: { description: "Component IDs or component patterns" },
options: [
{
name: ["--path", "-p"],
args: { description: "Import components into a specific directory" },
},
{
name: "--objects",
description: "Import components objects without checkout",
},
{ name: ["--override", "-O"], description: "Override local changes" },
{
name: ["--verbose", "-v"],
description: "Show verbose output for inspection",
},
{ name: ["--json", "-j"], description: "Return the output as JSON" },
{
name: "--skip-dependency-installation",
description: "Do not auto-install dependencies",
},
{
name: "--merge",
args: { description: "Merge local changes with imported version" },
},
{
name: "--dependencies",
description: "Import all dependencies of imported components",
},
{
name: "--dependents",
description:
"Import components found while traversing from imported components",
},
{
name: "--save-in-lane",
description: "Save in the lane when checked out to a lane",
},
{
name: "--all-history",
description: "Fetch all history versions, always",
},
{
name: "--fetch-deps",
description:
"Fetch dependencies objects without adding to the workspace",
},
{
name: "--track-only",
description: "Create bitmap entries without writing component files",
},
{
name: "--include-deprecated",
description:
"Include deprecated components when importing with patterns",
},
],
},
{ name: "pack", description: "Create tar for npm publish" },
// { name: "deprecate", description: "Deprecate a component" },
{
name: ["deprecate", "d"],
description: "Deprecate a component",
args: { description: "Component name or component id" },
options: [
{
name: "--new-id",
description:
"If replaced by another component, enter the new component id",
},
],
},
// { name: "undeprecate", description: "Undeprecate a deprecated component (local/remote)" },
{
name: "undeprecate",
description:
"Undeprecate a deprecated component (local/remote).\n\nbit undeprecate <id>",
},
// { name: "rename", description: "EXPERIMENTAL. Rename component. If tagged/exported, create a new component and deprecate the original component" },
{
name: "rename",
description: "Rename a component",
args: [
{ description: "The current component name" },
{ description: "The new component name" },
],
options: [
{
name: ["--scope", "-s"],
description: "Define the scope for the newly created component",
},
{
name: ["--path", "-p"],
description:
"Relative path in the workspace to place new component in",
},
{
name: ["--refactor", "-r"],
description:
"Update the import/require statements in all dependent components",
},
{
name: "--preserve",
description:
"Avoid renaming files and variables according to the new component name",
},
{
name: "--ast",
description:
"EXPERIMENTAL. Use AST to transform files instead of regex",
},
],
},
// { name: "fork", description: "EXPERIMENTAL. Create a new component out of an existing one (copies source files and config)" },
{
name: "fork",
description:
"Create a new component forked from an existing one (copies source files and configs)",
args: [
{ description: "Component id of the source component" },
{ description: "Name for the new component" },
],
options: [
{
name: ["--scope", "-s"],
args: { description: "Default scope for the new component" },
},
{
name: ["--path", "-p"],
args: {
description: "Relative path in the workspace for the new component",
},
},
{
name: ["--refactor", "-r"],
description:
"Update the import/require statements in all dependent components",
},
{
name: "--skip-dependency-installation",
description: "Do not install packages of the imported components",
},
{
name: "--env",
args: { description: "Set the environment for the new component" },
},
{
name: "--skip-config",
description: "Do not copy the config to the new component",
},
{
name: "--preserve",
description:
"Avoid refactoring file and variable/class names according to the new component name",
},
{
name: "--no-link",
description: "Avoid saving a reference to the original component",
},
{
name: "--ast",
description: "Use ast to transform files instead of regex",
},
],
},
// { name: "export", description: "Export components from the workspace to remote scopes" },
{
name: ["export", "e"],
description: "Export components from the workspace to remote scopes",
args: { description: "Component patterns" },
options: [
{
name: ["--eject", "-e"],
description:
"Remove component from the workspace and install it as a regular npm package",
},
{
name: "--all",
description: "Export all components, including non-staged",
},
{
name: "--all-versions",
description: "Export not only staged versions but all of them",
},
{
name: "--origin-directly",
description:
"Avoid export to the central hub, export directly to the original scopes",
},
{
name: "--resume",
args: {
name: "string",
description: "Resume export using an export-id",
},
},
{
name: "--ignore-missing-artifacts",
description: "Don't throw an error when artifact files are missing",
},
{
name: "--fork-lane-new-scope",
description:
"Allow exporting a forked lane into a different scope than the original scope",
},
{ name: ["--json", "-j"], description: "Show output in json format" },
],
},
// View components
// { name: "dependents", description: "EXPERIMENTAL. Show dependents of the given component" },
{
name: "dependents",
description: "Show dependents of the given component",
args: { description: "Component name" },
},
// { name: "show", description: "Display the component's essential information" },
{
name: "show",
description:
"Display the component's essential information\n\nbit show <component-name>",
args: { description: "Component name or component ID" },
options: [
{
name: ["--json", "-j"],
description: "Return the component data in JSON format",
},
{ name: "--legacy", description: "Use the legacy bit show" },
{
name: ["--remote", "-r"],
description: "Show data for a remote component",
},
{
name: ["--compare", "-c"],
description:
"Legacy-only. Compare current file system component to its latest tagged version",
},
],
},
// { name: "dependencies", description: "Manage dependencies" },
{
name: ["deps", "dependencies"],
description: "Manage dependencies",
subcommands: [
{
name: "get",
description:
"Show direct and indirect dependencies of the given component",
args: { description: "Component name or component id" },
options: [
{
name: ["--tree", "-t"],
description:
"EXPERIMENTAL: Render dependencies as a tree, similar to 'npm ls'",
},
],
},
{
name: "remove",
description: "Remove a dependency to component(s)",
args: [
{
description: "Component name, component id, or component pattern",
},
{ description: "Package name with or without a version" },
],
options: [
{
name: ["--dev", "-d"],
description: "Remove from devDependencies",
},
{
name: ["--peer", "-p"],
description: "Remove from peerDependencies",
},
],
},
{
name: "unset",
description:
"Unset a dependency to component(s) that was previously set by 'bit deps set'",
args: [
{
description: "Component name, component id, or component pattern",
},
{ description: "Package name with or without a version" },
],
options: [
{
name: ["--dev", "-d"],
description: "Unset from devDependencies",
},
{
name: ["--peer", "-p"],
description: "Unset from peerDependencies",
},
],
},
{
name: "debug",
description:
"Show the immediate dependencies and how their versions were determined",
args: { description: "Component name or component id" },
},
{
name: "set",
description: "Set a dependency to component(s)",
args: [
{
description: "Component name, component id, or component pattern",
},
{ description: "Package name with or without a version" },
],
options: [
{
name: ["--dev", "-d"],
description: "Add to the devDependencies",
},
{
name: ["--peer", "-p"],
description: "Add to the peerDependencies",
},
],
},
{
name: "reset",
description:
"Reset dependencies to the default values (revert any previously 'bit deps set')",
args: {
description: "Component name, component id, or component pattern",
},
},
{
name: "eject",
description:
"Write dependencies that were previously set via 'bit deps set' into .bitmap",
args: {
description: "Component name, component id, or component pattern",
},
},
{
name: "blame",
description:
"EXPERIMENTAL: Find out which snap/tag changed a dependency version",
args: [
{ description: "Component name" },
{ description: "Dependency name, package-name or component-id" },
],
},
{
name: "usage",
description:
"EXPERIMENTAL: Find components that use the specified dependency",
args: {
description:
"Package name, component-id or package-name, optionally with version",
},
},
],
},
// { name: "log", description: "Show components(s) version history" },
{
name: "log",
description: "Show components(s) version history",
args: { description: "Component-id or component-name to show logs for" },
options: [
{
name: ["--remote", "-r"],
description: "Show log of a remote component",
},
{ name: "--parents", description: "Show parents and lanes data" },
{
name: ["--one-line", "-o"],
description: "Show each log entry in one line",
},
{ name: ["--json", "-j"], description: "JSON format" },
],
},
// Develop components
//{ name: "add", description: "Add any subset of files to be tracked as a component(s)" },
{
name: "add",
description: "Add any subset of files to be tracked as a component(s)",
options: [
{ name: ["--id", "-i"], description: "Manually set component id" },
{ name: ["--main", "-m"], description: "Define component entry point" },
{
name: ["--namespace", "-n"],
description: "Organize component in a namespace",
},
{
name: ["--override", "-o"],
description:
"Override existing component if exists (default = false)",
},
{
name: ["--scope", "-s"],
description:
"Sets the component's scope. If not entered, the default-scope from workspace.jsonc will be used",
},
{
name: ["--env", "-e"],
description:
"Set the component's environment. (overrides the env from variants if exists)",
},
{ name: ["--json", "-j"], description: "Output as json format" },
],
},
// { name: "move", description: "Move a component to a different filesystem path" },
{
name: ["move", "mv"],
description: "Move a component to a different filesystem path",
args: [
{ description: "The component's current directory" },
{ description: "The new directory to move the component's files to" },
],
},
// { name: "diff", description: "Show the diff between the components' source files and config" },
{
name: "diff",
description:
"Show the diff between the components' current source files and config, and their latest snapshot or tag",
args: {
description:
"Values for comparison, component IDs, versions or patterns",
},
options: [
{
name: ["--verbose", "-v"],
description: "Show a more verbose output where possible",
},
{
name: ["--table", "-t"],
description:
"Show tables instead of plain text for dependencies diff",
},
],
},
// { name: "envs", description: "List all components maintained by the workspace and their corresponding envs" },
{
name: ["envs", "env"],
description:
"List all components maintained by the workspace and their corresponding envs",
subcommands: [
{
name: "list",
description: "List all envs currently used in the workspace",
},
{
name: "get",
description: "Show config information from a component's env",
args: {
description:
"Component name or component id of the component whose env you'd like to inspect",
},
options: [
{
name: "--services",
args: {
name: "string",
description:
"Show information about the specific services only",
},
},
],
},
{
name: "set",
description:
"Assigns one or more components a development environment (env)",
args: [
{ description: "Component pattern" },
{ description: "The env's component id" },
],
},
{
name: "unset",
description: "Un-sets an env from components",
args: { description: "Component pattern" },
},
{
name: "replace",
description:
"Replace an existing env with another env for all components using the old env",
args: [
{ description: "Current environment id" },
{ description: "New environment id" },
],
},
{
name: "update",
description:
"Update a version of an env for all components using that env",
args: [
{ description: "Environment id" },
{ description: "Component pattern" },
],
},
],
},
// { name: "start", description: "Run the ui/development server" },
{
name: ["start", "c"],
description:
"Run the UI/development server\n\nbit start [component-pattern]",
args: {
description:
'Component name, component ID, or component pattern. Use component pattern to select multiple components. Use comma to separate patterns and "!" to exclude. E.g. "ui/**, !ui/button". Wrap the pattern with quotes',
},
options: [
{ name: ["--dev", "-d"], description: "Start UI server in dev mode" },
{ name: ["--port", "-p"], description: "Port of the UI server" },
{
name: ["--rebuild", "-r"],
description:
"Rebuild the UI (useful e.g. when updating the workspace UI - can use the dev flag for HMR in this case)",
},
{ name: "--skip-ui-build", description: "Skip building UI" },
{
name: "--verbose",
description:
"Show verbose output for inspection and prints stack trace",
},
{
name: ["--no-browser", "-n"],
description: "Do not automatically open browser when ready",
},
{
name: "--skip-compilation",
description:
"Skip the auto-compilation before starting the web-server",
},
{
name: "--ui-root-name",
description:
'Name of the UI root to use, e.g. "teambit.scope/scope" or "teambit.workspace/workspace"',
},
],
},
{ name: "ui-build", description: "Build production assets for deployment" },
// { name: "checkout", description: "Switch between component versions or remove local changes" },
{
name: ["checkout", "U"],
description: "Switch between component versions or remove local changes",
args: [
{
description:
"Permitted values: [head, latest, reset, specific-version]",
},
{ description: "Component name, component id, or component pattern" },
],
options: [
{
name: "--interactive-merge",
description:
"Display options to resolve conflicts when found during merge",
},
{ name: "--ours", description: "DEPRECATED" },
{ name: "--theirs", description: "DEPRECATED" },
{ name: "--manual", description: "DEPRECATED" },
{
name: "--auto-merge-resolve",
description:
"Resolve merge conflicts according to the provided strategy: [ours, theirs, manual]",
},
{
name: ["--reset", "-r"],
description: "Revert changes that were not snapped/tagged",
},
{ name: ["--all", "-a"], description: "All components" },
{
name: "--workspace-only",
description: "Only relevant for 'bit checkout head' when on a lane",
},
{
name: ["--verbose", "-v"],
description: "Verbose output for inspection",
},
{
name: "--skip-dependency-installation",
description:
"Do not auto-install dependencies of the imported components",
},
],
},
// { name: "install", description: "Installs workspace dependencies" },
{
name: ["install", "in"],
description: "Installs workspace dependencies",
args: { description: "A list of packages to install" },
options: [
{
name: "--type",
args: { description: "'runtime' (default) or 'peer'" },
},
{
name: ["--update", "-u"],
description: "Update all dependencies to the latest version",
},
{
name: "--update-existing",
description:
"DEPRECATED: Update existing dependencies version and types",
},
{
name: "--save-prefix",
args: { description: "Set the prefix to use when adding dependency" },
},
{
name: "--skip-dedupe",
description: "Do not dedupe dependencies on installation",
},
{
name: "--skip-import",
description: "Do not import bit objects post installation",
},
{ name: "--skip-compile", description: "Do not compile components" },
{
name: "--add-missing-deps",
description: "Install all missing dependencies",
},
{
name: "--add-missing-peers",
description: "Install all missing peer dependencies",
},
{
name: "--recurring-install",
description: "Automatically run install again if there are old envs",
},
{
name: "--no-optional",
description: "Do not install optional dependencies (pnpm only)",
},
],
},
// { name: "uninstall", description: "Uninstall dependencies" },
{
name: ["uninstall", "un"],
description: "Uninstall dependencies.\n\nbit uninstall [packages...]",
},
// { name: "update", description: "Update dependencies" },
{
name: ["update", "up"],
description: "Update dependencies.\n\nbit update [package-patterns...]",
args: {
description:
'A string list of package names, or patterns (separated by space), e.g. "@teambit/ @my-org/ui/". The patterns should be in glob format. By default, all packages are selected',
},
options: [
{
name: ["--yes", "-y"],
description:
"Automatically update all outdated versions for packages specified in pattern (all if no pattern supplied) - use carefully as could result in breaking updates for dependencies",
},
{
name: "--patch",
description:
"Update to the latest patch version. Semver rules are ignored",
},
{
name: "--minor",
description:
"Update to the latest minor version. Semver rules are ignored",
},
{
name: "--major",
description: