@teambit/harmony.content.cli-reference 1.95.24 → 1.95.27

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.
@@ -32,7 +32,7 @@ function MDXContent(_ref) {
32
32
  return (0, _react2.mdx)(MDXLayout, _extends({}, layoutProps, props, {
33
33
  components: components,
34
34
  mdxType: "MDXLayout"
35
- }), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("p", null, "id: cli-all"), (0, _react2.mdx)("h2", null, "title: CLI Commands"), (0, _react2.mdx)("h1", null, "CLI Reference"), (0, _react2.mdx)("p", null, "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."), (0, _react2.mdx)("h2", null, "add"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
35
+ }), (0, _react2.mdx)("h1", null, "CLI Reference"), (0, _react2.mdx)("p", null, "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."), (0, _react2.mdx)("h2", null, "add"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
36
36
  parentName: "p"
37
37
  }, "Alias"), ": ", (0, _react2.mdx)("inlineCode", {
38
38
  parentName: "p"
@@ -44,7 +44,7 @@ function MDXContent(_ref) {
44
44
  parentName: "p"
45
45
  }), "\n", (0, _react2.mdx)("strong", {
46
46
  parentName: "p"
47
- }, "Description"), ": add any subset of files to be tracked as a component(s)", (0, _react2.mdx)("br", {
47
+ }, "Description"), ": Add any subset of files to be tracked as a component(s).", (0, _react2.mdx)("br", {
48
48
  parentName: "p"
49
49
  }), "\n", "all flags support glob patterns and {PARENT} {FILE_NAME} annotations", (0, _react2.mdx)("br", {
50
50
  parentName: "p"
@@ -235,7 +235,7 @@ function MDXContent(_ref) {
235
235
  parentName: "p"
236
236
  }), "\n", (0, _react2.mdx)("strong", {
237
237
  parentName: "p"
238
- }, "Description"), ": EXPERIMENTAL. list and download components artifacts.", (0, _react2.mdx)("br", {
238
+ }, "Description"), ": EXPERIMENTAL. list and download components artifacts", (0, _react2.mdx)("br", {
239
239
  parentName: "p"
240
240
  }), "\n", "artifacts are created on isolated capsules during tag or snap commands.", (0, _react2.mdx)("br", {
241
241
  parentName: "p"
@@ -645,7 +645,7 @@ function MDXContent(_ref) {
645
645
  parentName: "p"
646
646
  }), "\n", (0, _react2.mdx)("strong", {
647
647
  parentName: "p"
648
- }, "Description"), ": manage capsules.", (0, _react2.mdx)("br", {
648
+ }, "Description"), ": manage capsules", (0, _react2.mdx)("br", {
649
649
  parentName: "p"
650
650
  }), "\n", "a capsule is a directory contains the component code, isolated from the workspace.", (0, _react2.mdx)("br", {
651
651
  parentName: "p"
@@ -850,7 +850,9 @@ function MDXContent(_ref) {
850
850
  parentName: "p"
851
851
  }, "capsule delete")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
852
852
  parentName: "p"
853
- }, "Description"), ": delete capsules. with no args, only workspace's capsules are deleted"), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
853
+ }, "Description"), ": delete capsules", (0, _react2.mdx)("br", {
854
+ parentName: "p"
855
+ }), "\n", "with no args, only workspace's capsules are deleted"), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
854
856
  parentName: "table"
