@teambit/harmony.content.cli-reference 1.95.29 → 1.95.30
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.json +255 -104
- package/cli-reference.mdx +118 -124
- package/dist/cli-reference.json +255 -104
- package/dist/cli-reference.mdx.js +62 -83
- package/dist/cli-reference.mdx.js.map +1 -1
- package/package-tar/teambit-harmony.content.cli-reference-1.95.30.tgz +0 -0
- package/package.json +2 -2
- package/{preview-1655177322725.js → preview-1655263660719.js} +2 -2
- package/package-tar/teambit-harmony.content.cli-reference-1.95.29.tgz +0 -0
package/cli-reference.json
CHANGED
|
@@ -997,23 +997,29 @@
|
|
|
997
997
|
"private": false
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
|
-
"name": "use [ids...]",
|
|
1000
|
+
"name": "use [component-ids...]",
|
|
1001
1001
|
"alias": "",
|
|
1002
1002
|
"options": [],
|
|
1003
|
-
"description": "set
|
|
1003
|
+
"description": "set aspects in the workspace/scope config to make them loadable by the workspace/scope",
|
|
1004
1004
|
"extendedDescription": "",
|
|
1005
1005
|
"group": "collaborate",
|
|
1006
1006
|
"private": false,
|
|
1007
|
-
"remoteOp": true
|
|
1007
|
+
"remoteOp": true,
|
|
1008
|
+
"arguments": [
|
|
1009
|
+
{
|
|
1010
|
+
"name": "component-ids...",
|
|
1011
|
+
"description": "the component IDs of the aspects"
|
|
1012
|
+
}
|
|
1013
|
+
]
|
|
1008
1014
|
},
|
|
1009
1015
|
{
|
|
1010
|
-
"name": "show <
|
|
1016
|
+
"name": "show <component-name>",
|
|
1011
1017
|
"alias": "",
|
|
1012
1018
|
"options": [
|
|
1013
1019
|
[
|
|
1014
1020
|
"j",
|
|
1015
1021
|
"json",
|
|
1016
|
-
"return the component data in json format"
|
|
1022
|
+
"return the component data in a json format"
|
|
1017
1023
|
],
|
|
1018
1024
|
[
|
|
1019
1025
|
"l",
|
|
@@ -1028,13 +1034,19 @@
|
|
|
1028
1034
|
[
|
|
1029
1035
|
"c",
|
|
1030
1036
|
"compare",
|
|
1031
|
-
"compare current file system component to latest tagged component [default=latest]. only works in legacy."
|
|
1037
|
+
"compare current file system component to the latest tagged component [default=latest]. only works in legacy."
|
|
1032
1038
|
]
|
|
1033
1039
|
],
|
|
1034
|
-
"description": "
|
|
1040
|
+
"description": "display the component's essential information",
|
|
1035
1041
|
"extendedDescription": "",
|
|
1036
1042
|
"group": "info",
|
|
1037
|
-
"private": false
|
|
1043
|
+
"private": false,
|
|
1044
|
+
"arguments": [
|
|
1045
|
+
{
|
|
1046
|
+
"name": "component-name",
|
|
1047
|
+
"description": "component name or component id"
|
|
1048
|
+
}
|
|
1049
|
+
]
|
|
1038
1050
|
},
|
|
1039
1051
|
{
|
|
1040
1052
|
"name": "globals",
|
|
@@ -1055,7 +1067,7 @@
|
|
|
1055
1067
|
"name": "envs",
|
|
1056
1068
|
"alias": "env",
|
|
1057
1069
|
"options": [],
|
|
1058
|
-
"description": "list all components envs",
|
|
1070
|
+
"description": "list all components maintained by the workspace and their corresponding envs",
|
|
1059
1071
|
"extendedDescription": "",
|
|
1060
1072
|
"group": "development",
|
|
1061
1073
|
"private": false,
|
|
@@ -1070,47 +1082,82 @@
|
|
|
1070
1082
|
"private": false
|
|
1071
1083
|
},
|
|
1072
1084
|
{
|
|
1073
|
-
"name": "get <name>",
|
|
1085
|
+
"name": "get <component-name>",
|
|
1074
1086
|
"alias": "",
|
|
1075
1087
|
"options": [],
|
|
1076
|
-
"description": "show component's env
|
|
1088
|
+
"description": "show information about a component's env",
|
|
1077
1089
|
"extendedDescription": "",
|
|
1078
1090
|
"group": "development",
|
|
1079
|
-
"private": false
|
|
1091
|
+
"private": false,
|
|
1092
|
+
"arguments": [
|
|
1093
|
+
{
|
|
1094
|
+
"name": "component-name",
|
|
1095
|
+
"description": "the 'component name' or 'component id' of the component its env you'd like to inspect"
|
|
1096
|
+
}
|
|
1097
|
+
]
|
|
1080
1098
|
},
|
|
1081
1099
|
{
|
|
1082
|
-
"name": "set <pattern> <env>",
|
|
1100
|
+
"name": "set <component-pattern> <env>",
|
|
1083
1101
|
"options": [],
|
|
1084
|
-
"description": "
|
|
1085
|
-
"
|
|
1086
|
-
"
|
|
1102
|
+
"description": "Sets one or more components with a development environment (env)",
|
|
1103
|
+
"group": "development",
|
|
1104
|
+
"arguments": [
|
|
1105
|
+
{
|
|
1106
|
+
"name": "component-pattern",
|
|
1107
|
+
"description": "component name, component id, or component pattern. use component pattern to select multiple components. \nuse commas to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "env",
|
|
1111
|
+
"description": "the env's component id (include version for non-core envs. e.g, `teambit.community/envs/community-react@1.95.13`)"
|
|
1112
|
+
}
|
|
1113
|
+
],
|
|
1114
|
+
"examples": [
|
|
1115
|
+
{
|
|
1116
|
+
"cmd": "set ui/button teambit.react/react",
|
|
1117
|
+
"description": "configures 'ui/button' to use the 'teambit.react/react' env"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"cmd": "set ui/button teambit.community/envs/community-mdx@1.95.16",
|
|
1121
|
+
"description": "configures 'ui/button' to use the (non-core) 'teambit.community/envs/community-mdx@1.95.16' env"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"cmd": "set \"ui/**\" teambit.react/react",
|
|
1125
|
+
"description": "configures all components that have the 'ui' namespace to use the teambit.react/react env"
|
|
1126
|
+
}
|
|
1127
|
+
]
|
|
1087
1128
|
},
|
|
1088
1129
|
{
|
|
1089
|
-
"name": "unset <pattern>",
|
|
1130
|
+
"name": "unset <component-pattern>",
|
|
1090
1131
|
"options": [],
|
|
1091
|
-
"description": "
|
|
1132
|
+
"description": "un-sets an env from components that were previously set by \"bit env set\" or by a component template",
|
|
1092
1133
|
"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
|
-
"group": "development"
|
|
1134
|
+
"group": "development",
|
|
1135
|
+
"arguments": [
|
|
1136
|
+
{
|
|
1137
|
+
"name": "component-pattern",
|
|
1138
|
+
"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"
|
|
1139
|
+
}
|
|
1140
|
+
]
|
|
1094
1141
|
},
|
|
1095
1142
|
{
|
|
1096
|
-
"name": "replace <
|
|
1143
|
+
"name": "replace <current-env> <new-env>",
|
|
1097
1144
|
"options": [],
|
|
1098
1145
|
"description": "replace an existing env with another env for all components using the old env",
|
|
1099
1146
|
"group": "development",
|
|
1100
1147
|
"arguments": [
|
|
1101
1148
|
{
|
|
1102
|
-
"name": "
|
|
1103
|
-
"description": "
|
|
1149
|
+
"name": "current-env",
|
|
1150
|
+
"description": "the component id of the current env"
|
|
1104
1151
|
},
|
|
1105
1152
|
{
|
|
1106
1153
|
"name": "new-env",
|
|
1107
|
-
"description": "
|
|
1154
|
+
"description": "the component id of the new env"
|
|
1108
1155
|
}
|
|
1109
1156
|
],
|
|
1110
1157
|
"examples": [
|
|
1111
1158
|
{
|
|
1112
1159
|
"cmd": "replace teambit.harmony/aspect teambit.harmony/node",
|
|
1113
|
-
"description": "
|
|
1160
|
+
"description": "components configured to use the 'aspect' env will be configured to use the 'node' env, instead"
|
|
1114
1161
|
}
|
|
1115
1162
|
]
|
|
1116
1163
|
}
|
|
@@ -1127,7 +1174,7 @@
|
|
|
1127
1174
|
],
|
|
1128
1175
|
[
|
|
1129
1176
|
"p",
|
|
1130
|
-
"port [number]",
|
|
1177
|
+
"port [port-number]",
|
|
1131
1178
|
"port of the UI server."
|
|
1132
1179
|
],
|
|
1133
1180
|
[
|
|
@@ -1138,7 +1185,7 @@
|
|
|
1138
1185
|
[
|
|
1139
1186
|
"v",
|
|
1140
1187
|
"verbose",
|
|
1141
|
-
"
|
|
1188
|
+
"show verbose output for inspection and prints stack trace"
|
|
1142
1189
|
],
|
|
1143
1190
|
[
|
|
1144
1191
|
"",
|
|
@@ -1151,7 +1198,7 @@
|
|
|
1151
1198
|
"skip the auto-compilation before starting the web-server"
|
|
1152
1199
|
]
|
|
1153
1200
|
],
|
|
1154
|
-
"description": "
|
|
1201
|
+
"description": "run the ui/development server",
|
|
1155
1202
|
"extendedDescription": "",
|
|
1156
1203
|
"group": "development",
|
|
1157
1204
|
"private": false
|
|
@@ -1169,20 +1216,30 @@
|
|
|
1169
1216
|
"name": "scope <sub-command>",
|
|
1170
1217
|
"alias": "",
|
|
1171
1218
|
"options": [],
|
|
1172
|
-
"description": "EXPERIMENTAL. manage scope-name",
|
|
1219
|
+
"description": "EXPERIMENTAL. manage the scope-name for components",
|
|
1173
1220
|
"extendedDescription": "",
|
|
1174
1221
|
"group": "development",
|
|
1175
1222
|
"private": false,
|
|
1176
1223
|
"commands": [
|
|
1177
1224
|
{
|
|
1178
|
-
"name": "set <scope-name> [pattern]",
|
|
1225
|
+
"name": "set <scope-name> [component-pattern]",
|
|
1179
1226
|
"options": [],
|
|
1180
|
-
"description": "
|
|
1181
|
-
"extendedDescription": "set
|
|
1182
|
-
"group": "development"
|
|
1227
|
+
"description": "Sets components with a default-scope. If no component is specified, sets the workspace with a default scope",
|
|
1228
|
+
"extendedDescription": "default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc. a component is set with a scope (as oppose to default scope) only once it is versioned.'\n\nyou 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\"\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",
|
|
1229
|
+
"group": "development",
|
|
1230
|
+
"arguments": [
|
|
1231
|
+
{
|
|
1232
|
+
"name": "scope-name",
|
|
1233
|
+
"description": "the scope name to use as the default scope"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"name": "component-pattern",
|
|
1237
|
+
"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"
|
|
1238
|
+
}
|
|
1239
|
+
]
|
|
1183
1240
|
},
|
|
1184
1241
|
{
|
|
1185
|
-
"name": "rename <
|
|
1242
|
+
"name": "rename <current-scope-name> <new-scope-name>",
|
|
1186
1243
|
"options": [
|
|
1187
1244
|
[
|
|
1188
1245
|
"r",
|
|
@@ -1190,8 +1247,18 @@
|
|
|
1190
1247
|
"change the source code of all components using the original scope-name with the new scope-name"
|
|
1191
1248
|
]
|
|
1192
1249
|
],
|
|
1193
|
-
"description": "
|
|
1194
|
-
"group": "development"
|
|
1250
|
+
"description": "Renames the scope name for all components with the specified 'current scope name'",
|
|
1251
|
+
"group": "development",
|
|
1252
|
+
"arguments": [
|
|
1253
|
+
{
|
|
1254
|
+
"name": "current-scope-name",
|
|
1255
|
+
"description": "the scope name to be replaced by another scope name"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"name": "new-scope-name",
|
|
1259
|
+
"description": "a new scope name to replace the current scope name"
|
|
1260
|
+
}
|
|
1261
|
+
]
|
|
1195
1262
|
},
|
|
1196
1263
|
{
|
|
1197
1264
|
"name": "fork <original-scope> <new-scope>",
|
|
@@ -1241,8 +1308,8 @@
|
|
|
1241
1308
|
"install all missing peer dependencies"
|
|
1242
1309
|
]
|
|
1243
1310
|
],
|
|
1244
|
-
"description": "
|
|
1245
|
-
"extendedDescription": "",
|
|
1311
|
+
"description": "installs workspace dependencies",
|
|
1312
|
+
"extendedDescription": "when no package is specified, all workspace dependencies are installed and all workspace components are imported.",
|
|
1246
1313
|
"group": "development",
|
|
1247
1314
|
"private": false
|
|
1248
1315
|
},
|
|
@@ -1462,18 +1529,18 @@
|
|
|
1462
1529
|
"private": false
|
|
1463
1530
|
},
|
|
1464
1531
|
{
|
|
1465
|
-
"name": "import [ids...]",
|
|
1532
|
+
"name": "import [component-ids...]",
|
|
1466
1533
|
"alias": "",
|
|
1467
1534
|
"options": [
|
|
1468
1535
|
[
|
|
1469
1536
|
"p",
|
|
1470
1537
|
"path <path>",
|
|
1471
|
-
"import components into a specific directory"
|
|
1538
|
+
"import components into a specific directory (a relative path in the workspace)"
|
|
1472
1539
|
],
|
|
1473
1540
|
[
|
|
1474
1541
|
"o",
|
|
1475
1542
|
"objects",
|
|
1476
|
-
"import components objects
|
|
1543
|
+
"import components objects to the local scope without checkout (without writing them to the file system). This is a default behavior for import with no id argument"
|
|
1477
1544
|
],
|
|
1478
1545
|
[
|
|
1479
1546
|
"d",
|
|
@@ -1488,7 +1555,7 @@
|
|
|
1488
1555
|
[
|
|
1489
1556
|
"v",
|
|
1490
1557
|
"verbose",
|
|
1491
|
-
"
|
|
1558
|
+
"show verbose output for inspection"
|
|
1492
1559
|
],
|
|
1493
1560
|
[
|
|
1494
1561
|
"j",
|
|
@@ -1498,7 +1565,7 @@
|
|
|
1498
1565
|
[
|
|
1499
1566
|
"",
|
|
1500
1567
|
"conf",
|
|
1501
|
-
"write the configuration file (component.json) of the component
|
|
1568
|
+
"write the configuration file (component.json) of the component"
|
|
1502
1569
|
],
|
|
1503
1570
|
[
|
|
1504
1571
|
"",
|
|
@@ -1536,14 +1603,20 @@
|
|
|
1536
1603
|
"relevant for fetching all components objects. avoid optimizations, fetch all history versions, always"
|
|
1537
1604
|
]
|
|
1538
1605
|
],
|
|
1539
|
-
"description": "import components
|
|
1606
|
+
"description": "import components from remote scopes to the local workspace",
|
|
1540
1607
|
"extendedDescription": "https://bit.dev/docs/components/importing-components\nyou can use a pattern for multiple ids, such as bit import \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
|
|
1541
1608
|
"group": "collaborate",
|
|
1542
1609
|
"private": false,
|
|
1543
|
-
"remoteOp": true
|
|
1610
|
+
"remoteOp": true,
|
|
1611
|
+
"arguments": [
|
|
1612
|
+
{
|
|
1613
|
+
"name": "component-ids...",
|
|
1614
|
+
"description": "a list of component IDs (separated by space) to import"
|
|
1615
|
+
}
|
|
1616
|
+
]
|
|
1544
1617
|
},
|
|
1545
1618
|
{
|
|
1546
|
-
"name": "create <
|
|
1619
|
+
"name": "create <template-name> <component-names...>",
|
|
1547
1620
|
"alias": "",
|
|
1548
1621
|
"options": [
|
|
1549
1622
|
[
|
|
@@ -1572,10 +1645,28 @@
|
|
|
1572
1645
|
"set the component's environment. (overrides the env from variants and the template)"
|
|
1573
1646
|
]
|
|
1574
1647
|
],
|
|
1575
|
-
"description": "create a new component
|
|
1648
|
+
"description": "create a new component (source files and config) using a template.",
|
|
1576
1649
|
"extendedDescription": "",
|
|
1577
1650
|
"group": "development",
|
|
1578
|
-
"private": false
|
|
1651
|
+
"private": false,
|
|
1652
|
+
"examples": [
|
|
1653
|
+
{
|
|
1654
|
+
"cmd": "bit create react ui/button",
|
|
1655
|
+
"description": "creates a component named 'ui/button' using the 'react' template"
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
"cmd": "bit create react ui/button pages/register",
|
|
1659
|
+
"description": "creates two components, 'ui/button' and 'pages/register', using the 'react' template"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"cmd": "bit create react ui/button --scope my-org.my-scope",
|
|
1663
|
+
"description": "creates a component named 'ui/button' and sets it scope to 'my-org.my-scope'. \nby default, the scope is the `defaultScope` value, configured in your `workspace.jsonc`."
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"cmd": "bit create react ui/button --env teambit.community/envs/community-react@1.95.13",
|
|
1667
|
+
"description": "creates a component named 'ui/button' and sets it to use the 'community-react' env. \n(the template's default env is 'teambit.react/react')."
|
|
1668
|
+
}
|
|
1669
|
+
]
|
|
1579
1670
|
},
|
|
1580
1671
|
{
|
|
1581
1672
|
"name": "templates",
|
|
@@ -1593,17 +1684,17 @@
|
|
|
1593
1684
|
"private": false
|
|
1594
1685
|
},
|
|
1595
1686
|
{
|
|
1596
|
-
"name": "new <
|
|
1687
|
+
"name": "new <template-name> <workspace-name>",
|
|
1597
1688
|
"alias": "",
|
|
1598
1689
|
"options": [
|
|
1599
1690
|
[
|
|
1600
1691
|
"a",
|
|
1601
|
-
"aspect <
|
|
1692
|
+
"aspect <aspect-id>",
|
|
1602
1693
|
"aspect-id of the template. mandatory for non-core aspects. helpful for core aspects in case of a name collision"
|
|
1603
1694
|
],
|
|
1604
1695
|
[
|
|
1605
1696
|
"d",
|
|
1606
|
-
"default-scope <
|
|
1697
|
+
"default-scope <scope-name>",
|
|
1607
1698
|
"set defaultScope in the new workspace.jsonc"
|
|
1608
1699
|
],
|
|
1609
1700
|
[
|
|
@@ -1623,14 +1714,24 @@
|
|
|
1623
1714
|
],
|
|
1624
1715
|
[
|
|
1625
1716
|
"",
|
|
1626
|
-
"load-from <
|
|
1717
|
+
"load-from <path-to-template>",
|
|
1627
1718
|
"path to the workspace containing the template. helpful during a development of a workspace-template"
|
|
1628
1719
|
]
|
|
1629
1720
|
],
|
|
1630
|
-
"description": "
|
|
1721
|
+
"description": "create a new workspace from a template",
|
|
1631
1722
|
"extendedDescription": "",
|
|
1632
1723
|
"group": "start",
|
|
1633
|
-
"private": false
|
|
1724
|
+
"private": false,
|
|
1725
|
+
"arguments": [
|
|
1726
|
+
{
|
|
1727
|
+
"name": "template-name",
|
|
1728
|
+
"description": "the name of the workspace template (run 'bit templates', outside of a workspace, to get a list of available templates)"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"name": "workspace-name",
|
|
1732
|
+
"description": "the name for the new workspace and workspace directory"
|
|
1733
|
+
}
|
|
1734
|
+
]
|
|
1634
1735
|
},
|
|
1635
1736
|
{
|
|
1636
1737
|
"name": "build [pattern]",
|
|
@@ -1823,13 +1924,13 @@
|
|
|
1823
1924
|
"private": true
|
|
1824
1925
|
},
|
|
1825
1926
|
{
|
|
1826
|
-
"name": "tag [
|
|
1927
|
+
"name": "tag [component-names...]",
|
|
1827
1928
|
"alias": "t",
|
|
1828
1929
|
"options": [
|
|
1829
1930
|
[
|
|
1830
1931
|
"m",
|
|
1831
1932
|
"message <message>",
|
|
1832
|
-
"log message describing
|
|
1933
|
+
"a log message describing latest changes"
|
|
1833
1934
|
],
|
|
1834
1935
|
[
|
|
1835
1936
|
"",
|
|
@@ -1839,7 +1940,7 @@
|
|
|
1839
1940
|
[
|
|
1840
1941
|
"",
|
|
1841
1942
|
"editor [editor]",
|
|
1842
|
-
"EXPERIMENTAL. open an editor to
|
|
1943
|
+
"EXPERIMENTAL. open an editor to write a tag message for each component. optionally, specify the editor-name (defaults to vim)."
|
|
1843
1944
|
],
|
|
1844
1945
|
[
|
|
1845
1946
|
"v",
|
|
@@ -1952,11 +2053,17 @@
|
|
|
1952
2053
|
"DEPRECATED. use --disable-tag-pipeline instead"
|
|
1953
2054
|
]
|
|
1954
2055
|
],
|
|
1955
|
-
"description": "
|
|
2056
|
+
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
1956
2057
|
"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)",
|
|
1957
2058
|
"group": "development",
|
|
1958
2059
|
"private": false,
|
|
1959
2060
|
"remoteOp": true,
|
|
2061
|
+
"arguments": [
|
|
2062
|
+
{
|
|
2063
|
+
"name": "component-names...",
|
|
2064
|
+
"description": "a list of component names or component IDs (separated by space). By default, all modified are tagged."
|
|
2065
|
+
}
|
|
2066
|
+
],
|
|
1960
2067
|
"examples": [
|
|
1961
2068
|
{
|
|
1962
2069
|
"cmd": "tag --ver 1.0.0",
|
|
@@ -1965,13 +2072,13 @@
|
|
|
1965
2072
|
]
|
|
1966
2073
|
},
|
|
1967
2074
|
{
|
|
1968
|
-
"name": "snap [
|
|
2075
|
+
"name": "snap [component-name]",
|
|
1969
2076
|
"alias": "",
|
|
1970
2077
|
"options": [
|
|
1971
2078
|
[
|
|
1972
2079
|
"m",
|
|
1973
2080
|
"message <message>",
|
|
1974
|
-
"log message describing the
|
|
2081
|
+
"log message describing the latest changes"
|
|
1975
2082
|
],
|
|
1976
2083
|
[
|
|
1977
2084
|
"",
|
|
@@ -2019,10 +2126,16 @@
|
|
|
2019
2126
|
"DEPRECATED (use \"--skip-tests\" or \"--unmodified\" instead). force-snap even if tests are failing and even when component has not changed"
|
|
2020
2127
|
]
|
|
2021
2128
|
],
|
|
2022
|
-
"description": "EXPERIMENTAL.
|
|
2129
|
+
"description": "EXPERIMENTAL. create an immutable and exportable component snapshot (no release version)",
|
|
2023
2130
|
"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)",
|
|
2024
2131
|
"group": "ungrouped",
|
|
2025
|
-
"private": true
|
|
2132
|
+
"private": true,
|
|
2133
|
+
"arguments": [
|
|
2134
|
+
{
|
|
2135
|
+
"name": "component_name",
|
|
2136
|
+
"description": "component names or component ID (defaults to all components)"
|
|
2137
|
+
}
|
|
2138
|
+
]
|
|
2026
2139
|
},
|
|
2027
2140
|
{
|
|
2028
2141
|
"name": "merge [values...]",
|
|
@@ -2089,13 +2202,13 @@
|
|
|
2089
2202
|
"in case issues found, exit with code 1"
|
|
2090
2203
|
]
|
|
2091
2204
|
],
|
|
2092
|
-
"description": "
|
|
2093
|
-
"extendedDescription": "
|
|
2205
|
+
"description": "present the current status of components in the workspace, and notifies when issues are detected",
|
|
2206
|
+
"extendedDescription": "",
|
|
2094
2207
|
"group": "development",
|
|
2095
2208
|
"private": false
|
|
2096
2209
|
},
|
|
2097
2210
|
{
|
|
2098
|
-
"name": "compile [component...]",
|
|
2211
|
+
"name": "compile [component-names...]",
|
|
2099
2212
|
"alias": "",
|
|
2100
2213
|
"options": [
|
|
2101
2214
|
[
|
|
@@ -2119,13 +2232,19 @@
|
|
|
2119
2232
|
"delete existing dist folder before writing new compiled files"
|
|
2120
2233
|
]
|
|
2121
2234
|
],
|
|
2122
|
-
"description": "compile components in the
|
|
2235
|
+
"description": "compile components in the workspace",
|
|
2123
2236
|
"extendedDescription": "",
|
|
2124
2237
|
"group": "development",
|
|
2125
|
-
"private": false
|
|
2238
|
+
"private": false,
|
|
2239
|
+
"arguments": [
|
|
2240
|
+
{
|
|
2241
|
+
"name": "component-names...",
|
|
2242
|
+
"description": "a list of component names or component IDs (defaults to all components)"
|
|
2243
|
+
}
|
|
2244
|
+
]
|
|
2126
2245
|
},
|
|
2127
2246
|
{
|
|
2128
|
-
"name": "run <app>",
|
|
2247
|
+
"name": "run <app-name>",
|
|
2129
2248
|
"alias": "c",
|
|
2130
2249
|
"options": [
|
|
2131
2250
|
[
|
|
@@ -2144,10 +2263,16 @@
|
|
|
2144
2263
|
"avoid running the watch process that compiles components in the background"
|
|
2145
2264
|
]
|
|
2146
2265
|
],
|
|
2147
|
-
"description": "run an
|
|
2266
|
+
"description": "run an app (independent of bit's dev server)",
|
|
2148
2267
|
"extendedDescription": "",
|
|
2149
2268
|
"group": "apps",
|
|
2150
|
-
"private": false
|
|
2269
|
+
"private": false,
|
|
2270
|
+
"arguments": [
|
|
2271
|
+
{
|
|
2272
|
+
"name": "app-name",
|
|
2273
|
+
"description": "the app's name is registered by the app (run 'bit app list' to list the names of the available apps)"
|
|
2274
|
+
}
|
|
2275
|
+
]
|
|
2151
2276
|
},
|
|
2152
2277
|
{
|
|
2153
2278
|
"name": "app-list",
|
|
@@ -2168,7 +2293,7 @@
|
|
|
2168
2293
|
"name": "app <sub-command>",
|
|
2169
2294
|
"alias": "",
|
|
2170
2295
|
"options": [],
|
|
2171
|
-
"description": "
|
|
2296
|
+
"description": "Manages apps",
|
|
2172
2297
|
"extendedDescription": "",
|
|
2173
2298
|
"group": "apps",
|
|
2174
2299
|
"private": false,
|
|
@@ -2183,7 +2308,7 @@
|
|
|
2183
2308
|
"return the component data in json format"
|
|
2184
2309
|
]
|
|
2185
2310
|
],
|
|
2186
|
-
"description": "list all registered
|
|
2311
|
+
"description": "list all registered apps",
|
|
2187
2312
|
"extendedDescription": "",
|
|
2188
2313
|
"group": "apps",
|
|
2189
2314
|
"private": false
|
|
@@ -2191,7 +2316,7 @@
|
|
|
2191
2316
|
]
|
|
2192
2317
|
},
|
|
2193
2318
|
{
|
|
2194
|
-
"name": "test [pattern]",
|
|
2319
|
+
"name": "test [component-pattern]",
|
|
2195
2320
|
"alias": "at",
|
|
2196
2321
|
"options": [
|
|
2197
2322
|
[
|
|
@@ -2226,14 +2351,20 @@
|
|
|
2226
2351
|
],
|
|
2227
2352
|
[
|
|
2228
2353
|
"s",
|
|
2229
|
-
"scope <scope>",
|
|
2354
|
+
"scope <scope-name>",
|
|
2230
2355
|
"name of the scope to test"
|
|
2231
2356
|
]
|
|
2232
2357
|
],
|
|
2233
|
-
"description": "test
|
|
2358
|
+
"description": "test components in the workspace",
|
|
2234
2359
|
"extendedDescription": "",
|
|
2235
2360
|
"group": "development",
|
|
2236
|
-
"private": false
|
|
2361
|
+
"private": false,
|
|
2362
|
+
"arguments": [
|
|
2363
|
+
{
|
|
2364
|
+
"name": "component-pattern",
|
|
2365
|
+
"description": "the components to test (defaults to all components). use component name, component id, or component pattern. use component pattern to select multiple components. \nuse comma to separate patterns. e.g. \"ui/**, pages/**\"\nwrap the pattern with quotes (note that the \"!\" exclusion sign cannot be used here)"
|
|
2366
|
+
}
|
|
2367
|
+
]
|
|
2237
2368
|
},
|
|
2238
2369
|
{
|
|
2239
2370
|
"name": "schema <pattern>",
|
|
@@ -2448,34 +2579,44 @@
|
|
|
2448
2579
|
"skipWorkspace": true
|
|
2449
2580
|
},
|
|
2450
2581
|
{
|
|
2451
|
-
"name": "fork <source-id> [target-name]",
|
|
2582
|
+
"name": "fork <source-component-id> [target-component-name]",
|
|
2452
2583
|
"alias": "",
|
|
2453
2584
|
"options": [
|
|
2454
2585
|
[
|
|
2455
2586
|
"s",
|
|
2456
2587
|
"scope <string>",
|
|
2457
|
-
"default scope for the
|
|
2588
|
+
"default scope for the new component"
|
|
2458
2589
|
],
|
|
2459
2590
|
[
|
|
2460
2591
|
"p",
|
|
2461
2592
|
"path <string>",
|
|
2462
|
-
"relative path in the workspace. by default the path is `<scope>/<namespace>/<name>`"
|
|
2593
|
+
"relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`"
|
|
2463
2594
|
],
|
|
2464
2595
|
[
|
|
2465
2596
|
"r",
|
|
2466
2597
|
"refactor",
|
|
2467
|
-
"
|
|
2598
|
+
"update the import/require statements in all dependent components (in the same workspace)"
|
|
2468
2599
|
]
|
|
2469
2600
|
],
|
|
2470
|
-
"description": "EXPERIMENTAL. create a new component out of an existing one",
|
|
2471
|
-
"extendedDescription": "
|
|
2601
|
+
"description": "EXPERIMENTAL. create a new component out of an existing one (copies source files and config)",
|
|
2602
|
+
"extendedDescription": "",
|
|
2472
2603
|
"group": "collaborate",
|
|
2473
2604
|
"private": false,
|
|
2474
2605
|
"remoteOp": true,
|
|
2475
|
-
"skipWorkspace": true
|
|
2606
|
+
"skipWorkspace": true,
|
|
2607
|
+
"arguments": [
|
|
2608
|
+
{
|
|
2609
|
+
"name": "source-component-id",
|
|
2610
|
+
"description": "the component id of the source component"
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
"name": "target-component-name",
|
|
2614
|
+
"description": "the name for the new component (component name without scope). to set a different scope, use the '--scope' flag"
|
|
2615
|
+
}
|
|
2616
|
+
]
|
|
2476
2617
|
},
|
|
2477
2618
|
{
|
|
2478
|
-
"name": "lane [name]",
|
|
2619
|
+
"name": "lane [lane-name]",
|
|
2479
2620
|
"alias": "",
|
|
2480
2621
|
"options": [
|
|
2481
2622
|
[
|
|
@@ -2523,11 +2664,11 @@
|
|
|
2523
2664
|
[
|
|
2524
2665
|
"j",
|
|
2525
2666
|
"json",
|
|
2526
|
-
"show lanes details in json format"
|
|
2667
|
+
"show lanes details in a json format"
|
|
2527
2668
|
],
|
|
2528
2669
|
[
|
|
2529
2670
|
"r",
|
|
2530
|
-
"remote <
|
|
2671
|
+
"remote <remote-scope-name>",
|
|
2531
2672
|
"show remote lanes"
|
|
2532
2673
|
],
|
|
2533
2674
|
[
|
|
@@ -2538,7 +2679,7 @@
|
|
|
2538
2679
|
[
|
|
2539
2680
|
"",
|
|
2540
2681
|
"not-merged",
|
|
2541
|
-
"show not merged
|
|
2682
|
+
"show lanes that are not merged"
|
|
2542
2683
|
]
|
|
2543
2684
|
],
|
|
2544
2685
|
"description": "list lanes",
|
|
@@ -2584,7 +2725,7 @@
|
|
|
2584
2725
|
"private": true
|
|
2585
2726
|
},
|
|
2586
2727
|
{
|
|
2587
|
-
"name": "show <name>",
|
|
2728
|
+
"name": "show <lane-name>",
|
|
2588
2729
|
"alias": "",
|
|
2589
2730
|
"options": [
|
|
2590
2731
|
[
|
|
@@ -2606,21 +2747,21 @@
|
|
|
2606
2747
|
"skipWorkspace": true
|
|
2607
2748
|
},
|
|
2608
2749
|
{
|
|
2609
|
-
"name": "create <name>",
|
|
2750
|
+
"name": "create <lane-name>",
|
|
2610
2751
|
"alias": "",
|
|
2611
2752
|
"options": [
|
|
2612
2753
|
[
|
|
2613
2754
|
"",
|
|
2614
|
-
"remote-scope <
|
|
2755
|
+
"remote-scope <scope-name>",
|
|
2615
2756
|
"remote scope where this lane will be exported to, default to the defaultScope (can be changed later with \"bit lane change-scope\")"
|
|
2616
2757
|
],
|
|
2617
2758
|
[
|
|
2618
2759
|
"",
|
|
2619
|
-
"alias <
|
|
2620
|
-
"a local alias to refer to this lane,
|
|
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\")"
|
|
2621
2762
|
]
|
|
2622
2763
|
],
|
|
2623
|
-
"description": "
|
|
2764
|
+
"description": "creates a new lane and switches to it",
|
|
2624
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.",
|
|
2625
2766
|
"group": "ungrouped",
|
|
2626
2767
|
"private": true
|
|
@@ -2631,7 +2772,7 @@
|
|
|
2631
2772
|
"options": [
|
|
2632
2773
|
[
|
|
2633
2774
|
"",
|
|
2634
|
-
"remote <name>",
|
|
2775
|
+
"remote <scope-name>",
|
|
2635
2776
|
"remote scope name"
|
|
2636
2777
|
],
|
|
2637
2778
|
[
|
|
@@ -2687,7 +2828,7 @@
|
|
|
2687
2828
|
"remoteOp": true
|
|
2688
2829
|
},
|
|
2689
2830
|
{
|
|
2690
|
-
"name": "remove <
|
|
2831
|
+
"name": "remove <lanes...>",
|
|
2691
2832
|
"alias": "",
|
|
2692
2833
|
"options": [
|
|
2693
2834
|
[
|
|
@@ -2712,10 +2853,10 @@
|
|
|
2712
2853
|
"private": true
|
|
2713
2854
|
},
|
|
2714
2855
|
{
|
|
2715
|
-
"name": "change-scope <lane-name> <remote-scope>",
|
|
2856
|
+
"name": "change-scope <lane-name> <remote-scope-name>",
|
|
2716
2857
|
"alias": "",
|
|
2717
2858
|
"options": [],
|
|
2718
|
-
"description": "
|
|
2859
|
+
"description": "changes the remote scope of a lane",
|
|
2719
2860
|
"extendedDescription": "",
|
|
2720
2861
|
"group": "ungrouped",
|
|
2721
2862
|
"private": true
|
|
@@ -2724,7 +2865,7 @@
|
|
|
2724
2865
|
"name": "alias <lane-name> <alias>",
|
|
2725
2866
|
"alias": "",
|
|
2726
2867
|
"options": [],
|
|
2727
|
-
"description": "
|
|
2868
|
+
"description": "adds an alias to a lane",
|
|
2728
2869
|
"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.",
|
|
2729
2870
|
"group": "ungrouped",
|
|
2730
2871
|
"private": true
|
|
@@ -2750,10 +2891,10 @@
|
|
|
2750
2891
|
"skipWorkspace": true
|
|
2751
2892
|
},
|
|
2752
2893
|
{
|
|
2753
|
-
"name": "add-readme <
|
|
2894
|
+
"name": "add-readme <component-name> [lane-name]",
|
|
2754
2895
|
"alias": "",
|
|
2755
2896
|
"options": [],
|
|
2756
|
-
"description": "EXPERIMENTAL.
|
|
2897
|
+
"description": "EXPERIMENTAL. adds a readme component to a lane",
|
|
2757
2898
|
"extendedDescription": "",
|
|
2758
2899
|
"group": "ungrouped",
|
|
2759
2900
|
"private": true,
|
|
@@ -2857,18 +2998,18 @@
|
|
|
2857
2998
|
"remoteOp": true
|
|
2858
2999
|
},
|
|
2859
3000
|
{
|
|
2860
|
-
"name": "export [remote] [
|
|
3001
|
+
"name": "export [remote] [component-names...]",
|
|
2861
3002
|
"alias": "e",
|
|
2862
3003
|
"options": [
|
|
2863
3004
|
[
|
|
2864
3005
|
"e",
|
|
2865
3006
|
"eject",
|
|
2866
|
-
"
|
|
3007
|
+
"replace the exported components with their corresponding packages (to use these components without further maintaining them)"
|
|
2867
3008
|
],
|
|
2868
3009
|
[
|
|
2869
3010
|
"a",
|
|
2870
3011
|
"all",
|
|
2871
|
-
"export all components
|
|
3012
|
+
"export all components, including non-staged"
|
|
2872
3013
|
],
|
|
2873
3014
|
[
|
|
2874
3015
|
"d",
|
|
@@ -2916,11 +3057,21 @@
|
|
|
2916
3057
|
"show output in json format"
|
|
2917
3058
|
]
|
|
2918
3059
|
],
|
|
2919
|
-
"description": "
|
|
3060
|
+
"description": "export components from the workspace to remote scopes",
|
|
2920
3061
|
"extendedDescription": "bit export => export all staged components to their current scope, if checked out to a lane, export the lane as well\n`bit export [id...]` => export the given ids to their current scope\n\nhttps://bit.dev/docs/components/exporting-components\nyou can use a pattern for multiple ids, such as bit export remote-scope \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
|
|
2921
3062
|
"group": "collaborate",
|
|
2922
3063
|
"private": false,
|
|
2923
|
-
"remoteOp": true
|
|
3064
|
+
"remoteOp": true,
|
|
3065
|
+
"arguments": [
|
|
3066
|
+
{
|
|
3067
|
+
"name": "remote",
|
|
3068
|
+
"description": "LEGACY ONLY."
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
"name": "component-names...",
|
|
3072
|
+
"description": "a list of component names or component IDs (separated by space). By default, all new component versions are exported."
|
|
3073
|
+
}
|
|
3074
|
+
]
|
|
2924
3075
|
},
|
|
2925
3076
|
{
|
|
2926
3077
|
"name": "update-dependencies <data>",
|