@teambit/harmony.content.cli-reference 1.95.26 → 1.95.29

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.
@@ -1086,17 +1086,33 @@
1086
1086
  "group": "development"
1087
1087
  },
1088
1088
  {
1089
- "name": "unset <component>",
1089
+ "name": "unset <pattern>",
1090
1090
  "options": [],
1091
- "description": "unset an environment from component(s)",
1092
- "extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit env unset \"org.scope/utils/**\"`. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nto validate the pattern before running this command, run `bit pattern <pattern>`.\n",
1091
+ "description": "unset an environment from component(s) that was set by \"bit env set\"",
1092
+ "extendedDescription": "keep in mind that this doesn't remove envs that are set in the variants.\nin only removes envs that appear in the .bitmap file, which were previously configured via \"bit env set\".\nthe purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.\nyou can use a `<pattern>` for multiple component ids, such as `bit env unset \"org.scope/utils/**\"`. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nto validate the pattern before running this command, run `bit pattern <pattern>`.\n",
1093
1093
  "group": "development"
1094
1094
  },
1095
1095
  {
1096
1096
  "name": "replace <old-env> <new-env>",
1097
1097
  "options": [],
1098
1098
  "description": "replace an existing env with another env for all components using the old env",
1099
- "group": "development"
1099
+ "group": "development",
1100
+ "arguments": [
1101
+ {
1102
+ "name": "old-env",
1103
+ "description": "current environment id"
1104
+ },
1105
+ {
1106
+ "name": "new-env",
1107
+ "description": "target environment id"
1108
+ }
1109
+ ],
1110
+ "examples": [
1111
+ {
1112
+ "cmd": "replace teambit.harmony/aspect teambit.harmony/node",
1113
+ "description": "all components using aspect env, will be replaced with node env"
1114
+ }
1115
+ ]
1100
1116
  }
1101
1117
  ]
1102
1118
  },
@@ -1830,30 +1846,40 @@
1830
1846
  "ver <version>",
1831
1847
  "tag with the given version"
1832
1848
  ],
1849
+ [
1850
+ "l",
1851
+ "increment <level>",
1852
+ "options are: [major, premajor, minor, preminor, patch, prepatch, prerelease], default to patch"
1853
+ ],
1854
+ [
1855
+ "",
1856
+ "prerelease-id <id>",
1857
+ "prerelease identifier (e.g. \"dev\" to get \"1.0.0-dev.1\")"
1858
+ ],
1833
1859
  [
1834
1860
  "p",
1835
1861
  "patch",
1836
- "increment the patch version number"
1862
+ "syntactic sugar for \"--increment patch\""
1837
1863
  ],
1838
1864
  [
1839
1865
  "",
1840
1866
  "minor",
1841
- "increment the minor version number"
1867
+ "syntactic sugar for \"--increment minor\""
1842
1868
  ],
1843
1869
  [
1844
1870
  "",
1845
1871
  "major",
1846
- "increment the major version number"
1872
+ "syntactic sugar for \"--increment major\""
1847
1873
  ],
1848
1874
  [
1849
1875
  "",
1850
1876
  "snapped",
1851
- "tag components that their head is a snap (not a tag)"
1877
+ "EXPERIMENTAL. tag components that their head is a snap (not a tag)"
1852
1878
  ],
1853
1879
  [
1854
1880
  "",
1855
1881
  "pre-release [identifier]",
1856
- "EXPERIMENTAL. increment a pre-release version (e.g. 1.0.0-dev.1)"
1882
+ "DEPRECATED. use \"-l prerelease\" (and --prerelease-id) instead"
1857
1883
  ],
1858
1884
  [
1859
1885
  "",
@@ -1930,7 +1956,13 @@
1930
1956
  "extendedDescription": "if no ids are provided, it will tag all new and modified components.\nif component ids are entered, you can specify a version per id using \"@\" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major\nhttps://bit.dev/components/tags\nyou can use a pattern for multiple ids, such as bit tag \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1931
1957
  "group": "development",
1932
1958
  "private": false,
1933
- "remoteOp": true
1959
+ "remoteOp": true,
1960
+ "examples": [
1961
+ {
1962
+ "cmd": "tag --ver 1.0.0",
1963
+ "description": "tag all components to version 1.0.0"
1964
+ }
1965
+ ]
1934
1966
  },
1935
1967
  {
1936
1968
  "name": "snap [id]",
@@ -1987,8 +2019,8 @@
1987
2019
  "DEPRECATED (use \"--skip-tests\" or \"--unmodified\" instead). force-snap even if tests are failing and even when component has not changed"
1988
2020
  ]
