@teambit/harmony.content.cli-reference 1.95.105 → 1.95.107

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.
@@ -827,6 +827,36 @@
827
827
  "description": "components configured to use the 'aspect' env will be configured to use the 'node' env, instead"
828
828
  }
829
829
  ]
830
+ },
831
+ {
832
+ "name": "update [env-id] [pattern]",
833
+ "options": [],
834
+ "description": "update a version of an env for all components using that env",
835
+ "group": "development",
836
+ "arguments": [
837
+ {
838
+ "name": "env-id",
839
+ "description": "the environment id (defaults to all envs). optionally, add a version (id@version), otherwise, it finds the latest version on the remote."
840
+ },
841
+ {
842
+ "name": "pattern",
843
+ "description": "the components to update (defaults to all components). use 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"
844
+ }
845
+ ],
846
+ "examples": [
847
+ {
848
+ "cmd": "envs update",
849
+ "description": "update all envs in the workspace to their latest version"
850
+ },
851
+ {
852
+ "cmd": "envs update scope.org/env '**/ui/**'",
853
+ "description": "update \"ui\" components that use scope.org/env to use its latest version"
854
+ },
855
+ {
856
+ "cmd": "envs update scope.org/env@2.0.0",
857
+ "description": "update all components that use scope.org/env to version 2.0.0 (of this env)."
858
+ }
859
+ ]
830
860
  }
831
861
  ]
832
862
  },
@@ -2960,11 +2990,41 @@
2960
2990
  }
2961
2991
  ]
2962
2992
  },
2993
+ {
2994
+ "name": "reset <component-pattern>",
2995
+ "alias": "",
2996
+ "options": [],
2997
+ "description": "reset dependencies to the default values (revert any previously \"bit deps set\")",
2998
+ "extendedDescription": "",
2999
+ "group": "info",
3000
+ "private": false,
3001
+ "arguments": [
3002
+ {
3003
+ "name": "component-pattern",
3004
+ "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"
3005
+ }
3006
+ ]
3007
+ },
3008
+ {
3009
+ "name": "eject <component-pattern>",
3010
+ "alias": "",
3011
+ "options": [],
3012
+ "description": "write dependencies that were previously set via \"bit deps set\" into .bitmap",
3013
+ "extendedDescription": "",
3014
+ "group": "info",
3015
+ "private": false,
3016
+ "arguments": [
3017
+ {
3018
+ "name": "component-pattern",
3019
+ "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"
3020
+ }
3021
+ ]
3022
+ },
2963
3023
  {
2964
3024
  "name": "blame <component-name> <dependency-name>",
2965
3025
  "alias": "",
2966
3026
  "options": [],
2967
- "description": "find out which snap/tag changed a dependency version",
3027
+ "description": "EXPERIMENTAL. find out which snap/tag changed a dependency version",
2968
3028
  "extendedDescription": "",
2969
3029
  "group": "info",
2970
3030
  "private": false,
@@ -3112,7 +3172,7 @@
3112
3172
  [
3113
3173
  "",
3114
3174
  "verbose",
3115
- "show extra data: full snap hashes for staged, divergence point for lanes and updates-from-main for forked lanes"
3175
+ "show extra data: full snap hashes for staged and divergence point for lanes"
3116
3176
  ],
3117
3177
  [
3118
3178
  "l",
@@ -3564,6 +3624,27 @@
3564
3624
  }
3565
3625
  ]
3566
3626
  },
