@teambit/harmony.content.cli-reference 1.95.128 → 1.95.130

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.
@@ -1839,8 +1839,8 @@
1839
1839
  ],
1840
1840
  [
1841
1841
  "e",
1842
- "entire-lane",
1843
- "write also new components that were introduced on the remote lane and do not exist locally"
1842
+ "workspace-only",
1843
+ "when on a lane, avoid introducing new components from the remote lane that do not exist locally"
1844
1844
  ],
1845
1845
  [
1846
1846
  "v",
@@ -2647,8 +2647,8 @@
2647
2647
  ],
2648
2648
  "description": "manage lanes",
2649
2649
  "extendedDescription": "",
2650
- "group": "ungrouped",
2651
- "private": true,
2650
+ "group": "collaborate",
2651
+ "private": false,
2652
2652
  "remoteOp": true,
2653
2653
  "skipWorkspace": true,
2654
2654
  "commands": [
@@ -2685,7 +2685,7 @@
2685
2685
  "description": "list lanes",
2686
2686
  "extendedDescription": "",
2687
2687
  "group": "ungrouped",
2688
- "private": true,
2688
+ "private": false,
2689
2689
  "remoteOp": true,
2690
2690
  "skipWorkspace": true
2691
2691
  },
@@ -2742,7 +2742,7 @@
2742
2742
  "description": "show lane details. if no lane specified, show the current lane",
2743
2743
  "extendedDescription": "",
2744
2744
  "group": "ungrouped",
2745
- "private": true,
2745
+ "private": false,
2746
2746
  "remoteOp": true,
2747
2747
  "skipWorkspace": true
2748
2748
  },
@@ -2758,13 +2758,13 @@
2758
2758
  [
2759
2759
  "",
2760
2760
  "alias <name>",
2761
- "a local alias to refer to this lane, defaults to the <lane-name> (can be added later with \"bit lane alias\")"
2761
+ "a local alias to refer to this lane, defaults to the `<lane-name>` (can be added later with \"bit lane alias\")"
2762
2762
  ]
2763
2763
  ],
2764
2764
  "description": "creates a new lane and switches to it",
2765
2765
  "extendedDescription": "a lane created from main (default-lane) is empty until components are snapped.\na lane created from another lane has all the components of the original lane.",
2766
2766
  "group": "ungrouped",