855
857
  }, (0, _react2.mdx)("tr", {
856
858
  parentName: "thead"
@@ -968,15 +970,17 @@ function MDXContent(_ref) {
968
970
  parentName: "p"
969
971
  }), "\n", (0, _react2.mdx)("strong", {
970
972
  parentName: "p"
971
- }, "Description"), ": switch between component versions or remove local changes", (0, _react2.mdx)("br", {
973
+ }, "Description"), ": switch between component versions or remove local changes"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
974
+ parentName: "p"
975
+ }, "bit checkout <version> [ids...]"), " => checkout the specified ids (or all components when --all is used) to the specified version", (0, _react2.mdx)("br", {
972
976
  parentName: "p"
973
977
  }), "\n", "", (0, _react2.mdx)("inlineCode", {
974
978
  parentName: "p"
975
- }, "bit checkout <version> [ids...]"), " => checkout the specified ids (or all components when --all is used) to the specified version", (0, _react2.mdx)("br", {
979
+ }, "bit checkout latest"), " => checkout all components to their latest versions", (0, _react2.mdx)("br", {
976
980
  parentName: "p"
977
981
  }), "\n", "", (0, _react2.mdx)("inlineCode", {
978
982
  parentName: "p"
979
- }, "bit checkout latest [ids...]"), " => checkout the specified ids (or all components when --all is used) to their latest versions", (0, _react2.mdx)("br", {
983
+ }, "bit checkout latest [ids...]"), " => checkout the specified ids to their latest versions", (0, _react2.mdx)("br", {
980
984
  parentName: "p"
981
985
  }), "\n", "", (0, _react2.mdx)("inlineCode", {
982
986
  parentName: "p"
@@ -1286,7 +1290,22 @@ function MDXContent(_ref) {
1286
1290
  }), (0, _react2.mdx)("td", {
1287
1291
  parentName: "tr",
1288
1292
  "align": null
1289
- }, "metadata/front-matter to place at the top of the .md file, enter as an object e.g. --metadata.id=cli --metadata.title=commands")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "compile"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1293
+ }, "metadata/front-matter to place at the top of the .md file, enter as an object e.g. --metadata.id=cli --metadata.title=commands")), (0, _react2.mdx)("tr", {
1294
+ parentName: "tbody"
1295
+ }, (0, _react2.mdx)("td", {
1296
+ parentName: "tr",
1297
+ "align": null
1298
+ }, (0, _react2.mdx)("inlineCode", {
1299
+ parentName: "td"
1300
+ }, "--json")), (0, _react2.mdx)("td", {
1301
+ parentName: "tr",
1302
+ "align": "center"
1303
+ }, (0, _react2.mdx)("inlineCode", {
1304
+ parentName: "td"
1305
+ }, "-j")), (0, _react2.mdx)("td", {
1306
+ parentName: "tr",
1307
+ "align": null
1308
+ }, "output the commands info as JSON")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "compile"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
1290
1309
  parentName: "p"
1291
1310
  }, "Workspace only"), ": yes", (0, _react2.mdx)("br", {
1292
1311
  parentName: "p"
@@ -1433,9 +1452,9 @@ function MDXContent(_ref) {
1433
1452
  parentName: "p"
1434
1453
  }), "\n", (0, _react2.mdx)("strong", {
1435
1454
  parentName: "p"
1436
- }, "Description"), ": global config management.", (0, _react2.mdx)("br", {
1455
+ }, "Description"), ": global config management", (0, _react2.mdx)("br", {
1437
1456
  parentName: "p"
1438
- }), "\n", "", (0, _react2.mdx)("a", {
1457
+ }), "\n", (0, _react2.mdx)("a", {
1439
1458
  parentName: "p",
1440
1459
  "href": "https://bit.dev/docs/config/bit-config"
1441
1460
  }, "https://bit.dev/docs/config/bit-config")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
@@ -2022,9 +2041,15 @@ function MDXContent(_ref) {
2022
2041
  parentName: "p"
2023
2042
  }, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
2024
2043
  parentName: "p"
2025
- }, "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
+ parentName: "p"
2046
+ }, "Description"), ": unset an environment from component(s) that was set by \"bit env set\"", (0, _react2.mdx)("br", {
2026
2047
  parentName: "p"
2027
- }, "Description"), ": unset an environment from component(s)", (0, _react2.mdx)("br", {
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", {
2028
2053
  parentName: "p"
2029
2054
  }), "\n", "you can use a ", (0, _react2.mdx)("inlineCode", {
2030
2055
  parentName: "p"
@@ -2054,7 +2079,7 @@ function MDXContent(_ref) {
2054
2079
  parentName: "p"
2055
2080
  }), "\n", (0, _react2.mdx)("strong", {
2056
2081
  parentName: "p"
2057
- }, "Description"), ": export components to a remote scope.", (0, _react2.mdx)("br", {
2082
+ }, "Description"), ": Export components to a remote scope", (0, _react2.mdx)("br", {
2058
2083
  parentName: "p"
2059
2084
  }), "\n", "bit export => export all staged components to their current scope, if checked out to a lane, export the lane as well", (0, _react2.mdx)("br", {
2060
2085
  parentName: "p"
@@ -2546,7 +2571,7 @@ function MDXContent(_ref) {
2546
2571
  parentName: "p"
2547
2572
  }), "\n", (0, _react2.mdx)("strong", {
2548
2573
  parentName: "p"
2549
- }, "Description"), ": import components into your current workspace.", (0, _react2.mdx)("br", {
2574
+ }, "Description"), ": import components into your workspace", (0, _react2.mdx)("br", {
2550
2575
  parentName: "p"
2551
2576
  }), "\n", (0, _react2.mdx)("a", {
2552
2577
  parentName: "p",
@@ -2753,13 +2778,13 @@ function MDXContent(_ref) {
2753
2778
  "align": null
2754
2779
  }, (0, _react2.mdx)("inlineCode", {
2755
2780
  parentName: "td"
2756
- }, "--skip-lane")), (0, _react2.mdx)("td", {
2781
+ }, "--save-in-lane")), (0, _react2.mdx)("td", {
2757
2782
  parentName: "tr",
2758
2783
  "align": "center"
2759
2784
  }), (0, _react2.mdx)("td", {
2760
2785
  parentName: "tr",
2761
2786
  "align": null
2762
- }, "EXPERIMENTAL. when checked out to a lane, do not import the component into the lane, save it on main")), (0, _react2.mdx)("tr", {
2787
+ }, "EXPERIMENTAL. when checked out to a lane and the component is not on the remote-lane, save it in the lane (default to save on main)")), (0, _react2.mdx)("tr", {
2763
2788
  parentName: "tbody"
2764
2789
  }, (0, _react2.mdx)("td", {
2765
2790
  parentName: "tr",
@@ -2778,7 +2803,7 @@ function MDXContent(_ref) {
2778
2803
  parentName: "p"
2779
2804
  }), "\n", (0, _react2.mdx)("strong", {
2780
2805
  parentName: "p"
2781
- }, "Description"), ": initialize an empty bit scope", (0, _react2.mdx)("br", {
2806
+ }, "Description"), ": create or reinitialize an empty workspace", (0, _react2.mdx)("br", {
2782
2807
  parentName: "p"
2783
2808
  }), "\n", (0, _react2.mdx)("a", {
2784
2809
  parentName: "p",
@@ -3103,7 +3128,7 @@ function MDXContent(_ref) {
3103
3128
  parentName: "p"
3104
3129
  }), "\n", (0, _react2.mdx)("strong", {
3105
3130
  parentName: "p"
3106
- }, "Description"), ": generate symlinks to resolve module paths for imported components.", (0, _react2.mdx)("br", {
3131
+ }, "Description"), ": link components and core aspects", (0, _react2.mdx)("br", {
3107
3132
  parentName: "p"
3108
3133
  }), "\n", (0, _react2.mdx)("a", {
3109
3134
  parentName: "p",
@@ -3299,9 +3324,9 @@ function MDXContent(_ref) {
3299
3324
  parentName: "p"
3300
3325
  }), "\n", (0, _react2.mdx)("strong", {
3301
3326
  parentName: "p"
3302
- }, "Description"), ": list components on a local or a remote scope.", (0, _react2.mdx)("br", {
3327
+ }, "Description"), ": list components on a workspace, local scope or a remote scope.", (0, _react2.mdx)("br", {
3303
3328
  parentName: "p"
3304
- }), "\n", "", (0, _react2.mdx)("a", {
3329
+ }), "\n", (0, _react2.mdx)("a", {
3305
3330
  parentName: "p",
3306
3331
  "href": "https://bit.dev/docs/reference/cli-reference#list"
3307
3332
  }, "https://bit.dev/docs/reference/cli-reference#list")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
@@ -3438,9 +3463,9 @@ function MDXContent(_ref) {
3438
3463
  parentName: "p"
3439
3464
  }), "\n", (0, _react2.mdx)("strong", {
3440
3465
  parentName: "p"
3441
- }, "Description"), ": show components(s) tag history.", (0, _react2.mdx)("br", {
3466
+ }, "Description"), ": show components(s) version history", (0, _react2.mdx)("br", {
3442
3467
  parentName: "p"
3443
- }), "\n", "", (0, _react2.mdx)("a", {
3468
+ }), "\n", (0, _react2.mdx)("a", {
3444
3469
  parentName: "p",
3445
3470
  "href": "https://bit.dev/docs/reference/cli-reference#log"
3446
3471
  }, "https://bit.dev/docs/reference/cli-reference#log")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
@@ -3606,6 +3631,8 @@ function MDXContent(_ref) {
3606
3631
  parentName: "p"
3607
3632
  }, "Description"), ": merge changes of different component versions", (0, _react2.mdx)("br", {
3608
3633
  parentName: "p"
3634
+ }), "\n", "merge changes of different component versions", (0, _react2.mdx)("br", {
3635
+ parentName: "p"
3609
3636
  }), "\n", "", (0, _react2.mdx)("inlineCode", {
3610
3637
  parentName: "p"
3611
3638
  }, "bit merge <version> [ids...]"), " => merge changes of the given version into the checked out version", (0, _react2.mdx)("br", {
@@ -3755,7 +3782,9 @@ function MDXContent(_ref) {
3755
3782
  parentName: "p"
3756
3783
  }), "\n", (0, _react2.mdx)("strong", {
3757
3784
  parentName: "p"
3758
- }, "Description"), ": move files or directories of component(s)", (0, _react2.mdx)("br", {
3785
+ }, "Description"), ": move a component to a different filesystem path", (0, _react2.mdx)("br", {
3786
+ parentName: "p"
3787
+ }), "\n", "move files or directories of component(s)", (0, _react2.mdx)("br", {
3759
3788
  parentName: "p"
3760
3789
  }), "\n", "", (0, _react2.mdx)("a", {
3761
3790
  parentName: "p",
@@ -4091,7 +4120,7 @@ function MDXContent(_ref) {
4091
4120
  parentName: "p"
4092
4121
  }, "Description"), ": manage set of tracked bit scope(s)", (0, _react2.mdx)("br", {
4093
4122
  parentName: "p"
4094
- }), "\n", "", (0, _react2.mdx)("a", {
4123
+ }), "\n", (0, _react2.mdx)("a", {
4095
4124
  parentName: "p",
4096
4125
  "href": "https://bit.dev/docs/scope/remote-scopes"
4097
4126
  }, "https://bit.dev/docs/scope/remote-scopes")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
@@ -4102,14 +4131,11 @@ function MDXContent(_ref) {
4102
4131
  parentName: "p"
4103
4132
  }, "remote add <url>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4104
4133
  parentName: "p"
4105
- }, "Description"), ": add a bare-scope as a remote. supported protocols are ", "[file, http, ssh]", ".", (0, _react2.mdx)("br", {
4134
+ }, "Description"), ": add a bare-scope as a remote", (0, _react2.mdx)("br", {
4106
4135
  parentName: "p"
4107
- }), "\n", "for example: \"http://localhost:3000\", \"file:///tmp/local-scope\", \"ssh://", (0, _react2.mdx)("a", {
4108
- parentName: "p",
4109
- "href": "mailto:user@127.0.0.1"
4110
- }, "user@127.0.0.1"), ":/tmp/local-scope\".", (0, _react2.mdx)("br", {
4136
+ }), "\n", "supported protocols are ", "[file, http]", ".", (0, _react2.mdx)("br", {
4111
4137
  parentName: "p"
4112
- }), "\n", "Legacy support ", "[file, ssh]", ". Harmony supports ", "[file, http]", "."), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
4138
+ }), "\n", "for example: \"http://localhost:3000\", \"file:///tmp/local-scope\""), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
4113
4139
  parentName: "table"