3627
+ {
3628
+ "name": "log-file <filepath>",
3629
+ "alias": "",
3630
+ "options": [
3631
+ [
3632
+ "o",
3633
+ "one-line",
3634
+ "show each log entry in one line"
3635
+ ]
3636
+ ],
3637
+ "description": "EXPERIMENTAL. show file history",
3638
+ "extendedDescription": "",
3639
+ "group": "info",
3640
+ "private": false,
3641
+ "arguments": [
3642
+ {
3643
+ "name": "filepath",
3644
+ "description": "file path relative to the workspace"
3645
+ }
3646
+ ]
3647
+ },
3567
3648
  {
3568
3649
  "name": "deprecate <component-name>",
3569
3650
  "alias": "d",
@@ -3658,6 +3739,11 @@
3658
3739
  "",
3659
3740
  "skip-dependency-installation",
3660
3741
  "do not install packages of the imported components"
3742
+ ],
3743
+ [
3744
+ "",
3745
+ "skip-config",
3746
+ "do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading"
3661
3747
  ]
3662
3748
  ],
3663
3749
  "description": "EXPERIMENTAL. create a new component out of an existing one (copies source files and config)",
package/cli-reference.mdx CHANGED
@@ -424,11 +424,23 @@ https://bit.dev/docs/config/bit-config
424
424
  | `--dev` | `-d` | add to the devDependencies |
425
425
  | `--peer` | `-p` | add to the peerDependencies |
426
426
 
427
+ ### deps reset
428
+
429
+ **Usage**: `deps reset <component-pattern>`
430
+
431
+ **Description**: reset dependencies to the default values (revert any previously "bit deps set")
432
+
433
+ ### deps eject
434
+
435
+ **Usage**: `deps eject <component-pattern>`
436
+
437
+ **Description**: write dependencies that were previously set via "bit deps set" into .bitmap
438
+
427
439
  ### deps blame
428
440
 
429
441
  **Usage**: `deps blame <component-name> <dependency-name>`
430
442
 
431
- **Description**: find out which snap/tag changed a dependency version
443
+ **Description**: EXPERIMENTAL. find out which snap/tag changed a dependency version
432
444
 
433
445
  ---
434
446
 
@@ -545,6 +557,12 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
545
557
 
546
558
  **Description**: replace an existing env with another env for all components using the old env
547
559
 
560
+ ### envs update
561
+
562
+ **Usage**: `envs update [env-id] [pattern]`
563
+
564
+ **Description**: update a version of an env for all components using that env
565
+
548
566
  ---
549
567
 
550
568
  ## export