2767
- "private": true,
2767
+ "private": false,
2768
2768
  "arguments": [
2769
2769
  {
2770
2770
  "name": "lane-name",
@@ -2810,7 +2810,7 @@
2810
2810
  "description": "changes the remote scope of a lane",
2811
2811
  "extendedDescription": "",
2812
2812
  "group": "ungrouped",
2813
- "private": true
2813
+ "private": false
2814
2814
  },
2815
2815
  {
2816
2816
  "name": "alias <lane-name> <alias>",
@@ -2819,7 +2819,7 @@
2819
2819
  "description": "adds an alias to a lane",
2820
2820
  "extendedDescription": "an alias is a name that can be used to refer to a lane. it is saved locally and never reach the remote.\nit is useful when having multiple lanes with the same name, but with different remote scopes.",
2821
2821
  "group": "ungrouped",
2822
- "private": true
2822
+ "private": false
2823
2823
  },
2824
2824
  {
2825
2825
  "name": "rename <current-name> <new-name>",
@@ -2828,7 +2828,7 @@
2828
2828
  "description": "EXPERIMENTAL. change the lane-name locally and on the remote (if exported)",
2829
2829
  "extendedDescription": "",
2830
2830
  "group": "ungrouped",
2831
- "private": true
2831
+ "private": false
2832
2832
  },
2833
2833
  {
2834
2834
  "name": "diff [values...]",
@@ -2854,7 +2854,7 @@
2854
2854
  "description": "EXPERIMENTAL. adds a readme component to a lane",
2855
2855
  "extendedDescription": "",
2856
2856
  "group": "ungrouped",
2857
- "private": true,
2857
+ "private": false,
2858
2858
  "skipWorkspace": false,
2859
2859
  "arguments": [
2860
2860
  {
@@ -2874,7 +2874,7 @@
2874
2874
  "description": "EXPERIMENTAL. remove lane readme component",
2875
2875
  "extendedDescription": "",
2876
2876
  "group": "ungrouped",
2877
- "private": true,
2877
+ "private": false,
2878
2878
  "skipWorkspace": false
2879
2879
  },
2880
2880
  {
@@ -2890,7 +2890,7 @@
2890
2890
  "description": "import a remote lane to your workspace",
2891
2891
  "extendedDescription": "",
2892
2892
  "group": "ungrouped",
2893
- "private": true,
2893
+ "private": false,
2894
2894
  "arguments": [
2895
2895
  {
2896
2896
  "name": "lane",
@@ -3421,6 +3421,162 @@
3421
3421
  "group": "development",
3422
3422
  "private": false
3423
3423
  },
3424
+ {
3425
+ "name": "ws-config <sub-command>",
3426
+ "alias": "workspace-config",
3427
+ "options": [],
3428
+ "description": "manage workspace config files",
3429
+ "extendedDescription": "",
3430
+ "group": "development",
3431
+ "private": false,
3432
+ "commands": [
3433
+ {
3434
+ "name": "write",
3435
+ "alias": "",
3436
+ "options": [
3437
+ [
3438
+ "c",
3439
+ "clean",
3440
+ "delete existing config files from the workspace. highly recommended to run it with \"--dry-run\" first"
3441
+ ],
3442
+ [
3443
+ "w",
3444
+ "writers <writers>",
3445
+ "only write config files for the given writers. use comma to separate multiple writers. use ws-config list to see all writers"
3446
+ ],
3447
+ [
3448
+ "s",
3449
+ "silent",
3450
+ "do not prompt for confirmation"
3451
+ ],
3452
+ [
3453
+ "",
3454
+ "no-dedupe",
3455
+ "write configs inside each one of the component's dir, avoid deduping"
3456
+ ],
3457
+ [
3458
+ "",
3459
+ "dry-run",
3460
+ "show the paths that configs will be written per env"
3461
+ ],
3462
+ [
3463
+ "",
3464
+ "dry-run-with-content",
3465
+ "use with --json flag. show the config content and the paths it will be written per env"
3466
+ ],
3467
+ [
3468
+ "j",
3469
+ "json",
3470
+ "json format"
3471
+ ]
3472
+ ],
3473
+ "description": "EXPERIMENTAL. write config files in the workspace. useful for IDEs",
3474
+ "extendedDescription": "",
3475
+ "group": "development",
3476
+ "private": false
3477
+ },
3478
+ {
3479
+ "name": "clean",
3480
+ "alias": "",
3481
+ "options": [
3482
+ [
3483
+ "s",
3484
+ "silent",
3485
+ "do not prompt for confirmation"
3486
+ ],
3487
+ [
3488
+ "w",
3489
+ "writers <writers>",
3490
+ "only write config files for the given writers. use comma to separate multiple writers. use ws-config list to see all writers"
3491
+ ],
3492
+ [
3493
+ "",
3494
+ "dry-run",
3495
+ "show the paths that configs will be written per env"
3496
+ ],
3497
+ [
3498
+ "j",
3499
+ "json",
3500
+ "json format"
3501
+ ]
3502
+ ],
3503
+ "description": "EXPERIMENTAL. clean (delete) written config files in the workspace. useful for IDEs",
3504
+ "extendedDescription": "",
3505
+ "group": "development",
3506
+ "private": false
3507
+ },
3508
+ {
3509
+ "name": "list",
3510
+ "alias": "",
3511
+ "options": [
3512
+ [
3513
+ "j",
3514
+ "json",
3515
+ "json format"
3516
+ ]
3517
+ ],
3518
+ "description": "EXPERIMENTAL. list config writers",
3519
+ "extendedDescription": "",
3520
+ "group": "development",
3521
+ "private": false
3522
+ }
3523
+ ]
3524
+ },
3525
+ {
3526
+ "name": "format [component...]",
3527
+ "alias": "",
3528
+ "options": [
3529
+ [
3530
+ "c",
3531
+ "changed",
3532
+ "format only new and modified components"
3533
+ ],
3534
+ [
3535
+ "",
3536
+ "check",
3537
+ "will output a human-friendly message and a list of unformatted files, if any"
3538
+ ],
3539
+ [
3540
+ "j",
3541
+ "json",
3542
+ "return the format results in json format"
3543
+ ]
3544
+ ],
3545
+ "description": "format components in the development workspace",
3546
+ "extendedDescription": "",
3547
+ "group": "development",
3548
+ "private": false
3549
+ },
3550
+ {
3551
+ "name": "lint [component...]",
3552
+ "alias": "",
3553
+ "options": [
3554
+ [
3555
+ "c",
3556
+ "changed",
3557
+ "lint only new and modified components"
3558
+ ],
3559
+ [
3560
+ "f",
3561
+ "fix",
3562
+ "automatically fix problems"
3563
+ ],
3564
+ [
3565
+ "",
3566
+ "fix-type <fixType>",
3567
+ "specify the types of fixes to apply (problem, suggestion, layout)"
3568
+ ],
3569
+ [
3570
+ "j",
3571
+ "json",
3572
+ "return the lint results in json format"
3573
+ ]
3574
+ ],
3575
+ "description": "lint components in the development workspace",
3576
+ "extendedDescription": "",
3577
+ "group": "development",
3578
+ "private": false
3579
+ },
3424
3580
  {
3425
3581
  "name": "test [component-pattern]",
3426
3582
  "alias": "at",
@@ -4006,60 +4162,5 @@
4006
4162
  "extendedDescription": "without --multiple, this will be running on the original scope.\nwith --multiple, a new bare-scope needs to be created and it will import the components to this scope first",
4007
4163
  "group": "development",
4008
4164
  "private": true
4009
- },
4010
- {
4011
- "name": "format [component...]",
4012
- "alias": "",
4013
- "options": [
4014
- [
4015
- "c",
4016
- "changed",
4017
- "format only new and modified components"
4018
- ],
4019
- [
4020
- "",
4021
- "check",
4022
- "will output a human-friendly message and a list of unformatted files, if any"
4023
- ],
4024
- [
4025
- "j",
4026
- "json",
4027
- "return the format results in json format"
4028
- ]
4029
- ],
4030
- "description": "format components in the development workspace",
4031
- "extendedDescription": "",
4032
- "group": "development",
4033
- "private": false
4034
- },
4035
- {
4036
- "name": "lint [component...]",
4037
- "alias": "",
4038
- "options": [
4039
- [
4040
- "c",
4041
- "changed",
4042
- "lint only new and modified components"
4043
- ],
4044
- [
4045
- "f",
4046
- "fix",
4047
- "automatically fix problems"
4048
- ],
4049
- [
4050
- "",
4051
- "fix-type <fixType>",
4052
- "specify the types of fixes to apply (problem, suggestion, layout)"
4053
- ],
4054
- [
4055
- "j",
4056
- "json",
4057
- "return the lint results in json format"
4058
- ]
4059
- ],
4060
- "description": "lint components in the development workspace",
4061
- "extendedDescription": "",
4062
- "group": "development",
4063
- "private": false
4064
4165
  }
4065
4166
  ]
package/cli-reference.mdx CHANGED
@@ -240,7 +240,7 @@ with no args, only workspace's capsules are deleted
240
240
  | `--manual` | `-m` | in case of a conflict, leave the files with a conflict state to resolve them manually later |
241
241
  | `--reset` | `-r` | revert changes that were not snapped/tagged |
242
242
  | `--all` | `-a` | all components |
243
- | `--entire-lane` | `-e` | write also new components that were introduced on the remote lane and do not exist locally |
243
+ | `--workspace-only` | `-e` | when on a lane, avoid introducing new components from the remote lane that do not exist locally |
244
244
  | `--verbose` | `-v` | showing verbose output for inspection |
245
245
  | `--reset` | | DEPRECATED. run "bit checkout reset" instead |
246
246
  | `--skip-npm-install` | | DEPRECATED. use "--skip-dependency-installation" instead |
@@ -745,6 +745,171 @@ when no package is specified, all workspace dependencies are installed and all w
745
745
 
746
746
  ---
747
747
 
748
+ ## lane
749
+
750
+ **Description**: manage lanes
751
+
752
+ `bit lane [lane-name]`
753
+
754
+ ### lane list
755
+
756
+ **Usage**: `lane list`
757
+
758
+ **Description**: list lanes
759
+
760
+ | **Option** | **Option alias** | **Description** |
761
+ | ------------------------------ | :--------------: | ------------------------------------------------------------- |
762
+ | `--details` | `-d` | show more details on the state of each component in each lane |
763
+ | `--json` | `-j` | show lanes details in a json format |
764
+ | `--remote <remote-scope-name>` | `-r` | show remote lanes |
765
+ | `--merged` | | show merged lanes |
766
+ | `--not-merged` | | show lanes that are not merged |
767
+
768
+ ### lane switch
769
+
770
+ **Usage**: `lane switch <lane>`
771
+
772
+ **Description**: switch to the specified lane
773
+
774
+ | **Option** | **Option alias** | **Description** |
775
+ | -------------------------------- | :--------------: | ----------------------------------------------------------------------------------------------------- |
776
+ | `--alias <string>` | `-n` | relevant when the specified lane is a remote late. name a local lane differently than the remote lane |
777
+ | `--merge [strategy]` | `-m` | merge local changes with the checked out version. strategy should be "theirs", "ours" or "manual" |
778
+ | `--get-all` | `-a` | checkout all components in a lane include ones that do not exist in the workspace |
779
+ | `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
780
+ | `--json` | `-j` | return the output as JSON |
781
+
782
+ ### lane show
783
+
784
+ **Usage**: `lane show [lane-name]`
785
+
786
+ **Description**: show lane details. if no lane specified, show the current lane
787
+
788
+ | **Option** | **Option alias** | **Description** |
789
+ | ------------------- | :--------------: | ------------------------------------ |
790
+ | `--json` | `-j` | show the lane details in json format |
791
+ | `--remote <string>` | `-r` | show remote lanes |
792
+
793
+ ### lane create
794
+
795
+ **Usage**: `lane create <lane-name>`
796
+
797
+ **Description**: creates a new lane and switches to it
798
+ a lane created from main (default-lane) is empty until components are snapped.
799
+ a lane created from another lane has all the components of the original lane.
800
+
801
+ | **Option** | **Option alias** | **Description** |
802
+ | ----------------------------- | :--------------: | --------------------------------------------------------------------------------------------------------------------------------- |
803
+ | `--remote-scope <scope-name>` | | remote scope where this lane will be exported to, default to the defaultScope (can be changed later with "bit lane change-scope") |
804
+ | `--alias <name>` | | a local alias to refer to this lane, defaults to the `<lane-name>` (can be added later with "bit lane alias") |
805
+
806
+ ### lane remove
807
+
808
+ **Usage**: `lane remove <lanes...>`
809
+
810
+ **Description**: remove lanes
811
+
812
+ | **Option** | **Option alias** | **Description** |
813
+ | ---------- | :--------------: | ----------------------------------------------------------------- |
814
+ | `--remote` | `-r` | remove a remote lane (in the lane arg, use remote/lane-id syntax) |
815
+ | `--force` | `-f` | removes the lane even when the lane was not merged yet |
816
+ | `--silent` | `-s` | skip confirmation |
817
+
818
+ ### lane change-scope
819
+
820
+ **Usage**: `lane change-scope <lane-name> <remote-scope-name>`
821
+
822
+ **Description**: changes the remote scope of a lane
823
+
824
+ ### lane alias
825
+
826
+ **Usage**: `lane alias <lane-name> <alias>`
827
+
828
+ **Description**: adds an alias to a lane
829
+ an alias is a name that can be used to refer to a lane. it is saved locally and never reach the remote.
830
+ it is useful when having multiple lanes with the same name, but with different remote scopes.
831
+
832
+ ### lane rename
833
+
834
+ **Usage**: `lane rename <current-name> <new-name>`
835
+
836
+ **Description**: EXPERIMENTAL. change the lane-name locally and on the remote (if exported)
837
+
838
+ ### lane diff
839
+
840
+ **Usage**: `lane diff [values...]`
841
+
842
+ **Description**: show diff between lanes
843
+ bit lane diff => diff between the current lane and default lane. (only inside workspace).
844
+ bit lane diff to => diff between the current lane (or default-lane when in scope) and "to" lane.
845
+ bit lane diff from to => diff between "from" lane and "to" lane.
846
+
847
+ | **Option** | **Option alias** | **Description** |
848
+ | ------------------------------- | :--------------: | --------------------------------------------------------------------- |
849
+ | `--pattern <component-pattern>` | | EXPERIMENTAL. show lane-diff for the specified component-pattern only |
850
+
851
+ ### lane add-readme
852
+
853
+ **Usage**: `lane add-readme <component-name> [lane-name]`
854
+
855
+ **Description**: EXPERIMENTAL. adds a readme component to a lane
856
+
857
+ ### lane remove-readme
858
+
859
+ **Usage**: `lane remove-readme [laneName]`
860
+
861
+ **Description**: EXPERIMENTAL. remove lane readme component
862
+
863
+ ### lane import
864
+
865
+ **Usage**: `lane import <lane>`
866
+
867
+ **Description**: import a remote lane to your workspace
868
+
869
+ | **Option** | **Option alias** | **Description** |
870
+ | -------------------------------- | :--------------: | -------------------------------------------------- |
871
+ | `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
872
+
873
+ ### lane merge
874
+
875
+ **Usage**: `lane merge <lane> [pattern]`
876
+
877
+ **Description**: merge a local or a remote lane
878
+ by default, the provided lane will be fetched from the remote before merging.
879
+ to merge the lane from the local scope without updating it first, use "--skip-fetch" flag.
880
+
881
+ when the current and the other lanes are diverged in history and the files could be merged with no conflicts,
882
+ it will snap-merge these components to complete the merge. use "no-snap" to opt-out, or "tag" to tag instead
883
+
884
+ | **Option** | **Option alias** | **Description** |
885
+ | -------------------------------------- | :--------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
886
+ | `--ours` | | in case of a conflict, override the used version with the current modification |
887
+ | `--theirs` | | in case of a conflict, override the current modification with the specified version |
888
+ | `--manual` | | in case of a conflict, leave the files with a conflict state to resolve them manually later |
889
+ | `--workspace` | | merge only components in a lane that exist in the workspace |
890
+ | `--no-snap` | | do not auto snap in case the merge completed without conflicts |
891
+ | `--tag` | | tag all lane components after merging into main (also tag-merge in case of snap-merge) |
892
+ | `--build` | | in case of snap during the merge, run the build-pipeline (similar to bit snap --build) |
893
+ | `--message <message>` | `-m` | override the default message for the auto snap |
894
+ | `--keep-readme` | | skip deleting the lane readme component after merging |
895
+ | `--no-squash` | | EXPERIMENTAL. relevant for merging lanes into main, which by default squash. |
896
+ | `--ignore-config-changes` | | allow merging when component are modified due to config changes (such as dependencies) only and not files |
897
+ | `--verbose` | | show details of components that were not merged legitimately |
898
+ | `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
899
+ | `--skip-fetch` | | use the current target-lane if exits locally without updating it from the remote |
900
+ | `--include-deps` | | EXPERIMENTAL. relevant for "--pattern" and "--workspace". merge also dependencies of the given components |
901
+ | `--resolve-unrelated [merge-strategy]` | | EXPERIMENTAL. relevant when a component on a lane and the component on main has nothing in common. merge-strategy can be "ours" (default) or "theirs" |
902
+
903
+ | **Option** | **Option alias** | **Description** |
904
+ | ------------------- | :--------------: | ------------------------------------------------------------- |
905
+ | `--details` | `-d` | show more details on the state of each component in each lane |
906
+ | `--json` | `-j` | show lanes details in json format |
907
+ | `--remote <string>` | `-r` | show remote lanes |
908
+ | `--merged` | | show merged lanes |
909
+ | `--not-merged` | | show not merged lanes |
910
+
911
+ ---
912
+
748
913
  ## link
749
914
 
750
915
  **Description**: create links in the node_modules directory, to core aspects and to components in the workspace
@@ -1357,3 +1522,51 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
1357
1522
  | `--json` | `-j` | json format |
1358
1523
 
1359
1524
  ---
1525
+
1526
+ ## ws-config
1527
+
1528
+ **Alias**: `workspace-config`
1529
+ **Description**: manage workspace config files
1530
+
1531
+ `bit ws-config <sub-command>`
1532
+
1533
+ ### ws-config write
1534
+
1535
+ **Usage**: `ws-config write`
1536
+
1537
+ **Description**: EXPERIMENTAL. write config files in the workspace. useful for IDEs
1538
+
1539
+ | **Option** | **Option alias** | **Description** |
1540
+ | ------------------------ | :--------------: | ---------------------------------------------------------------------------------------------------------------------------- |
1541
+ | `--clean` | `-c` | delete existing config files from the workspace. highly recommended to run it with "--dry-run" first |
1542
+ | `--writers <writers>` | `-w` | only write config files for the given writers. use comma to separate multiple writers. use ws-config list to see all writers |
1543
+ | `--silent` | `-s` | do not prompt for confirmation |
1544
+ | `--no-dedupe` | | write configs inside each one of the component's dir, avoid deduping |
1545
+ | `--dry-run` | | show the paths that configs will be written per env |
1546
+ | `--dry-run-with-content` | | use with --json flag. show the config content and the paths it will be written per env |
1547
+ | `--json` | `-j` | json format |
1548
+
1549
+ ### ws-config clean
1550
+
1551
+ **Usage**: `ws-config clean`
1552
+
1553
+ **Description**: EXPERIMENTAL. clean (delete) written config files in the workspace. useful for IDEs
1554
+
1555
+ | **Option** | **Option alias** | **Description** |
1556
+ | --------------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------- |
1557
+ | `--silent` | `-s` | do not prompt for confirmation |
1558
+ | `--writers <writers>` | `-w` | only write config files for the given writers. use comma to separate multiple writers. use ws-config list to see all writers |
1559
+ | `--dry-run` | | show the paths that configs will be written per env |
1560
+ | `--json` | `-j` | json format |
1561
+
1562
+ ### ws-config list
1563
+
1564
+ **Usage**: `ws-config list`
1565
+
1566
+ **Description**: EXPERIMENTAL. list config writers
1567
+
1568
+ | **Option** | **Option alias** | **Description** |
1569
+ | ---------- | :--------------: | --------------- |
1570
+ | `--json` | `-j` | json format |
1571
+
1572
+ ---