1989
2021
  ],
1990
- "description": "record component changes.\nhttps://bit.dev/components/snaps\nyou can use a pattern for multiple ids, such as bit snap \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1991
- "extendedDescription": "",
2022
+ "description": "EXPERIMENTAL. record component changes",
2023
+ "extendedDescription": "https://bit.dev/components/snaps\nyou can use a pattern for multiple ids, such as bit snap \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1992
2024
  "group": "ungrouped",
1993
2025
  "private": true
1994
2026
  },
@@ -2340,6 +2372,11 @@
2340
2372
  "",
2341
2373
  "parents",
2342
2374
  "EXPERIMENTAL. show parents and lanes data"
2375
+ ],
2376
+ [
2377
+ "j",
2378
+ "json",
2379
+ "json format"
2343
2380
  ]
2344
2381
  ],
2345
2382
  "description": "show components(s) version history",
@@ -2347,7 +2384,13 @@
2347
2384
  "group": "info",
2348
2385
  "private": false,
2349
2386
  "remoteOp": true,
2350
- "skipWorkspace": true
2387
+ "skipWorkspace": true,
2388
+ "arguments": [
2389
+ {
2390
+ "name": "id",
2391
+ "description": "component-id or component-name"
2392
+ }
2393
+ ]
2351
2394
  },
2352
2395
  {
2353
2396
  "name": "deprecate <id>",
@@ -2630,6 +2673,11 @@
2630
2673
  "",
2631
2674
  "keep-readme",
2632
2675
  "skip deleting the lane readme component after merging"
2676
+ ],
2677
+ [
2678
+ "",
2679
+ "squash",
2680
+ "squash multiple snaps. keep the last one only"
2633
2681
  ]
2634
2682
  ],
2635
2683
  "description": "merge a local or a remote lane",
package/cli-reference.mdx CHANGED
@@ -512,9 +512,12 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
512
512
 
513
513
  ### envs unset
514
514
 
515
- **Usage**: `envs unset <component>`
515
+ **Usage**: `envs unset <pattern>`
516
516
 
517
- **Description**: unset an environment from component(s)
517
+ **Description**: unset an environment from component(s) that was set by "bit env set"
518
+ keep in mind that this doesn't remove envs that are set in the variants.
519
+ in only removes envs that appear in the .bitmap file, which were previously configured via "bit env set".
520
+ the purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.
518
521
  you can use a `<pattern>` for multiple component ids, such as `bit env unset "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
519
522
  always wrap the pattern with quotes to avoid collision with shell commands.
520
523
  to validate the pattern before running this command, run `bit pattern <pattern>`.
@@ -766,6 +769,7 @@ https://bit.dev/docs/reference/cli-reference#log
766
769
  | ----------- | :--------------: | ----------------------------------------- |
767
770
  | `--remote` | `-r` | show log of a remote component |
768
771
  | `--parents` | | EXPERIMENTAL. show parents and lanes data |
772
+ | `--json` | `-j` | json format |
769
773
 
770
774
  ---
771
775
 
@@ -1144,11 +1148,13 @@ you can use a pattern for multiple ids, such as bit tag "utils/\*". (wrap the pa
1144
1148
  | `--unmodified` | | include unmodified components (by default, only new and modified components are tagged) |
1145
1149
  | `--editor [editor]` | | EXPERIMENTAL. open an editor to edit the tag messages per component, optionally specify the editor-name, default to vim |
1146
1150
  | `--ver <version>` | `-v` | tag with the given version |
1147
- | `--patch` | `-p` | increment the patch version number |
1148
- | `--minor` | | increment the minor version number |
1149
- | `--major` | | increment the major version number |
1150
- | `--snapped` | | tag components that their head is a snap (not a tag) |
1151
- | `--pre-release [identifier]` | | EXPERIMENTAL. increment a pre-release version (e.g. 1.0.0-dev.1) |
1151
+ | `--increment <level>` | `-l` | options are: [major, premajor, minor, preminor, patch, prepatch, prerelease], default to patch |
1152
+ | `--prerelease-id <id>` | | prerelease identifier (e.g. "dev" to get "1.0.0-dev.1") |
1153
+ | `--patch` | `-p` | syntactic sugar for "--increment patch" |
1154
+ | `--minor` | | syntactic sugar for "--increment minor" |
1155
+ | `--major` | | syntactic sugar for "--increment major" |
1156
+ | `--snapped` | | EXPERIMENTAL. tag components that their head is a snap (not a tag) |
1157
+ | `--pre-release [identifier]` | | DEPRECATED. use "-l prerelease" (and --prerelease-id) instead |
1152
1158
  | `--skip-tests` | | skip running component tests during tag process |
1153
1159
  | `--skip-auto-tag` | | skip auto tagging dependents |
1154
1160
  | `--soft` | | do not persist. only keep note of the changes to be made |
@@ -1086,17 +1086,33 @@
1086
1086
  "group": "development"
1087
1087
  },
1088
1088
  {
1089
- "name": "unset <component>",
1089
+ "name": "unset <pattern>",
1090
1090
  "options": [],
1091
- "description": "unset an environment from component(s)",
1092
- "extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit env unset \"org.scope/utils/**\"`. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nto validate the pattern before running this command, run `bit pattern <pattern>`.\n",
1091
+ "description": "unset an environment from component(s) that was set by \"bit env set\"",
1092
+ "extendedDescription": "keep in mind that this doesn't remove envs that are set in the variants.\nin only removes envs that appear in the .bitmap file, which were previously configured via \"bit env set\".\nthe purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.\nyou can use a `<pattern>` for multiple component ids, such as `bit env unset \"org.scope/utils/**\"`. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nto validate the pattern before running this command, run `bit pattern <pattern>`.\n",
1093
1093
  "group": "development"