4114
4140
  }, (0, _react2.mdx)("tr", {
4115
4141
  parentName: "thead"
@@ -4235,9 +4261,9 @@ function MDXContent(_ref) {
4235
4261
  parentName: "p"
4236
4262
  }), "\n", (0, _react2.mdx)("strong", {
4237
4263
  parentName: "p"
4238
- }, "Description"), ": remove a component (local/remote)", (0, _react2.mdx)("br", {
4264
+ }, "Description"), ": remove component(s) from your workspace, or a remote scope", (0, _react2.mdx)("br", {
4239
4265
  parentName: "p"
4240
- }), "\n", "", (0, _react2.mdx)("a", {
4266
+ }), "\n", (0, _react2.mdx)("a", {
4241
4267
  parentName: "p",
4242
4268
  "href": "https://bit.dev/docs/components/removing-components"
4243
4269
  }, "https://bit.dev/docs/components/removing-components"), (0, _react2.mdx)("br", {
@@ -4435,19 +4461,7 @@ function MDXContent(_ref) {
4435
4461
  }, "-r")), (0, _react2.mdx)("td", {
4436
4462
  parentName: "tr",
4437
4463
  "align": null
4438
- }, "change the source code of all components using this component with the new package-name")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "resume-export"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4439
- parentName: "p"
4440
- }, "Workspace only"), ": yes", (0, _react2.mdx)("br", {
4441
- parentName: "p"
4442
- }), "\n", (0, _react2.mdx)("strong", {
4443
- parentName: "p"
4444
- }, "Description"), ": resume failed export to persist the pending objects on the given remotes.", (0, _react2.mdx)("br", {
4445
- parentName: "p"
4446
- }), "\n", "the export-id is the id the client got in the error message during the failure.", (0, _react2.mdx)("br", {
4447
- parentName: "p"
4448
- }), "\n", "alternatively, exporting to any one of the failed scopes, throws server-is-busy error with the export-id"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
4449
- parentName: "p"
4450
- }, "bit resume-export <export-id> <remotes...>")), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "run"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4464
+ }, "change the source code of all components using this component with the new package-name")))), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "run"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
4451
4465
  parentName: "p"
