@teambit/harmony.content.cli-reference 1.95.116 → 1.95.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1577,6 +1577,11 @@
1577
1577
  "",
1578
1578
  "add-missing-peers [addMissingPeers]",
1579
1579
  "install all missing peer dependencies"
1580
+ ],
1581
+ [
1582
+ "",
1583
+ "no-optional [noOptional]",
1584
+ "do not install optional dependencies (works with pnpm only)"
1580
1585
  ]
1581
1586
  ],
1582
1587
  "description": "installs workspace dependencies",
@@ -2831,7 +2836,7 @@
2831
2836
  ]
2832
2837
  ],
2833
2838
  "description": "merge a local or a remote lane",
2834
- "extendedDescription": "if the <lane> exists locally, it will be merged from the local lane.\notherwise, it will fetch the lane from the remote and merge it.\nin case the <lane> exists locally but you want to merge the remote version of it, use --remote flag.\nwhen the current and the other lanes are diverged in history and the files could be merged with no conflicts,\nit will snap-merge these components to complete the merge. use \"no-snap\" to opt-out, or \"tag\" to tag instead",
2839
+ "extendedDescription": "by default, the provided lane will be fetched from the remote before merging.\nto merge the lane from the local scope without updating it first, use \"--skip-fetch\" flag.\n\nwhen the current and the other lanes are diverged in history and the files could be merged with no conflicts,\nit will snap-merge these components to complete the merge. use \"no-snap\" to opt-out, or \"tag\" to tag instead",
2835
2840
  "private": true,
2836
2841
  "remoteOp": true,
2837
2842
  "arguments": [
@@ -2993,6 +2998,36 @@
2993
2998
  }
2994
2999
  ]
2995
3000
  },