1094
1094
  },
1095
1095
  {
1096
1096
  "name": "replace <old-env> <new-env>",
1097
1097
  "options": [],
1098
1098
  "description": "replace an existing env with another env for all components using the old env",
1099
- "group": "development"
1099
+ "group": "development",
1100
+ "arguments": [
1101
+ {
1102
+ "name": "old-env",
1103
+ "description": "current environment id"
1104
+ },
1105
+ {
1106
+ "name": "new-env",
1107
+ "description": "target environment id"
1108
+ }
1109
+ ],
1110
+ "examples": [
1111
+ {
1112
+ "cmd": "replace teambit.harmony/aspect teambit.harmony/node",
1113
+ "description": "all components using aspect env, will be replaced with node env"
1114
+ }
1115
+ ]
1100
1116
  }
1101
1117
  ]
1102
1118
  },
@@ -1830,30 +1846,40 @@
1830
1846
  "ver <version>",
1831
1847
  "tag with the given version"
1832
1848
  ],
1849
+ [
1850
+ "l",
1851
+ "increment <level>",
1852
+ "options are: [major, premajor, minor, preminor, patch, prepatch, prerelease], default to patch"
1853
+ ],
1854
+ [
1855
+ "",
1856
+ "prerelease-id <id>",
1857
+ "prerelease identifier (e.g. \"dev\" to get \"1.0.0-dev.1\")"
1858
+ ],
1833
1859
  [
1834
1860
  "p",
1835
1861
  "patch",
1836
- "increment the patch version number"
1862
+ "syntactic sugar for \"--increment patch\""
1837
1863
  ],
1838
1864
  [
1839
1865
  "",
1840
1866
  "minor",
1841
- "increment the minor version number"
1867
+ "syntactic sugar for \"--increment minor\""
1842
1868
  ],
1843
1869
  [
1844
1870
  "",
1845
1871
  "major",
1846
- "increment the major version number"
1872
+ "syntactic sugar for \"--increment major\""
1847
1873
  ],
1848
1874
  [
1849
1875
  "",
1850
1876
  "snapped",
1851
- "tag components that their head is a snap (not a tag)"
1877
+ "EXPERIMENTAL. tag components that their head is a snap (not a tag)"
1852
1878
  ],
1853
1879
  [
1854
1880
  "",
1855
1881
  "pre-release [identifier]",
1856
- "EXPERIMENTAL. increment a pre-release version (e.g. 1.0.0-dev.1)"
1882
+ "DEPRECATED. use \"-l prerelease\" (and --prerelease-id) instead"
1857
1883
  ],
1858
1884
  [
1859
1885
  "",
@@ -1930,7 +1956,13 @@
1930
1956
  "extendedDescription": "if no ids are provided, it will tag all new and modified components.\nif component ids are entered, you can specify a version per id using \"@\" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major\nhttps://bit.dev/components/tags\nyou can use a pattern for multiple ids, such as bit tag \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1931
1957
  "group": "development",
1932
1958
  "private": false,
1933
- "remoteOp": true
1959
+ "remoteOp": true,
1960
+ "examples": [
1961
+ {
1962
+ "cmd": "tag --ver 1.0.0",
1963
+ "description": "tag all components to version 1.0.0"
1964
+ }
1965
+ ]
1934
1966
  },
