@teambit/harmony.content.cli-reference 1.95.19 → 1.95.22

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.
package/cli-reference.mdx CHANGED
@@ -553,6 +553,7 @@ you can use a pattern for multiple ids, such as bit export remote-scope "utils/\
553
553
  | `--origin-directly` | | HARMONY ONLY. avoid export to the central hub, instead, export directly to the original scopes. not recommended! |
554
554
  | `--resume <string>` | | in case the previous export failed and suggested to resume with an export-id, enter the id |
555
555
  | `--ignore-missing-artifacts` | | EXPERIMENTAL. don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote |
556
+ | `--json` | `-j` | show output in json format |
556
557
 
557
558
  ---
558
559
 
@@ -1018,6 +1019,18 @@ alternatively, exporting to any one of the failed scopes, throws server-is-busy
1018
1019
 
1019
1020
  `bit scope <sub-command>`
1020
1021
 
1022
+ ### scope set
1023
+
1024
+ **Usage**: `scope set <scope-name> [pattern]`
1025
+
1026
+ **Description**: set the default-scope
1027
+ set a new scope in the workspace.jsonc.
1028
+ if "pattern" is provided, the default-scope will be set to the new components matching the criteria.
1029
+
1030
+ you can use a `<pattern>` for multiple component ids, such as `bit scope set scope-name "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
1031
+ always wrap the pattern with quotes to avoid collision with shell commands.
1032
+ to validate the pattern before running this command, run `bit pattern <pattern>`.
1033
+
1021
1034
  ### scope rename
1022
1035
 
1023
1036
  **Usage**: `scope rename <old-name> <new-name>`
@@ -2230,7 +2230,22 @@ function MDXContent(_ref) {
2230
2230
  }), (0, _react2.mdx)("td", {
2231
2231
  parentName: "tr",
2232
2232
  "align": null
2233
- }, "EXPERIMENTAL. don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "fork"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2233
+ }, "EXPERIMENTAL. don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote")), (0, _react2.mdx)("tr", {
2234
+ parentName: "tbody"
2235
+ }, (0, _react2.mdx)("td", {
2236
+ parentName: "tr",
2237
+ "align": null
2238
+ }, (0, _react2.mdx)("inlineCode", {
2239
+ parentName: "td"
2240
+ }, "--json")), (0, _react2.mdx)("td", {
2241
+ parentName: "tr",
2242
+ "align": "center"
2243
+ }, (0, _react2.mdx)("inlineCode", {
2244
+ parentName: "td"
2245
+ }, "-j")), (0, _react2.mdx)("td", {
2246
+ parentName: "tr",
2247
+ "align": null
2248
+ }, "show output in json format")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "fork"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
2234
2249
  parentName: "p"
2235
2250
  }, "Workspace only"), ": no", (0, _react2.mdx)("br", {
2236
2251
  parentName: "p"
@@ -4562,7 +4577,27 @@ function MDXContent(_ref) {
4562
4577
  parentName: "p"
4563
4578
  }, "Description"), ": EXPERIMENTAL. manage scope-name"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
4564
4579
  parentName: "p"
4565
- }, "bit scope <sub-command>")), (0, _react2.mdx)("h3", null, "scope rename"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4580
+ }, "bit scope <sub-command>")), (0, _react2.mdx)("h3", null, "scope set"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4581
+ parentName: "p"
4582
+ }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
4583
+ parentName: "p"
4584
+ }, "scope set <scope-name> [pattern]")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4585
+ parentName: "p"
4586
+ }, "Description"), ": set the default-scope", (0, _react2.mdx)("br", {
4587
+ parentName: "p"
4588
+ }), "\n", "set a new scope in the workspace.jsonc.", (0, _react2.mdx)("br", {
4589
+ parentName: "p"
4590
+ }), "\n", "if \"pattern\" is provided, the default-scope will be set to the new components matching the criteria."), (0, _react2.mdx)("p", null, "you can use a ", (0, _react2.mdx)("inlineCode", {
4591
+ parentName: "p"
4592
+ }, "<pattern>"), " for multiple component ids, such as ", (0, _react2.mdx)("inlineCode", {
4593
+ parentName: "p"
4594
+ }, "bit scope set scope-name \"org.scope/utils/**\""), ". use comma to separate patterns and \"!\" to exclude. e.g. \"ui/", "*", "*", ", !ui/button\"", (0, _react2.mdx)("br", {
4595
+ parentName: "p"
4596
+ }), "\n", "always wrap the pattern with quotes to avoid collision with shell commands.", (0, _react2.mdx)("br", {
4597
+ parentName: "p"
4598
+ }), "\n", "to validate the pattern before running this command, run ", (0, _react2.mdx)("inlineCode", {
4599
+ parentName: "p"
4600
+ }, "bit pattern <pattern>"), "."), (0, _react2.mdx)("h3", null, "scope rename"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4566
4601
  parentName: "p"
4567
4602
  }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
4568
4603
  parentName: "p"