@@ -583,6 +601,7 @@ bit export => export all staged components to their current scope, if checked ou
583
601
  | `--path <string>` | `-p` | relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>` |
584
602
  | `--refactor` | `-r` | update the import/require statements in all dependent components (in the same workspace) |
585
603
  | `--skip-dependency-installation` | | do not install packages of the imported components |
604
+ | `--skip-config` | | do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading |
586
605
 
587
606
  ---
588
607
 
@@ -791,6 +810,19 @@ https://bit.dev/docs/reference/cli-reference#log
791
810
 
792
811
  ---
793
812
 
813
+ ## log-file
814
+
815
+ **Workspace only**: yes
816
+ **Description**: EXPERIMENTAL. show file history
817
+
818
+ `bit log-file <filepath>`
819
+
820
+ | **Option** | **Option alias** | **Description** |
821
+ | ------------ | :--------------: | ------------------------------- |
822
+ | `--one-line` | `-o` | show each log entry in one line |
823
+
824
+ ---
825
+
794
826
  ## login
795
827
 
796
828
  **Workspace only**: no
@@ -1146,12 +1178,12 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
1146
1178
 
1147
1179
  `bit status`
1148
1180
 
1149
- | **Option** | **Option alias** | **Description** |
1150
- | ----------- | :--------------: | --------------------------------------------------------------------------------------------------------------- |
1151
- | `--json` | `-j` | return a json version of the component |
1152
- | `--verbose` | | show extra data: full snap hashes for staged, divergence point for lanes and updates-from-main for forked lanes |
1153
- | `--lanes` | `-l` | when on a lane, show updates from main and updates from forked lanes |
1154
- | `--strict` | | in case issues found, exit with code 1 |
1181
+ | **Option** | **Option alias** | **Description** |
1182
+ | ----------- | :--------------: | --------------------------------------------------------------------------- |
1183
+ | `--json` | `-j` | return a json version of the component |
1184
+ | `--verbose` | | show extra data: full snap hashes for staged and divergence point for lanes |
1185
+ | `--lanes` | `-l` | when on a lane, show updates from main and updates from forked lanes |
1186
+ | `--strict` | | in case issues found, exit with code 1 |
1155
1187
 
1156
1188
  ---
1157
1189
 
@@ -827,6 +827,36 @@
827
827
  "description": "components configured to use the 'aspect' env will be configured to use the 'node' env, instead"
828
828
  }
829
829
  ]
830
+ },
831
+ {
832
+ "name": "update [env-id] [pattern]",
833
+ "options": [],
834
+ "description": "update a version of an env for all components using that env",
835
+ "group": "development",
836
+ "arguments": [
837
+ {
838
+ "name": "env-id",
839
+ "description": "the environment id (defaults to all envs). optionally, add a version (id@version), otherwise, it finds the latest version on the remote."
840
+ },
841
+ {
842
+ "name": "pattern",
843
+ "description": "the components to update (defaults to all components). use 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"
844
+ }
845
+ ],
846
+ "examples": [
847
+ {
848
+ "cmd": "envs update",
849
+ "description": "update all envs in the workspace to their latest version"
850
+ },
851
+ {
852
+ "cmd": "envs update scope.org/env '**/ui/**'",
853
+ "description": "update \"ui\" components that use scope.org/env to use its latest version"
854
+ },
855
+ {
856
+ "cmd": "envs update scope.org/env@2.0.0",
857
+ "description": "update all components that use scope.org/env to version 2.0.0 (of this env)."
858
+ }
859
+ ]
830
860
  }
831
861
  ]
832
862
  },
@@ -2960,11 +2990,41 @@
2960
2990
  }
2961
2991
  ]
2962
2992
  },
2993
+ {
2994
+ "name": "reset <component-pattern>",
2995
+ "alias": "",
2996
+ "options": [],
2997
+ "description": "reset dependencies to the default values (revert any previously \"bit deps set\")",
2998
+ "extendedDescription": "",
2999
+ "group": "info",
3000
+ "private": false,
3001
+ "arguments": [
3002
+ {
3003
+ "name": "component-pattern",
3004
+ "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"
3005
+ }
3006
+ ]
3007
+ },
3008
+ {
3009
+ "name": "eject <component-pattern>",
3010
+ "alias": "",
3011
+ "options": [],
3012
+ "description": "write dependencies that were previously set via \"bit deps set\" into .bitmap",
3013
+ "extendedDescription": "",
3014
+ "group": "info",
3015
+ "private": false,
3016
+ "arguments": [
3017
+ {
3018
+ "name": "component-pattern",
3019
+ "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"
3020
+ }
3021
+ ]
3022
+ },
2963
3023
  {
2964
3024
  "name": "blame <component-name> <dependency-name>",
2965
3025
  "alias": "",
2966
3026
  "options": [],
2967
- "description": "find out which snap/tag changed a dependency version",
3027
+ "description": "EXPERIMENTAL. find out which snap/tag changed a dependency version",
2968
3028
  "extendedDescription": "",
2969
3029
  "group": "info",
2970
3030
  "private": false,
@@ -3112,7 +3172,7 @@
3112
3172
  [
3113
3173
  "",
3114
3174
  "verbose",
3115
- "show extra data: full snap hashes for staged, divergence point for lanes and updates-from-main for forked lanes"
3175
+ "show extra data: full snap hashes for staged and divergence point for lanes"
3116
3176
  ],
3117
3177
  [
3118
3178
  "l",
@@ -3564,6 +3624,27 @@
3564
3624
  }
3565
3625
  ]
3566
3626
  },
3627
+ {
3628
+ "name": "log-file <filepath>",
3629
+ "alias": "",
3630
+ "options": [
3631
+ [
3632
+ "o",
3633
+ "one-line",
3634
+ "show each log entry in one line"
3635
+ ]
3636
+ ],
3637
+ "description": "EXPERIMENTAL. show file history",
3638
+ "extendedDescription": "",
3639
+ "group": "info",
3640
+ "private": false,
3641
+ "arguments": [
3642
+ {
3643
+ "name": "filepath",
3644
+ "description": "file path relative to the workspace"
3645
+ }
3646
+ ]
3647
+ },
3567
3648
  {
3568
3649
  "name": "deprecate <component-name>",
3569
3650
  "alias": "d",
@@ -3658,6 +3739,11 @@
3658
3739
  "",
3659
3740
  "skip-dependency-installation",
3660
3741
  "do not install packages of the imported components"
3742
+ ],
3743
+ [
3744
+ "",
3745
+ "skip-config",
3746
+ "do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading"
3661
3747
  ]
3662
3748
  ],
3663
3749
  "description": "EXPERIMENTAL. create a new component out of an existing one (copies source files and config)",
@@ -1787,13 +1787,25 @@ function MDXContent(_ref) {
1787
1787
  }, "-p")), (0, _react2.mdx)("td", {
1788
1788
  parentName: "tr",
1789
1789
  "align": null
1790
- }, "add to the peerDependencies")))), (0, _react2.mdx)("h3", null, "deps blame"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1790
+ }, "add to the peerDependencies")))), (0, _react2.mdx)("h3", null, "deps reset"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1791
+ parentName: "p"
1792
+ }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
1793
+ parentName: "p"
1794
+ }, "deps reset <component-pattern>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1795
+ parentName: "p"
1796
+ }, "Description"), ": reset dependencies to the default values (revert any previously \"bit deps set\")"), (0, _react2.mdx)("h3", null, "deps eject"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1797
+ parentName: "p"
1798
+ }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
1799
+ parentName: "p"
1800
+ }, "deps eject <component-pattern>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1801
+ parentName: "p"
1802
+ }, "Description"), ": write dependencies that were previously set via \"bit deps set\" into .bitmap"), (0, _react2.mdx)("h3", null, "deps blame"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1791
1803
  parentName: "p"
1792
1804
  }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
1793
1805
  parentName: "p"
1794
1806
  }, "deps blame <component-name> <dependency-name>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1795
1807
  parentName: "p"
1796
- }, "Description"), ": find out which snap/tag changed a dependency version"), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "diff"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1808
+ }, "Description"), ": EXPERIMENTAL. find out which snap/tag changed a dependency version"), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "diff"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1797
1809
  parentName: "p"
1798
1810
  }, "Workspace only"), ": yes", (0, _react2.mdx)("br", {
1799
1811
  parentName: "p"
@@ -2155,7 +2167,13 @@ function MDXContent(_ref) {
2155
2167
  parentName: "p"
2156
2168
  }, "envs replace <current-env> <new-env>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2157
2169
  parentName: "p"
2158
- }, "Description"), ": replace an existing env with another env for all components using the old env"), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "export"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2170
+ }, "Description"), ": replace an existing env with another env for all components using the old env"), (0, _react2.mdx)("h3", null, "envs update"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2171
+ parentName: "p"
2172
+ }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
2173
+ parentName: "p"
2174
+ }, "envs update [env-id] [pattern]")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2175
+ parentName: "p"
2176
+ }, "Description"), ": update a version of an env for all components using that env"), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "export"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2159
2177
  parentName: "p"
2160
2178
  }, "Alias"), ": ", (0, _react2.mdx)("inlineCode", {
2161
2179
  parentName: "p"
@@ -2384,7 +2402,20 @@ function MDXContent(_ref) {
2384
2402
  }), (0, _react2.mdx)("td", {
2385
2403
  parentName: "tr",
2386
2404
  "align": null
2387
- }, "do not install packages of the imported components")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "format"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2405
+ }, "do not install packages of the imported components")), (0, _react2.mdx)("tr", {
2406
+ parentName: "tbody"
2407
+ }, (0, _react2.mdx)("td", {
2408
+ parentName: "tr",
2409
+ "align": null
2410
+ }, (0, _react2.mdx)("inlineCode", {
2411
+ parentName: "td"
2412
+ }, "--skip-config")), (0, _react2.mdx)("td", {
2413
+ parentName: "tr",
2414
+ "align": "center"
2415
+ }), (0, _react2.mdx)("td", {
2416
+ parentName: "tr",
2417
+ "align": null
2418
+ }, "do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "format"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2388
2419
  parentName: "p"
2389
2420
  }, "Workspace only"), ": yes", (0, _react2.mdx)("br", {
2390
2421
  parentName: "p"
@@ -3643,7 +3674,51 @@ function MDXContent(_ref) {
3643
3674
  }, "-j")), (0, _react2.mdx)("td", {
3644
3675
  parentName: "tr",
3645
3676
  "align": null
3646
- }, "json format")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "login"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3677
+ }, "json format")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "log-file"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3678
+ parentName: "p"
3679
+ }, "Workspace only"), ": yes", (0, _react2.mdx)("br", {
3680
+ parentName: "p"
3681
+ }), "\n", (0, _react2.mdx)("strong", {
3682
+ parentName: "p"
3683
+ }, "Description"), ": EXPERIMENTAL. show file history"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
3684
+ parentName: "p"
3685
+ }, "bit log-file <filepath>")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
3686
+ parentName: "table"
3687
+ }, (0, _react2.mdx)("tr", {
3688
+ parentName: "thead"
3689
+ }, (0, _react2.mdx)("th", {
3690
+ parentName: "tr",
3691
+ "align": null
3692
+ }, (0, _react2.mdx)("strong", {
3693
+ parentName: "th"
3694
+ }, "Option")), (0, _react2.mdx)("th", {
3695
+ parentName: "tr",
3696
+ "align": "center"
3697
+ }, (0, _react2.mdx)("strong", {
3698
+ parentName: "th"
3699
+ }, "Option alias")), (0, _react2.mdx)("th", {
3700
+ parentName: "tr",
3701
+ "align": null
3702
+ }, (0, _react2.mdx)("strong", {
3703
+ parentName: "th"
3704
+ }, "Description")))), (0, _react2.mdx)("tbody", {
3705
+ parentName: "table"
3706
+ }, (0, _react2.mdx)("tr", {
3707
+ parentName: "tbody"
3708
+ }, (0, _react2.mdx)("td", {
3709
+ parentName: "tr",
3710
+ "align": null
3711
+ }, (0, _react2.mdx)("inlineCode", {
3712
+ parentName: "td"
3713
+ }, "--one-line")), (0, _react2.mdx)("td", {
3714
+ parentName: "tr",
3715
+ "align": "center"
3716
+ }, (0, _react2.mdx)("inlineCode", {
3717
+ parentName: "td"
3718
+ }, "-o")), (0, _react2.mdx)("td", {
3719
+ parentName: "tr",
3720
+ "align": null
3721
+ }, "show each log entry in one line")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "login"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3647
3722
  parentName: "p"
3648
3723
  }, "Workspace only"), ": no", (0, _react2.mdx)("br", {
3649
3724
  parentName: "p"
@@ -5140,7 +5215,7 @@ function MDXContent(_ref) {
5140
5215
  }), (0, _react2.mdx)("td", {
5141
5216
  parentName: "tr",
5142
5217
  "align": null
5143
- }, "show extra data: full snap hashes for staged, divergence point for lanes and updates-from-main for forked lanes")), (0, _react2.mdx)("tr", {
5218
+ }, "show extra data: full snap hashes for staged and divergence point for lanes")), (0, _react2.mdx)("tr", {
5144
5219
  parentName: "tbody"
5145
5220
  }, (0, _react2.mdx)("td", {
5146
5221
  parentName: "tr",