1935
1967
  {
1936
1968
  "name": "snap [id]",
@@ -1987,8 +2019,8 @@
1987
2019
  "DEPRECATED (use \"--skip-tests\" or \"--unmodified\" instead). force-snap even if tests are failing and even when component has not changed"
1988
2020
  ]
1989
2021
  ],
1990
- "description": "record component changes.\nhttps://bit.dev/components/snaps\nyou can use a pattern for multiple ids, such as bit snap \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1991
- "extendedDescription": "",
2022
+ "description": "EXPERIMENTAL. record component changes",
2023
+ "extendedDescription": "https://bit.dev/components/snaps\nyou can use a pattern for multiple ids, such as bit snap \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1992
2024
  "group": "ungrouped",
1993
2025
  "private": true
1994
2026
  },
@@ -2340,6 +2372,11 @@
2340
2372
  "",
2341
2373
  "parents",
2342
2374
  "EXPERIMENTAL. show parents and lanes data"
2375
+ ],
2376
+ [
2377
+ "j",
2378
+ "json",
2379
+ "json format"
2343
2380
  ]
2344
2381
  ],
2345
2382
  "description": "show components(s) version history",
@@ -2347,7 +2384,13 @@
2347
2384
  "group": "info",
2348
2385
  "private": false,
2349
2386
  "remoteOp": true,
2350
- "skipWorkspace": true
2387
+ "skipWorkspace": true,
2388
+ "arguments": [
2389
+ {
2390
+ "name": "id",
2391
+ "description": "component-id or component-name"
2392
+ }
2393
+ ]
2351
2394
  },
2352
2395
  {
2353
2396
  "name": "deprecate <id>",
@@ -2630,6 +2673,11 @@
2630
2673
  "",
2631
2674
  "keep-readme",
2632
2675
  "skip deleting the lane readme component after merging"
2676
+ ],
2677
+ [
2678
+ "",
2679
+ "squash",
2680
+ "squash multiple snaps. keep the last one only"
2633
2681
  ]
2634
2682
  ],
2635
2683
  "description": "merge a local or a remote lane",
@@ -2041,9 +2041,15 @@ function MDXContent(_ref) {
2041
2041
  parentName: "p"
2042
2042
  }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
2043
2043
  parentName: "p"
2044
- }, "envs unset <component>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2044
+ }, "envs unset <pattern>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2045
2045
  parentName: "p"