4452
4466
  }, "Alias"), ": ", (0, _react2.mdx)("inlineCode", {
4453
4467
  parentName: "p"
@@ -4911,9 +4925,9 @@ function MDXContent(_ref) {
4911
4925
  parentName: "p"
4912
4926
  }), "\n", (0, _react2.mdx)("strong", {
4913
4927
  parentName: "p"
4914
- }, "Description"), ": show the working area component(s) status.", (0, _react2.mdx)("br", {
4928
+ }, "Description"), ": show the working area component(s) status", (0, _react2.mdx)("br", {
4915
4929
  parentName: "p"
4916
- }), "\n", "", (0, _react2.mdx)("a", {
4930
+ }), "\n", (0, _react2.mdx)("a", {
4917
4931
  parentName: "p",
4918
4932
  "href": "https://bit.dev/docs/workspace/workspace-status"
4919
4933
  }, "https://bit.dev/docs/workspace/workspace-status")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
@@ -4979,7 +4993,7 @@ function MDXContent(_ref) {
4979
4993
  parentName: "p"
4980
4994
  }), "\n", (0, _react2.mdx)("strong", {
4981
4995
  parentName: "p"
4982
- }, "Description"), ": record component changes and lock versions.", (0, _react2.mdx)("br", {
4996
+ }, "Description"), ": record component changes and lock versions", (0, _react2.mdx)("br", {
4983
4997
  parentName: "p"
4984
4998
  }), "\n", "if no ids are provided, it will tag all new and modified components.", (0, _react2.mdx)("br", {
4985
4999
  parentName: "p"
@@ -5273,7 +5287,9 @@ function MDXContent(_ref) {
5273
5287
  parentName: "p"
5274
5288
  }), "\n", (0, _react2.mdx)("strong", {
5275
5289
  parentName: "p"
5276
- }, "Description"), ": list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
5290
+ }, "Description"), ": list templates for \"bit create\" and \"bit new\"", (0, _react2.mdx)("br", {
5291
+ parentName: "p"
5292
+ }), "\n", "list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
5277
5293
  parentName: "p"
5278
5294
  }, "bit templates")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
5279
5295
  parentName: "table"
@@ -5489,9 +5505,9 @@ function MDXContent(_ref) {
5489
5505
  parentName: "p"
5490
5506
  }), "\n", (0, _react2.mdx)("strong", {
5491
5507
  parentName: "p"
5492
- }, "Description"), ": revert version(s) tagged for component(s)", (0, _react2.mdx)("br", {
5508
+ }, "Description"), ": revert versions tagged for component(s)", (0, _react2.mdx)("br", {
5493
5509
  parentName: "p"
5494
- }), "\n", "", (0, _react2.mdx)("a", {
5510
+ }), "\n", (0, _react2.mdx)("a", {
5495
5511
  parentName: "p",
5496
5512
  "href": "https://bit.dev/docs/components/tags#undoing-a-tag"
5497
5513
  }, "https://bit.dev/docs/components/tags#undoing-a-tag"), (0, _react2.mdx)("br", {