3001
+ {
3002
+ "name": "unset <component-pattern> <package...>",
3003
+ "alias": "",
3004
+ "options": [
3005
+ [
3006
+ "d",
3007
+ "dev",
3008
+ "unset from devDependencies"
3009
+ ],
3010
+ [
3011
+ "p",
3012
+ "peer",
3013
+ "unset from peerDependencies"
3014
+ ]
3015
+ ],
3016
+ "description": "unset a dependency to component(s) that was previously set by \"bit deps set\"",
3017
+ "extendedDescription": "",
3018
+ "group": "info",
3019
+ "private": false,
3020
+ "arguments": [
3021
+ {
3022
+ "name": "component-pattern",
3023
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
3024
+ },
3025
+ {
3026
+ "name": "package...",
3027
+ "description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version"
3028
+ }
3029
+ ]
3030
+ },
2996
3031
  {
2997
3032
  "name": "debug <component-name>",
2998
3033
  "alias": "",
package/cli-reference.mdx CHANGED
@@ -1,11 +1,26 @@
1
1
  # CLI Reference
2
2
 
3
- Commands that are marked as workspace only must be executed inside a workspace. Commands that are marked as not workspace only, can be executed from anywhere and will run on a remote server.
3
+ Run the following to list all available Bit commands (alternatively, use the `-h` alias, instead of `--help`):
4
+
5
+ ```sh
6
+ bit --help
7
+ ```
8
+
9
+ Run the following to get help on a specific command:
10
+
11
+ ```sh
12
+ bit COMMAND --help
13
+ ```
14
+
15
+ Run the following to get help on a specific sub-command:
16
+
17
+ ```sh
18
+ bit COMMAND SUB_COMMAND --help
19
+ ```
4
20
 
5
21
  ## add
6
22
 
7
23
  **Alias**: `a`
8
- **Workspace only**: yes
9
24
  **Description**: Add any subset of files to be tracked as a component(s).
10
25
  Learn the recommended workflow for tracking directories as components, in the link below.
11
26
 
@@ -23,7 +38,6 @@ Learn the recommended workflow for tracking directories as components, in the li
23
38
 
24
39
  ## app
25
40
 
26
- **Workspace only**: yes
27
41
  **Description**: Manages apps
28
42
 
29
43
  `bit app <sub-command>`
@@ -55,7 +69,6 @@ Learn the recommended workflow for tracking directories as components, in the li
55
69
 
56
70
  ## artifacts
57
71
 
58
- **Workspace only**: yes
59
72
  **Description**: list and download components artifacts
60
73
  artifacts are created on isolated capsules during tag or snap commands.
61
74
  example of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester
@@ -74,7 +87,6 @@ and a package.tgz file generated by pkg aspect.
74
87
 
75
88
  ## aspect
76
89
 
77
- **Workspace only**: yes
78
90
  **Description**: EXPERIMENTAL. manage aspects
79
91
 
80
92
  `bit aspect <sub-command>`
@@ -126,7 +138,6 @@ and a package.tgz file generated by pkg aspect.
126
138
 
127
139
  ## build
128
140
 
129
- **Workspace only**: yes
130
141
  **Description**: run set of tasks for build
131
142
 
132
143
  `bit build [component-pattern]`
@@ -147,7 +158,6 @@ and a package.tgz file generated by pkg aspect.
147
158
 
148
159
  ## capsule
149
160
 
150
- **Workspace only**: yes
151
161
  **Description**: manage capsules
152
162
  a capsule is a directory containing the component code, isolated from the workspace.
153
163
  normally, capsules are created during the build process, the component files are copied and the packages are installed
@@ -199,7 +209,6 @@ with no args, only workspace's capsules are deleted
199
209
 
200
210
  ## check-types
201
211
 
202
- **Workspace only**: yes
203
212
  **Description**: check typescript types
204
213
 
205
214
  `bit check-types [component-pattern]`
@@ -214,7 +223,6 @@ with no args, only workspace's capsules are deleted
214
223
  ## checkout
215
224
 
216
225
  **Alias**: `U`
217
- **Workspace only**: yes
218
226
  **Description**: switch between component versions or remove local changes
219
227
 
220
228
  `bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version
@@ -243,7 +251,6 @@ with no args, only workspace's capsules are deleted
243
251
  ## clear-cache
244
252
 
245
253
  **Alias**: `cc`
246
- **Workspace only**: no
247
254
  **Description**: clears Bit's cache from current working machine
248
255
  The following gets removed by this command:
249
256
 
@@ -261,7 +268,6 @@ The following gets removed by this command:
261
268
 
262
269
  ## cli
263
270
 
264
- **Workspace only**: yes
265
271
  **Description**: EXPERIMENTAL. enters bit cli program and generates commands list
266
272
 
267
273
  `bit cli`
@@ -281,7 +287,6 @@ The following gets removed by this command:
281
287
 
282
288
  ## compile
283
289
 
284
- **Workspace only**: yes
285
290
  **Description**: compile components in the workspace
286
291
 
287
292
  `bit compile [component-names...]`
@@ -297,7 +302,6 @@ The following gets removed by this command:
297
302
 
298
303
  ## completion
299
304
 
300
- **Workspace only**: yes
301
305
  **Description**: enable bash/zsh-completion shortcuts for commands and options
302
306
 
303
307
  `bit completion`
@@ -306,7 +310,6 @@ The following gets removed by this command:
306
310
 
307
311
  ## config
308
312
 
309
- **Workspace only**: yes
310
313
  **Description**: global config management
311
314
  https://bit.dev/docs/config/bit-config
312
315
 
@@ -340,7 +343,6 @@ https://bit.dev/docs/config/bit-config
340
343
 
341
344
  ## create
342
345
 
343
- **Workspace only**: yes
344
346
  **Description**: create a new component (source files and config) using a template.
345
347
 
346
348
  `bit create <template-name> <component-names...>`
@@ -357,7 +359,6 @@ https://bit.dev/docs/config/bit-config
357
359
 
358
360
  ## dependents
359
361
 
360
- **Workspace only**: yes
361
362
  **Description**: EXPERIMENTAL. show dependents of the given component
362
363
 
363
364
  `bit dependents <component-name>`
@@ -367,7 +368,6 @@ https://bit.dev/docs/config/bit-config
367
368
  ## deprecate
368
369
 
369
370
  **Alias**: `d`
370
- **Workspace only**: no
371
371
  **Description**: deprecate a component
372
372
 
373
373
  `bit deprecate <component-name>`
@@ -381,7 +381,6 @@ https://bit.dev/docs/config/bit-config
381
381
  ## deps
382
382
 
383
383
  **Alias**: `dependencies`
384
- **Workspace only**: yes
385
384
  **Description**: manage dependencies
386
385
 
387
386
  `bit deps <sub-command>`
@@ -407,6 +406,17 @@ https://bit.dev/docs/config/bit-config
407
406
  | `--dev` | `-d` | remove from devDependencies |
408
407
  | `--peer` | `-p` | remove from peerDependencies |
409
408
 
409
+ ### deps unset
410
+
411
+ **Usage**: `deps unset <component-pattern> <package...>`
412
+
413
+ **Description**: unset a dependency to component(s) that was previously set by "bit deps set"
414
+
415
+ | **Option** | **Option alias** | **Description** |
416
+ | ---------- | :--------------: | --------------------------- |
417
+ | `--dev` | `-d` | unset from devDependencies |
418
+ | `--peer` | `-p` | unset from peerDependencies |
419
+
410
420
  ### deps debug
411
421
 
412
422
  **Usage**: `deps debug <component-name>`
@@ -446,7 +456,6 @@ https://bit.dev/docs/config/bit-config
446
456
 
447
457
  ## diff
448
458
 
449
- **Workspace only**: yes
450
459
  **Description**: show the diff between the components' source files and config
451
460
  bit diff => compare all modified components to their model version
452
461
  bit diff [ids...] => compare the specified components against their modified states
@@ -465,7 +474,6 @@ bit diff => compare all modified components to their model version
465
474
 
466
475
  ## doctor
467
476
 
468
- **Workspace only**: yes
469
477
  **Description**: diagnose a bit workspace
470
478
 
471
479
  `bit doctor [diagnosis-name]`
@@ -481,7 +489,6 @@ bit diff => compare all modified components to their model version
481
489
  ## eject
482
490
 
483
491
  **Alias**: `E`
484
- **Workspace only**: yes
485
492
  **Description**: replace components maintained in the workspace with their corresponding packages
486
493
 
487
494
  `bit eject <component-pattern>`
@@ -496,7 +503,6 @@ bit diff => compare all modified components to their model version
496
503
 
497
504
  ## eject-conf
498
505
 
499
- **Workspace only**: yes
500
506
  **Description**: eject components configuration (create a `component.json` file)
501
507
  you can use a `<pattern>` for multiple component ids, such as `bit eject-conf "org.scope/utils/**"`.
502
508
  use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
@@ -515,7 +521,6 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
515
521
  ## envs
516
522
 
517
523
  **Alias**: `env`
518
- **Workspace only**: yes
519
524
  **Description**: list all components maintained by the workspace and their corresponding envs
520
525
 
521
526
  `bit envs`
@@ -572,7 +577,6 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
572
577
  ## export
573
578
 
574
579
  **Alias**: `e`
575
- **Workspace only**: yes
576
580
  **Description**: export components from the workspace to remote scopes
577
581
  bit export => export all staged components to their current scope, if checked out to a lane, export the lane as well
578
582
  `bit export [id...]` => export the given ids to their current scope
@@ -594,7 +598,6 @@ bit export => export all staged components to their current scope, if checked ou
594
598
 
595
599
  ## fork
596
600
 
597
- **Workspace only**: no
598
601
  **Description**: EXPERIMENTAL. create a new component out of an existing one (copies source files and config)
599
602
 
600
603
  `bit fork <source-component-id> [target-component-name]`
@@ -612,7 +615,6 @@ bit export => export all staged components to their current scope, if checked ou
612
615
 
613
616
  ## format
614
617
 
615
- **Workspace only**: yes
616
618
  **Description**: format components in the development workspace
617
619
 
618
620
  `bit format [component...]`
@@ -627,7 +629,6 @@ bit export => export all staged components to their current scope, if checked ou
627
629
 
628
630
  ## globals
629
631
 
630
- **Workspace only**: yes
631
632
  **Description**: list all globals
632
633
 
633
634
  `bit globals`
@@ -640,7 +641,6 @@ bit export => export all staged components to their current scope, if checked ou
640
641
 
641
642
  ## graph
642
643
 
643
- **Workspace only**: yes
644
644
  **Description**: EXPERIMENTAL. generate an image file with the dependencies graph
645
645
 
646
646
  `bit graph [id]`
@@ -658,7 +658,6 @@ bit export => export all staged components to their current scope, if checked ou
658
658
  ## help
659
659
 
660
660
  **Alias**: `$0`
661
- **Workspace only**: yes
662
661
  **Description**: shows help
663
662
 
664
663
  `bit help`
@@ -671,7 +670,6 @@ bit export => export all staged components to their current scope, if checked ou
671
670
 
672
671
  ## import
673
672
 
674
- **Workspace only**: yes
675
673
  **Description**: import components from their remote scopes to the local workspace
676
674
  https://bit.dev/docs/components/importing-components
677
675
  you can use a pattern for multiple ids, such as bit import "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
@@ -699,7 +697,6 @@ you can use a pattern for multiple ids, such as bit import "utils/\*". (wrap the
699
697
 
700
698
  ## init
701
699
 
702
- **Workspace only**: no
703
700
  **Description**: create or reinitialize an empty workspace
704
701
  https://bit.dev/docs/workspace/creating-workspaces#initialize-a-workspace-on-an-existing-project
705
702
 
@@ -726,7 +723,6 @@ https://bit.dev/docs/workspace/creating-workspaces#initialize-a-workspace-on-an-
726
723
  ## install
727
724
 
728
725
  **Alias**: `in`
729
- **Workspace only**: yes
730
726
  **Description**: installs workspace dependencies
731
727
  when no package is specified, all workspace dependencies are installed and all workspace components are imported.
732
728
 
@@ -742,12 +738,12 @@ when no package is specified, all workspace dependencies are installed and all w
742
738
  | `--skip-import [skipImport]` | | do not import bit objects post installation |
743
739
  | `--skip-compile [skipCompile]` | | do not compile components |
744
740
  | `--add-missing-peers [addMissingPeers]` | | install all missing peer dependencies |
741
+ | `--no-optional [noOptional]` | | do not install optional dependencies (works with pnpm only) |
745
742
 
746
743
  ---
747
744
 
748
745
  ## link
749
746
 
750
- **Workspace only**: yes
751
747
  **Description**: create links in the node_modules directory, to core aspects and to components in the workspace
752
748
  https://bit.dev/docs/workspace/component-links
753
749
 
@@ -765,7 +761,6 @@ https://bit.dev/docs/workspace/component-links
765
761
 
766
762
  ## lint
767
763
 
768
- **Workspace only**: yes
769
764
  **Description**: lint components in the development workspace
770
765
 
771
766
  `bit lint [component...]`
@@ -782,7 +777,6 @@ https://bit.dev/docs/workspace/component-links
782
777
  ## list
783
778
 
784
779
  **Alias**: `ls`
785
- **Workspace only**: no
786
780
  **Description**: list components on a workspace, local scope or a remote scope.
787
781
  https://bit.dev/docs/reference/cli-reference#list
788
782
 
@@ -800,7 +794,6 @@ https://bit.dev/docs/reference/cli-reference#list
800
794
 
801
795
  ## log
802
796
 
803
- **Workspace only**: no
804
797
  **Description**: show components(s) version history
805
798
  https://bit.dev/docs/reference/cli-reference#log
806
799
 
@@ -817,7 +810,6 @@ https://bit.dev/docs/reference/cli-reference#log
817
810
 
818
811
  ## log-file
819
812
 
820
- **Workspace only**: yes
821
813
  **Description**: EXPERIMENTAL. show file history
822
814
 
823
815
  `bit log-file <filepath>`
@@ -830,7 +822,6 @@ https://bit.dev/docs/reference/cli-reference#log
830
822
 
831
823
  ## login
832
824
 
833
- **Workspace only**: no
834
825
  **Description**: log in to Bit cloud
835
826
 
836
827
  `bit login`
@@ -847,7 +838,6 @@ https://bit.dev/docs/reference/cli-reference#log
847
838
 
848
839
  ## logout
849
840
 
850
- **Workspace only**: yes
851
841
  **Description**: log the CLI out of Bit
852
842
 
853
843
  `bit logout`
@@ -856,7 +846,6 @@ https://bit.dev/docs/reference/cli-reference#log
856
846
 
857
847
  ## merge
858
848
 
859
- **Workspace only**: yes
860
849
  **Description**: merge changes of the remote head into local
861
850
  merge changes of the remote head into local, optionally use '--abort' or '--resolve
862
851
  you can use a pattern for multiple ids, such as bit merge "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
@@ -881,7 +870,6 @@ you can use a pattern for multiple ids, such as bit merge "utils/\*". (wrap the
881
870
  ## move
882
871
 
883
872
  **Alias**: `mv`
884
- **Workspace only**: yes
885
873
  **Description**: move a component to a different filesystem path
886
874
  move files or directories of component(s)
887
875
  https://bit.dev/docs/workspace/moving-components
@@ -892,7 +880,6 @@ move files or directories of component(s)
892
880
 
893
881
  ## new
894
882
 
895
- **Workspace only**: yes
896
883
  **Description**: create a new workspace from a template
897
884
 
898
885
  `bit new <template-name> <workspace-name>`
@@ -910,7 +897,6 @@ move files or directories of component(s)
910
897
 
911
898
  ## pattern
912
899
 
913
- **Workspace only**: yes
914
900
  **Description**: list the component ids matching the given pattern
915
901
  this command helps validating a pattern before using it in other commands.
916
902
  a pattern can be a simple component-id or component-name. e.g. "ui/button".
@@ -930,7 +916,6 @@ the matching algorithm is done by multimatch (@see https://github.com/sindresorh
930
916
 
931
917
  ## refactor
932
918
 
933
- **Workspace only**: yes
934
919
  **Description**: EXPERIMENTAL. source code refactoring / codemod
935
920
 
936
921
  `bit refactor <sub-command>`
@@ -946,7 +931,6 @@ the `<old-id>` and `<new-id>` arguments can be either a component-id or a packag
946
931
 
947
932
  ## remote
948
933
 
949
- **Workspace only**: yes
950
934
  **Description**: manage set of tracked bit scope(s)
951
935
  https://bit.dev/docs/scope/remote-scopes
952
936
 
@@ -983,7 +967,6 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
983
967
  ## remove
984
968
 
985
969
  **Alias**: `rm`
986
- **Workspace only**: no
987
970
  **Description**: remove component(s) from the workspace, or a remote scope
988
971
 
989
972
  `bit remove <component-pattern>`
@@ -1003,7 +986,6 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
1003
986
 
1004
987
  ## rename
1005
988
 
1006
- **Workspace only**: no
1007
989
  **Description**: EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the original component
1008
990
 
1009
991
  `bit rename <current-name> <new-name>`
@@ -1018,7 +1000,6 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
1018
1000
 
1019
1001
  ## reset
1020
1002
 
1021
- **Workspace only**: yes
1022
1003
  **Description**: revert tagged or snapped versions for component(s)
1023
1004
  https://bit.dev/docs/components/tags#undoing-a-tag
1024
1005
 
@@ -1036,7 +1017,6 @@ https://bit.dev/docs/components/tags#undoing-a-tag
1036
1017
  ## run
1037
1018
 
1038
1019
  **Alias**: `c`
1039
- **Workspace only**: yes
1040
1020
  **Description**: run an app (independent of bit's dev server)
1041
1021
 
1042
1022
  `bit run <app-name>`
@@ -1052,7 +1032,6 @@ https://bit.dev/docs/components/tags#undoing-a-tag
1052
1032
 
1053
1033
  ## schema
1054
1034
 
1055
- **Workspace only**: yes
1056
1035
  **Description**: shows the API schema of a certain component.
1057
1036
  you can use a `<pattern>` for multiple component ids, such as `bit schema "org.scope/utils/**"`.
1058
1037
  use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
@@ -1069,7 +1048,6 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
1069
1048
 
1070
1049
  ## scope
1071
1050
 
1072
- **Workspace only**: yes
1073
1051
  **Description**: EXPERIMENTAL. manage the scope-name for components
1074
1052
 
1075
1053
  `bit scope <sub-command>`
@@ -1116,7 +1094,6 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
1116
1094
 
1117
1095
  ## scope-config
1118
1096
 
1119
- **Workspace only**: yes
1120
1097
  **Description**: scope config management
1121
1098
 
1122
1099
  `bit scope-config`
@@ -1149,7 +1126,6 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
1149
1126
 
1150
1127
  ## show
1151
1128
 
1152
- **Workspace only**: yes
1153
1129
  **Description**: display the component's essential information
1154
1130
 
1155
1131
  `bit show <component-name>`
@@ -1165,7 +1141,6 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
1165
1141
 
1166
1142
  ## snap
1167
1143
 
1168
- **Workspace only**: yes
1169
1144
  **Description**: EXPERIMENTAL. create an immutable and exportable component snapshot (no release version)
1170
1145
  https://bit.dev/components/snaps
1171
1146
  you can use a pattern for multiple ids, such as bit snap "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
@@ -1192,7 +1167,6 @@ you can use a pattern for multiple ids, such as bit snap "utils/\*". (wrap the p
1192
1167
  ## start
1193
1168
 
1194
1169
  **Alias**: `c`
1195
- **Workspace only**: yes
1196
1170
  **Description**: run the ui/development server
1197
1171
 
1198
1172
  `bit start [type] [pattern]`
@@ -1212,7 +1186,6 @@ you can use a pattern for multiple ids, such as bit snap "utils/\*". (wrap the p
1212
1186
  ## status
1213
1187
 
1214
1188
  **Alias**: `s`
1215
- **Workspace only**: yes
1216
1189
  **Description**: present the current status of components in the workspace, and notifies when issues are detected
1217
1190
 
1218
1191
  `bit status`
@@ -1229,7 +1202,6 @@ you can use a pattern for multiple ids, such as bit snap "utils/\*". (wrap the p
1229
1202
  ## tag
1230
1203
 
1231
1204
  **Alias**: `t`
1232
- **Workspace only**: yes
1233
1205
  **Description**: create an immutable and exportable component snapshot, tagged with a release version.
1234
1206
  if no patterns are provided, it will tag all new and modified components.
1235
1207
  if patterns are entered, you can specify a version per pattern using "@" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major
@@ -1269,7 +1241,6 @@ if patterns are entered, you can specify a version per pattern using "@" sign, e
1269
1241
 
1270
1242
  ## templates
1271
1243
 
1272
- **Workspace only**: yes
1273
1244
  **Description**: list templates for "bit create" and "bit new"
1274
1245
  list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)
1275
1246
 
@@ -1285,7 +1256,6 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1285
1256
  ## test
1286
1257
 
1287
1258
  **Alias**: `at`
1288
- **Workspace only**: yes
1289
1259
  **Description**: test components in the workspace
1290
1260
 
1291
1261
  `bit test [component-pattern]`
@@ -1304,7 +1274,6 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1304
1274
 
1305
1275
  ## undeprecate
1306
1276
 
1307
- **Workspace only**: no
1308
1277
  **Description**: undeprecate a deprecated component (local/remote)
1309
1278
 
1310
1279
  `bit undeprecate <id>`
@@ -1314,7 +1283,6 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1314
1283
  ## uninstall
1315
1284
 
1316
1285
  **Alias**: `un`
1317
- **Workspace only**: yes
1318
1286
  **Description**: uninstall dependencies
1319
1287
 
1320
1288
  `bit uninstall [packages...]`
@@ -1324,7 +1292,6 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1324
1292
  ## update
1325
1293
 
1326
1294
  **Alias**: `up`
1327
- **Workspace only**: yes
1328
1295
  **Description**: update dependencies
1329
1296
 
1330
1297
  `bit update`
@@ -1337,7 +1304,6 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1337
1304
 
1338
1305
  ## use
1339
1306
 
1340
- **Workspace only**: yes
1341
1307
  **Description**: set aspects in the workspace/scope config to make them loadable by the workspace/scope
1342
1308
 
1343
1309
  `bit use <component-id>`
@@ -1346,7 +1312,6 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1346
1312
 
1347
1313
  ## watch
1348
1314
 
1349
- **Workspace only**: yes
1350
1315
  **Description**: automatically recompile modified components (on save)
1351
1316
 
1352
1317
  `bit watch`
@@ -1361,7 +1326,6 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1361
1326
 
1362
1327
  ## write-tsconfig
1363
1328
 
1364
- **Workspace only**: yes
1365
1329
  **Description**: EXPERIMENTAL. write tsconfig.json files in the component directories
1366
1330
 
1367
1331
  `bit write-tsconfig`
@@ -1577,6 +1577,11 @@
1577
1577
  "",
1578
1578
  "add-missing-peers [addMissingPeers]",
1579
1579
  "install all missing peer dependencies"
1580
+ ],
1581
+ [
1582
+ "",
1583
+ "no-optional [noOptional]",
1584
+ "do not install optional dependencies (works with pnpm only)"
1580
1585
  ]
1581
1586
  ],
1582
1587
  "description": "installs workspace dependencies",
@@ -2831,7 +2836,7 @@
2831
2836
  ]
2832
2837
  ],
2833
2838
  "description": "merge a local or a remote lane",
2834
- "extendedDescription": "if the <lane> exists locally, it will be merged from the local lane.\notherwise, it will fetch the lane from the remote and merge it.\nin case the <lane> exists locally but you want to merge the remote version of it, use --remote flag.\nwhen the current and the other lanes are diverged in history and the files could be merged with no conflicts,\nit will snap-merge these components to complete the merge. use \"no-snap\" to opt-out, or \"tag\" to tag instead",
2839
+ "extendedDescription": "by default, the provided lane will be fetched from the remote before merging.\nto merge the lane from the local scope without updating it first, use \"--skip-fetch\" flag.\n\nwhen the current and the other lanes are diverged in history and the files could be merged with no conflicts,\nit will snap-merge these components to complete the merge. use \"no-snap\" to opt-out, or \"tag\" to tag instead",
2835
2840
  "private": true,
2836
2841
  "remoteOp": true,
2837
2842
  "arguments": [
@@ -2993,6 +2998,36 @@
2993
2998
  }
2994
2999
  ]
2995
3000
  },
3001
+ {
3002
+ "name": "unset <component-pattern> <package...>",
3003
+ "alias": "",
3004
+ "options": [
3005
+ [
3006
+ "d",
3007
+ "dev",
3008
+ "unset from devDependencies"
3009
+ ],
3010
+ [
3011
+ "p",
3012
+ "peer",
3013
+ "unset from peerDependencies"
3014
+ ]
3015
+ ],
3016
+ "description": "unset a dependency to component(s) that was previously set by \"bit deps set\"",
3017
+ "extendedDescription": "",
3018
+ "group": "info",
3019
+ "private": false,
3020
+ "arguments": [
3021
+ {
3022
+ "name": "component-pattern",
3023
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
3024
+ },
3025
+ {
3026
+ "name": "package...",
3027
+ "description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version"
3028
+ }
3029
+ ]
3030
+ },
2996
3031
  {
2997
3032
  "name": "debug <component-name>",
2998
3033
  "alias": "",