2046
- }, "Description"), ": unset an environment from component(s)", (0, _react2.mdx)("br", {
2046
+ }, "Description"), ": unset an environment from component(s) that was set by \"bit env set\"", (0, _react2.mdx)("br", {
2047
+ parentName: "p"
2048
+ }), "\n", "keep in mind that this doesn't remove envs that are set in the variants.", (0, _react2.mdx)("br", {
2049
+ parentName: "p"
2050
+ }), "\n", "in only removes envs that appear in the .bitmap file, which were previously configured via \"bit env set\".", (0, _react2.mdx)("br", {
2051
+ parentName: "p"
2052
+ }), "\n", "the purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.", (0, _react2.mdx)("br", {
2047
2053
  parentName: "p"
2048
2054
  }), "\n", "you can use a ", (0, _react2.mdx)("inlineCode", {
2049
2055
  parentName: "p"
@@ -3513,7 +3519,22 @@ function MDXContent(_ref) {
3513
3519
  }), (0, _react2.mdx)("td", {
3514
3520
  parentName: "tr",
3515
3521
  "align": null
3516
- }, "EXPERIMENTAL. show parents and lanes data")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "login"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3522
+ }, "EXPERIMENTAL. show parents and lanes data")), (0, _react2.mdx)("tr", {
3523
+ parentName: "tbody"
3524
+ }, (0, _react2.mdx)("td", {
3525
+ parentName: "tr",
3526
+ "align": null
3527
+ }, (0, _react2.mdx)("inlineCode", {
3528
+ parentName: "td"
3529
+ }, "--json")), (0, _react2.mdx)("td", {
3530
+ parentName: "tr",
3531
+ "align": "center"
3532
+ }, (0, _react2.mdx)("inlineCode", {
3533
+ parentName: "td"
3534
+ }, "-j")), (0, _react2.mdx)("td", {
3535
+ parentName: "tr",
3536
+ "align": null
3537
+ }, "json format")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "login"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
3517
3538
  parentName: "p"
3518
3539
  }, "Workspace only"), ": no", (0, _react2.mdx)("br", {
3519
3540
  parentName: "p"
@@ -5087,6 +5108,34 @@ function MDXContent(_ref) {
5087
5108
  "align": null
5088
5109
  }, (0, _react2.mdx)("inlineCode", {
5089
5110
  parentName: "td"
5111
+ }, "--increment <level>")), (0, _react2.mdx)("td", {
5112
+ parentName: "tr",
5113
+ "align": "center"
5114
+ }, (0, _react2.mdx)("inlineCode", {
5115
+ parentName: "td"
5116
+ }, "-l")), (0, _react2.mdx)("td", {
5117
+ parentName: "tr",
5118
+ "align": null
5119
+ }, "options are: ", "[major, premajor, minor, preminor, patch, prepatch, prerelease]", ", default to patch")), (0, _react2.mdx)("tr", {
5120
+ parentName: "tbody"
5121
+ }, (0, _react2.mdx)("td", {
5122
+ parentName: "tr",
5123
+ "align": null
5124
+ }, (0, _react2.mdx)("inlineCode", {
5125
+ parentName: "td"
5126
+ }, "--prerelease-id <id>")), (0, _react2.mdx)("td", {
5127
+ parentName: "tr",
5128
+ "align": "center"
5129
+ }), (0, _react2.mdx)("td", {
5130
+ parentName: "tr",
5131
+ "align": null
5132
+ }, "prerelease identifier (e.g. \"dev\" to get \"1.0.0-dev.1\")")), (0, _react2.mdx)("tr", {
5133
+ parentName: "tbody"
5134
+ }, (0, _react2.mdx)("td", {
5135
+ parentName: "tr",
5136
+ "align": null
5137
+ }, (0, _react2.mdx)("inlineCode", {
5138
+ parentName: "td"
5090
5139
  }, "--patch")), (0, _react2.mdx)("td", {
5091
5140
  parentName: "tr",
5092
5141
  "align": "center"
@@ -5095,7 +5144,7 @@ function MDXContent(_ref) {
5095
5144
  }, "-p")), (0, _react2.mdx)("td", {
5096
5145
  parentName: "tr",
5097
5146
  "align": null
5098
- }, "increment the patch version number")), (0, _react2.mdx)("tr", {
5147
+ }, "syntactic sugar for \"--increment patch\"")), (0, _react2.mdx)("tr", {
5099
5148
  parentName: "tbody"
5100
5149
  }, (0, _react2.mdx)("td", {
5101
5150
  parentName: "tr",
@@ -5108,7 +5157,7 @@ function MDXContent(_ref) {
5108
5157
  }), (0, _react2.mdx)("td", {
5109
5158
  parentName: "tr",
5110
5159
  "align": null
5111
- }, "increment the minor version number")), (0, _react2.mdx)("tr", {
5160
+ }, "syntactic sugar for \"--increment minor\"")), (0, _react2.mdx)("tr", {
5112
5161
  parentName: "tbody"
5113
5162
  }, (0, _react2.mdx)("td", {
5114
5163
  parentName: "tr",
@@ -5121,7 +5170,7 @@ function MDXContent(_ref) {
5121
5170
  }), (0, _react2.mdx)("td", {
5122
5171
  parentName: "tr",
5123
5172
  "align": null
5124
- }, "increment the major version number")), (0, _react2.mdx)("tr", {
5173
+ }, "syntactic sugar for \"--increment major\"")), (0, _react2.mdx)("tr", {
5125
5174
  parentName: "tbody"
5126
5175
  }, (0, _react2.mdx)("td", {
5127
5176
  parentName: "tr",
@@ -5134,7 +5183,7 @@ function MDXContent(_ref) {
5134
5183
  }), (0, _react2.mdx)("td", {
5135
5184
  parentName: "tr",
5136
5185
  "align": null
5137
- }, "tag components that their head is a snap (not a tag)")), (0, _react2.mdx)("tr", {
5186
+ }, "EXPERIMENTAL. tag components that their head is a snap (not a tag)")), (0, _react2.mdx)("tr", {
5138
5187
  parentName: "tbody"
5139
5188
  }, (0, _react2.mdx)("td", {
5140
5189
  parentName: "tr",
@@ -5147,7 +5196,7 @@ function MDXContent(_ref) {
5147
5196
  }), (0, _react2.mdx)("td", {
5148
5197
  parentName: "tr",
5149
5198
  "align": null
5150
- }, "EXPERIMENTAL. increment a pre-release version (e.g. 1.0.0-dev.1)")), (0, _react2.mdx)("tr", {
5199
+ }, "DEPRECATED. use \"-l prerelease\" (and --prerelease-id) instead")), (0, _react2.mdx)("tr", {
5151
5200
  parentName: "tbody"
5152
5201
  }, (0, _react2.mdx)("td", {
5153
5202
  parentName: "tr",