@teambit/harmony.content.cli-reference 0.0.0-e322c823e62e42e4b09f7dcfe3c8882d1909e5ce → 0.0.0-e42690afb58e508dc8ee4568e43ec181c116101a
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.docs.mdx +1 -1
- package/cli-reference.json +201 -180
- package/cli-reference.mdx +85 -82
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +201 -180
- package/dist/cli-reference.mdx.js +1 -1
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1783451158181.js → preview-1784303730825.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -219,6 +219,12 @@
|
|
|
219
219
|
"name": "component-name",
|
|
220
220
|
"description": "the 'component name' or 'component id' of the component whose env you'd like to inspect"
|
|
221
221
|
}
|
|
222
|
+
],
|
|
223
|
+
"examples": [
|
|
224
|
+
{
|
|
225
|
+
"cmd": "get ui/button",
|
|
226
|
+
"description": "show config information from the env configured for ui/button"
|
|
227
|
+
}
|
|
222
228
|
]
|
|
223
229
|
},
|
|
224
230
|
{
|
|
@@ -255,7 +261,7 @@
|
|
|
255
261
|
"name": "unset <component-pattern>",
|
|
256
262
|
"options": [],
|
|
257
263
|
"description": "un-sets an env from components that were previously set by \"bit env set\" or by a component template",
|
|
258
|
-
"extendedDescription": "keep in mind that this doesn't remove envs that are set via variants.\
|
|
264
|
+
"extendedDescription": "keep in mind that this doesn't remove envs that are set via variants.\nit only removes envs that appear in the .bitmap file, which were previously configured via \"bit env set\".\nthe purpose of this command is to reset previously assigned envs to either allow variants to configure the env or use the base node env.\nyou can use a `<pattern>` for multiple component ids, such as `bit env unset \"org.scope/utils/**\"`.\nuse comma to separate patterns and '!' to exclude. e.g. 'ui/**, !ui/button'\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
|
|
259
265
|
"group": "component-config",
|
|
260
266
|
"arguments": [
|
|
261
267
|
{
|
|
@@ -532,7 +538,7 @@
|
|
|
532
538
|
[
|
|
533
539
|
"v",
|
|
534
540
|
"verbose",
|
|
535
|
-
"show verbose output for inspection and
|
|
541
|
+
"show verbose output for inspection and print stack trace"
|
|
536
542
|
],
|
|
537
543
|
[
|
|
538
544
|
"n",
|
|
@@ -597,7 +603,7 @@
|
|
|
597
603
|
[
|
|
598
604
|
"",
|
|
599
605
|
"layout <name>",
|
|
600
|
-
"
|
|
606
|
+
"Graphviz layout. default to \"dot\". options are [circo, dot, fdp, neato, osage, patchwork, sfdp, twopi]"
|
|
601
607
|
],
|
|
602
608
|
[
|
|
603
609
|
"",
|
|
@@ -644,7 +650,7 @@
|
|
|
644
650
|
"name": "set <scope-name> [component-pattern]",
|
|
645
651
|
"options": [],
|
|
646
652
|
"description": "Sets the scope for specified component/s. If no component is specified, sets the default scope of the workspace",
|
|
647
|
-
"extendedDescription": "default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc.\na component is set with a scope (as
|
|
653
|
+
"extendedDescription": "default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc.\na component is set with a scope (as opposed 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/**\"`.\nuse comma to separate patterns and '!' to exclude. e.g. 'ui/**, !ui/button'\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
|
|
648
654
|
"group": "component-config",
|
|
649
655
|
"arguments": [
|
|
650
656
|
{
|
|
@@ -690,7 +696,7 @@
|
|
|
690
696
|
[
|
|
691
697
|
"",
|
|
692
698
|
"deprecate",
|
|
693
|
-
"for exported components, instead of deleting the original components,
|
|
699
|
+
"for exported components, instead of deleting the original components, deprecate them"
|
|
694
700
|
],
|
|
695
701
|
[
|
|
696
702
|
"x",
|
|
@@ -863,12 +869,12 @@
|
|
|
863
869
|
[
|
|
864
870
|
"p",
|
|
865
871
|
"propagate",
|
|
866
|
-
"mark propagate true in the config file, so that component.json configs will be
|
|
872
|
+
"mark propagate true in the config file, so that component.json configs will be merged with workspace configs"
|
|
867
873
|
],
|
|
868
874
|
[
|
|
869
875
|
"o",
|
|
870
876
|
"override",
|
|
871
|
-
"override file if
|
|
877
|
+
"override the file if it exists"
|
|
872
878
|
]
|
|
873
879
|
],
|
|
874
880
|
"description": "create component.json configuration files for components",
|
|
@@ -1028,162 +1034,6 @@
|
|
|
1028
1034
|
}
|
|
1029
1035
|
]
|
|
1030
1036
|
},
|
|
1031
|
-
{
|
|
1032
|
-
"name": "aspect <sub-command>",
|
|
1033
|
-
"alias": "",
|
|
1034
|
-
"options": [],
|
|
1035
|
-
"description": "manage component aspects and their configurations",
|
|
1036
|
-
"extendedDescription": "aspects provide functionality and tools for components throughout their development lifecycle.\nprimarily useful for inspecting aspect assignments and configurations with \"bit aspect get\".\nrarely used for manual aspect management as most aspects are configured automatically.",
|
|
1037
|
-
"group": "component-config",
|
|
1038
|
-
"private": false,
|
|
1039
|
-
"commands": [
|
|
1040
|
-
{
|
|
1041
|
-
"name": "list [pattern]",
|
|
1042
|
-
"alias": "",
|
|
1043
|
-
"options": [
|
|
1044
|
-
[
|
|
1045
|
-
"d",
|
|
1046
|
-
"debug",
|
|
1047
|
-
"show the origins where the aspects were taken from"
|
|
1048
|
-
]
|
|
1049
|
-
],
|
|
1050
|
-
"description": "list all aspects configured on component(s)",
|
|
1051
|
-
"extendedDescription": "",
|
|
1052
|
-
"group": "info-analysis",
|
|
1053
|
-
"private": false,
|
|
1054
|
-
"arguments": [
|
|
1055
|
-
{
|
|
1056
|
-
"name": "pattern",
|
|
1057
|
-
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
1058
|
-
}
|
|
1059
|
-
]
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
"name": "list-core",
|
|
1063
|
-
"alias": "",
|
|
1064
|
-
"options": [
|
|
1065
|
-
[
|
|
1066
|
-
"j",
|
|
1067
|
-
"json",
|
|
1068
|
-
"format as json"
|
|
1069
|
-
]
|
|
1070
|
-
],
|
|
1071
|
-
"description": "list all core aspects",
|
|
1072
|
-
"extendedDescription": "",
|
|
1073
|
-
"group": "info-analysis",
|
|
1074
|
-
"private": false,
|
|
1075
|
-
"arguments": [
|
|
1076
|
-
{
|
|
1077
|
-
"name": "pattern",
|
|
1078
|
-
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
1079
|
-
}
|
|
1080
|
-
]
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"name": "get <component-name>",
|
|
1084
|
-
"alias": "",
|
|
1085
|
-
"options": [
|
|
1086
|
-
[
|
|
1087
|
-
"d",
|
|
1088
|
-
"debug",
|
|
1089
|
-
"show the origins where the aspects were taken from"
|
|
1090
|
-
],
|
|
1091
|
-
[
|
|
1092
|
-
"j",
|
|
1093
|
-
"json",
|
|
1094
|
-
"format as json"
|
|
1095
|
-
]
|
|
1096
|
-
],
|
|
1097
|
-
"description": "list the aspects set on a component, as well as their configs and data",
|
|
1098
|
-
"extendedDescription": "",
|
|
1099
|
-
"group": "info-analysis",
|
|
1100
|
-
"private": false,
|
|
1101
|
-
"arguments": [
|
|
1102
|
-
{
|
|
1103
|
-
"name": "component-name",
|
|
1104
|
-
"description": "the component name or component id to fetch aspects for"
|
|
1105
|
-
}
|
|
1106
|
-
]
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
"name": "set <pattern> <aspect-id> [config]",
|
|
1110
|
-
"alias": "",
|
|
1111
|
-
"options": [
|
|
1112
|
-
[
|
|
1113
|
-
"m",
|
|
1114
|
-
"merge",
|
|
1115
|
-
"merge with an existing config if exits. (by default, it replaces overlapping existing configs)"
|
|
1116
|
-
]
|
|
1117
|
-
],
|
|
1118
|
-
"description": "set components with an aspect to extend their development tools, metadata and (possibly) artifacts",
|
|
1119
|
-
"extendedDescription": "",
|
|
1120
|
-
"group": "component-config",
|
|
1121
|
-
"private": false,
|
|
1122
|
-
"arguments": [
|
|
1123
|
-
{
|
|
1124
|
-
"name": "pattern",
|
|
1125
|
-
"description": "the components to extend. component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
"name": "aspect-id",
|
|
1129
|
-
"description": "the aspect's component id"
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"name": "config",
|
|
1133
|
-
"description": "the aspect config. enter the config as a stringified JSON (e.g. `{\"foo\":\"bar\"}` ). when no config is provided, an aspect is set with an empty config ({})."
|
|
1134
|
-
}
|
|
1135
|
-
]
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
"name": "unset <pattern> <aspect-id>",
|
|
1139
|
-
"alias": "",
|
|
1140
|
-
"options": [],
|
|
1141
|
-
"description": "unset an aspect from component(s).",
|
|
1142
|
-
"extendedDescription": "",
|
|
1143
|
-
"group": "component-config",
|
|
1144
|
-
"private": false,
|
|
1145
|
-
"arguments": [
|
|
1146
|
-
{
|
|
1147
|
-
"name": "pattern",
|
|
1148
|
-
"description": "the components to target. component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
"name": "aspect-id",
|
|
1152
|
-
"description": "the aspect's component id"
|
|
1153
|
-
}
|
|
1154
|
-
]
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"name": "update <aspect-id> [pattern]",
|
|
1158
|
-
"alias": "",
|
|
1159
|
-
"options": [],
|
|
1160
|
-
"description": "update a version of an aspect for all or specified components",
|
|
1161
|
-
"extendedDescription": "",
|
|
1162
|
-
"group": "component-config",
|
|
1163
|
-
"private": false,
|
|
1164
|
-
"arguments": [
|
|
1165
|
-
{
|
|
1166
|
-
"name": "aspect-id",
|
|
1167
|
-
"description": "the aspect's component id. optionally, add a version (id@version), otherwise will use the latest version from the remote"
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
"name": "pattern",
|
|
1171
|
-
"description": "the components to update (defaults to all components). component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
1172
|
-
}
|
|
1173
|
-
],
|
|
1174
|
-
"examples": [
|
|
1175
|
-
{
|
|
1176
|
-
"cmd": "bit aspect update scope.org/aspect '**/ui/**'",
|
|
1177
|
-
"description": "update all components with the \"ui\" namespace that use scope.org/aspect, to use its latest version"
|
|
1178
|
-
},
|
|
1179
|
-
{
|
|
1180
|
-
"cmd": "bit aspect update scope.org/aspect@2.0.0",
|
|
1181
|
-
"description": "update version of scope.org/aspect to version 2.0.0 for all components configured with that aspect."
|
|
1182
|
-
}
|
|
1183
|
-
]
|
|
1184
|
-
}
|
|
1185
|
-
]
|
|
1186
|
-
},
|
|
1187
1037
|
{
|
|
1188
1038
|
"name": "use <component-id>",
|
|
1189
1039
|
"alias": "",
|
|
@@ -1397,7 +1247,7 @@
|
|
|
1397
1247
|
[
|
|
1398
1248
|
"",
|
|
1399
1249
|
"suppress-browser-launch",
|
|
1400
|
-
"
|
|
1250
|
+
"DEPRECATED. use --no-browser instead"
|
|
1401
1251
|
]
|
|
1402
1252
|
],
|
|
1403
1253
|
"description": "authenticate with Bit Cloud for component publishing and collaboration",
|
|
@@ -2039,7 +1889,7 @@
|
|
|
2039
1889
|
},
|
|
2040
1890
|
{
|
|
2041
1891
|
"cmd": "bit create mdx docs/create-components --aspect teambit.mdx/mdx-env --scope my-org.my-scope",
|
|
2042
|
-
"description": "creates an mdx component named 'docs/create-components' and sets
|
|
1892
|
+
"description": "creates an mdx component named 'docs/create-components' and sets its scope to 'my-org.my-scope'. \nby default, the scope is the `defaultScope` value, configured in your `workspace.jsonc`."
|
|
2043
1893
|
},
|
|
2044
1894
|
{
|
|
2045
1895
|
"cmd": "bit create react my-org.my-scope/hooks/use-session",
|
|
@@ -2118,7 +1968,7 @@
|
|
|
2118
1968
|
[
|
|
2119
1969
|
"",
|
|
2120
1970
|
"load-from <path-to-template>",
|
|
2121
|
-
"local path to the workspace containing the template. Helpful during
|
|
1971
|
+
"local path to the workspace containing the template. Helpful during the development of a workspace-template"
|
|
2122
1972
|
],
|
|
2123
1973
|
[
|
|
2124
1974
|
"c",
|
|
@@ -2544,7 +2394,7 @@
|
|
|
2544
2394
|
[
|
|
2545
2395
|
"",
|
|
2546
2396
|
"skip-unavailable",
|
|
2547
|
-
"when adding missing dependencies, skip those that are not found in the
|
|
2397
|
+
"when adding missing dependencies, skip those that are not found in the registry"
|
|
2548
2398
|
],
|
|
2549
2399
|
[
|
|
2550
2400
|
"",
|
|
@@ -2791,7 +2641,7 @@
|
|
|
2791
2641
|
[
|
|
2792
2642
|
"",
|
|
2793
2643
|
"dependents-dry-run",
|
|
2794
|
-
"DEPRECATED. (this is the default now). same as --dependents, except it prints the found dependents and
|
|
2644
|
+
"DEPRECATED. (this is the default now). same as --dependents, except it prints the found dependents and waits for confirmation before importing them"
|
|
2795
2645
|
],
|
|
2796
2646
|
[
|
|
2797
2647
|
"",
|
|
@@ -2816,7 +2666,7 @@
|
|
|
2816
2666
|
[
|
|
2817
2667
|
"",
|
|
2818
2668
|
"fetch-deps",
|
|
2819
|
-
"fetch dependencies (bit components) objects to the local scope, but
|
|
2669
|
+
"fetch dependencies (bit components) objects to the local scope, but don't add to the workspace. Useful to resolve errors about missing dependency data"
|
|
2820
2670
|
],
|
|
2821
2671
|
[
|
|
2822
2672
|
"",
|
|
@@ -2842,6 +2692,11 @@
|
|
|
2842
2692
|
"",
|
|
2843
2693
|
"owner",
|
|
2844
2694
|
"treat the argument as an owner name and import all components from all scopes of that owner"
|
|
2695
|
+
],
|
|
2696
|
+
[
|
|
2697
|
+
"",
|
|
2698
|
+
"write-to-empty-dir",
|
|
2699
|
+
"when the target directory is not empty, import into an available empty directory (e.g. \"foo\" => \"foo_1\") instead of failing"
|
|
2845
2700
|
]
|
|
2846
2701
|
],
|
|
2847
2702
|
"description": "bring components from remote scopes into your workspace",
|
|
@@ -2967,7 +2822,7 @@
|
|
|
2967
2822
|
[
|
|
2968
2823
|
"f",
|
|
2969
2824
|
"force",
|
|
2970
|
-
"relevant for --hard. allow the deletion even if used as a dependency. WARNING: components that depend on this component will
|
|
2825
|
+
"relevant for --hard. allow the deletion even if used as a dependency. WARNING: components that depend on this component will be corrupted"
|
|
2971
2826
|
],
|
|
2972
2827
|
[
|
|
2973
2828
|
"",
|
|
@@ -3636,6 +3491,11 @@
|
|
|
3636
3491
|
"pre-release [identifier]",
|
|
3637
3492
|
"syntactic sugar for \"--increment prerelease\" and `--prerelease-id <identifier>`"
|
|
3638
3493
|
],
|
|
3494
|
+
[
|
|
3495
|
+
"",
|
|
3496
|
+
"auto-tag-increment <level>",
|
|
3497
|
+
"the increment level to use for auto-tagged dependents. options are: [major, premajor, minor, preminor, patch, prepatch, prerelease].\nby default, dependents are bumped by a patch, unless --increment is one of [prepatch, prerelease, preminor, premajor], which they follow.\nnote that dependents are auto-tagged transitively, so the entire dependents graph is bumped by this level"
|
|
3498
|
+
],
|
|
3639
3499
|
[
|
|
3640
3500
|
"",
|
|
3641
3501
|
"snapped",
|
|
@@ -3735,7 +3595,7 @@
|
|
|
3735
3595
|
"arguments": [
|
|
3736
3596
|
{
|
|
3737
3597
|
"name": "component-patterns...",
|
|
3738
|
-
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.. By default, all new and modified are tagged."
|
|
3598
|
+
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.. By default, all new and modified components are tagged."
|
|
3739
3599
|
}
|
|
3740
3600
|
],
|
|
3741
3601
|
"examples": [
|
|
@@ -4317,7 +4177,7 @@
|
|
|
4317
4177
|
[
|
|
4318
4178
|
"n",
|
|
4319
4179
|
"alias <string>",
|
|
4320
|
-
"relevant when the specified lane is a remote lane. create a local alias for the lane (
|
|
4180
|
+
"relevant when the specified lane is a remote lane. create a local alias for the lane (doesn't affect the lane's name on the remote)"
|
|
4321
4181
|
],
|
|
4322
4182
|
[
|
|
4323
4183
|
"",
|
|
@@ -4711,7 +4571,7 @@
|
|
|
4711
4571
|
]
|
|
4712
4572
|
],
|
|
4713
4573
|
"description": "revert to a previous history of the current lane. see also \"bit lane checkout\"",
|
|
4714
|
-
"extendedDescription": "revert is similar to \"lane checkout\", but it keeps the versions and only
|
|
4574
|
+
"extendedDescription": "revert is similar to \"lane checkout\", but it keeps the versions and only changes the files.\nchoose one or the other based on your needs.\nif you want to continue working on this lane and need the changes from the history to be the head, then use \"lane revert\".\nif you want to fork the lane from a certain point in history, use \"lane checkout\" and create a new lane from it.",
|
|
4715
4575
|
"group": "ungrouped",
|
|
4716
4576
|
"private": false,
|
|
4717
4577
|
"arguments": [
|
|
@@ -4813,7 +4673,7 @@
|
|
|
4813
4673
|
[
|
|
4814
4674
|
"",
|
|
4815
4675
|
"skip-fetch",
|
|
4816
|
-
"use the local state of target-lane if
|
|
4676
|
+
"use the local state of target-lane if exists locally, without updating it from the remote"
|
|
4817
4677
|
],
|
|
4818
4678
|
[
|
|
4819
4679
|
"",
|
|
@@ -4842,7 +4702,7 @@
|
|
|
4842
4702
|
]
|
|
4843
4703
|
],
|
|
4844
4704
|
"description": "merge a local or a remote lane to the current lane",
|
|
4845
|
-
"extendedDescription": "by default, the provided lane will be fetched from the remote before merging.\nto merge the lane from the local scope without updating it first, use \"--skip-fetch\" flag.\n\nwhen the current and merge candidate lanes are diverged in history and the files could be merged with no conflicts,\nthese components will be snap-merged to complete the merge. use \"no-auto-snap\" to opt-out, or \"tag\" to tag instead.\n\nwhen the components are not diverged in history, and the current lane is behind the merge candidate, the merge will\nsimply update the components and the heads according to the merge candidate.\nto opt-out, use \"--no-snap\", the components will be written as the merge candidate, and will be left as modified.\n\nin case a component
|
|
4705
|
+
"extendedDescription": "by default, the provided lane will be fetched from the remote before merging.\nto merge the lane from the local scope without updating it first, use \"--skip-fetch\" flag.\n\nwhen the current and merge candidate lanes are diverged in history and the files could be merged with no conflicts,\nthese components will be snap-merged to complete the merge. use \"no-auto-snap\" to opt-out, or \"tag\" to tag instead.\n\nwhen the components are not diverged in history, and the current lane is behind the merge candidate, the merge will\nsimply update the components and the heads according to the merge candidate.\nto opt-out, use \"--no-snap\", the components will be written as the merge candidate, and will be left as modified.\n\nin case a component on both ends doesn't share history (no snap is found in common), the merge will require \"--resolve-unrelated\" flag.\nthis flag keeps the history of one end and saves a reference to the other end. the decision of which end to keep is determined by the following:\n1. if the component exists on main, then the history linked to main will be kept.\nin this case, the strategy of \"--resolve-unrelated\" only determines which source-code to keep. it's not about the history.\n2. if the component doesn't exist on main, then by default, the history of the current lane will be kept.\nunless \"--resolve-unrelated\" is set to \"theirs\", in which case the history of the other lane will be kept.\n2. a. an edge case: if the component is deleted on the current lane, the strategy will always be \"theirs\".\nso then the history (and the source-code) of the other lane will be kept.\n",
|
|
4846
4706
|
"private": true,
|
|
4847
4707
|
"remoteOp": true,
|
|
4848
4708
|
"arguments": [
|
|
@@ -4892,7 +4752,7 @@
|
|
|
4892
4752
|
]
|
|
4893
4753
|
],
|
|
4894
4754
|
"description": "EXPERIMENT. move the current merge state into a new lane. the current lane will be reset",
|
|
4895
|
-
"extendedDescription": "this command is useful when you got a messy merge state that
|
|
4755
|
+
"extendedDescription": "this command is useful when you got a messy merge state that on one hand you don't want\nto lose the changes, but on the other hand, you want to keep your lane without those changes.\nthis command does the following:\n1. create a new lane with the current merge state. including all the filesystem changes. (in practice, it leaves the fs intact)\n2. reset the current lane to the state before the merge. so then once done with the new lane, you can switch to the current lane and it'll be clean.",
|
|
4896
4756
|
"remoteOp": true
|
|
4897
4757
|
}
|
|
4898
4758
|
]
|
|
@@ -4949,7 +4809,7 @@
|
|
|
4949
4809
|
[
|
|
4950
4810
|
"n",
|
|
4951
4811
|
"alias <string>",
|
|
4952
|
-
"relevant when the specified lane is a remote lane. create a local alias for the lane (
|
|
4812
|
+
"relevant when the specified lane is a remote lane. create a local alias for the lane (doesn't affect the lane's name on the remote)"
|
|
4953
4813
|
],
|
|
4954
4814
|
[
|
|
4955
4815
|
"",
|
|
@@ -5215,6 +5075,11 @@
|
|
|
5215
5075
|
"pre-release [identifier]",
|
|
5216
5076
|
"syntactic sugar for \"--increment prerelease\" and `--prerelease-id <identifier>`"
|
|
5217
5077
|
],
|
|
5078
|
+
[
|
|
5079
|
+
"",
|
|
5080
|
+
"auto-tag-increment <level>",
|
|
5081
|
+
"the increment level to use for auto-tagged dependents. options are: [major, premajor, minor, preminor, patch, prepatch, prerelease].\nby default, dependents are bumped by a patch, unless --increment is one of [prepatch, prerelease, preminor, premajor], which they follow.\nnote that dependents are auto-tagged transitively, so the entire dependents graph is bumped by this level"
|
|
5082
|
+
],
|
|
5218
5083
|
[
|
|
5219
5084
|
"",
|
|
5220
5085
|
"increment-by <number>",
|
|
@@ -5469,7 +5334,7 @@
|
|
|
5469
5334
|
[
|
|
5470
5335
|
"",
|
|
5471
5336
|
"reset-lane-new",
|
|
5472
|
-
"same as reset-new, but it only resets components
|
|
5337
|
+
"same as reset-new, but it only resets components belonging to lanes. main components are left intact"
|
|
5473
5338
|
],
|
|
5474
5339
|
[
|
|
5475
5340
|
"",
|
|
@@ -5559,7 +5424,7 @@
|
|
|
5559
5424
|
[
|
|
5560
5425
|
"l",
|
|
5561
5426
|
"layout <name>",
|
|
5562
|
-
"
|
|
5427
|
+
"Graphviz layout. default to \"dot\". options are [circo, dot, fdp, neato, osage, patchwork, sfdp, twopi]"
|
|
5563
5428
|
],
|
|
5564
5429
|
[
|
|
5565
5430
|
"",
|
|
@@ -5980,7 +5845,7 @@
|
|
|
5980
5845
|
[
|
|
5981
5846
|
"",
|
|
5982
5847
|
"deprecate",
|
|
5983
|
-
"instead of deleting the original component,
|
|
5848
|
+
"instead of deleting the original component, deprecate it"
|
|
5984
5849
|
],
|
|
5985
5850
|
[
|
|
5986
5851
|
"p",
|
|
@@ -6108,6 +5973,162 @@
|
|
|
6108
5973
|
}
|
|
6109
5974
|
]
|
|
6110
5975
|
},
|
|
5976
|
+
{
|
|
5977
|
+
"name": "aspect <sub-command>",
|
|
5978
|
+
"alias": "",
|
|
5979
|
+
"options": [],
|
|
5980
|
+
"description": "manage component aspects and their configurations",
|
|
5981
|
+
"extendedDescription": "aspects provide functionality and tools for components throughout their development lifecycle.\nprimarily useful for inspecting aspect assignments and configurations with \"bit aspect get\".\nrarely used for manual aspect management as most aspects are configured automatically.",
|
|
5982
|
+
"group": "component-config",
|
|
5983
|
+
"private": false,
|
|
5984
|
+
"commands": [
|
|
5985
|
+
{
|
|
5986
|
+
"name": "list [pattern]",
|
|
5987
|
+
"alias": "",
|
|
5988
|
+
"options": [
|
|
5989
|
+
[
|
|
5990
|
+
"d",
|
|
5991
|
+
"debug",
|
|
5992
|
+
"show the origins where the aspects were taken from"
|
|
5993
|
+
]
|
|
5994
|
+
],
|
|
5995
|
+
"description": "list all aspects configured on component(s)",
|
|
5996
|
+
"extendedDescription": "",
|
|
5997
|
+
"group": "info-analysis",
|
|
5998
|
+
"private": false,
|
|
5999
|
+
"arguments": [
|
|
6000
|
+
{
|
|
6001
|
+
"name": "pattern",
|
|
6002
|
+
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6003
|
+
}
|
|
6004
|
+
]
|
|
6005
|
+
},
|
|
6006
|
+
{
|
|
6007
|
+
"name": "list-core",
|
|
6008
|
+
"alias": "",
|
|
6009
|
+
"options": [
|
|
6010
|
+
[
|
|
6011
|
+
"j",
|
|
6012
|
+
"json",
|
|
6013
|
+
"format as json"
|
|
6014
|
+
]
|
|
6015
|
+
],
|
|
6016
|
+
"description": "list all core aspects",
|
|
6017
|
+
"extendedDescription": "",
|
|
6018
|
+
"group": "info-analysis",
|
|
6019
|
+
"private": false,
|
|
6020
|
+
"arguments": [
|
|
6021
|
+
{
|
|
6022
|
+
"name": "pattern",
|
|
6023
|
+
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6024
|
+
}
|
|
6025
|
+
]
|
|
6026
|
+
},
|
|
6027
|
+
{
|
|
6028
|
+
"name": "get <component-name>",
|
|
6029
|
+
"alias": "",
|
|
6030
|
+
"options": [
|
|
6031
|
+
[
|
|
6032
|
+
"d",
|
|
6033
|
+
"debug",
|
|
6034
|
+
"show the origins where the aspects were taken from"
|
|
6035
|
+
],
|
|
6036
|
+
[
|
|
6037
|
+
"j",
|
|
6038
|
+
"json",
|
|
6039
|
+
"format as json"
|
|
6040
|
+
]
|
|
6041
|
+
],
|
|
6042
|
+
"description": "list the aspects set on a component, as well as their configs and data",
|
|
6043
|
+
"extendedDescription": "",
|
|
6044
|
+
"group": "info-analysis",
|
|
6045
|
+
"private": false,
|
|
6046
|
+
"arguments": [
|
|
6047
|
+
{
|
|
6048
|
+
"name": "component-name",
|
|
6049
|
+
"description": "the component name or component id to fetch aspects for"
|
|
6050
|
+
}
|
|
6051
|
+
]
|
|
6052
|
+
},
|
|
6053
|
+
{
|
|
6054
|
+
"name": "set <pattern> <aspect-id> [config]",
|
|
6055
|
+
"alias": "",
|
|
6056
|
+
"options": [
|
|
6057
|
+
[
|
|
6058
|
+
"m",
|
|
6059
|
+
"merge",
|
|
6060
|
+
"merge with an existing config if exists. (by default, it replaces overlapping existing configs)"
|
|
6061
|
+
]
|
|
6062
|
+
],
|
|
6063
|
+
"description": "set components with an aspect to extend their development tools, metadata and (possibly) artifacts",
|
|
6064
|
+
"extendedDescription": "",
|
|
6065
|
+
"group": "component-config",
|
|
6066
|
+
"private": false,
|
|
6067
|
+
"arguments": [
|
|
6068
|
+
{
|
|
6069
|
+
"name": "pattern",
|
|
6070
|
+
"description": "the components to extend. component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6071
|
+
},
|
|
6072
|
+
{
|
|
6073
|
+
"name": "aspect-id",
|
|
6074
|
+
"description": "the aspect's component id"
|
|
6075
|
+
},
|
|
6076
|
+
{
|
|
6077
|
+
"name": "config",
|
|
6078
|
+
"description": "the aspect config. enter the config as a stringified JSON (e.g. `{\"foo\":\"bar\"}` ). when no config is provided, an aspect is set with an empty config ({})."
|
|
6079
|
+
}
|
|
6080
|
+
]
|
|
6081
|
+
},
|
|
6082
|
+
{
|
|
6083
|
+
"name": "unset <pattern> <aspect-id>",
|
|
6084
|
+
"alias": "",
|
|
6085
|
+
"options": [],
|
|
6086
|
+
"description": "unset an aspect from component(s).",
|
|
6087
|
+
"extendedDescription": "",
|
|
6088
|
+
"group": "component-config",
|
|
6089
|
+
"private": false,
|
|
6090
|
+
"arguments": [
|
|
6091
|
+
{
|
|
6092
|
+
"name": "pattern",
|
|
6093
|
+
"description": "the components to target. component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6094
|
+
},
|
|
6095
|
+
{
|
|
6096
|
+
"name": "aspect-id",
|
|
6097
|
+
"description": "the aspect's component id"
|
|
6098
|
+
}
|
|
6099
|
+
]
|
|
6100
|
+
},
|
|
6101
|
+
{
|
|
6102
|
+
"name": "update <aspect-id> [pattern]",
|
|
6103
|
+
"alias": "",
|
|
6104
|
+
"options": [],
|
|
6105
|
+
"description": "update a version of an aspect for all or specified components",
|
|
6106
|
+
"extendedDescription": "",
|
|
6107
|
+
"group": "component-config",
|
|
6108
|
+
"private": false,
|
|
6109
|
+
"arguments": [
|
|
6110
|
+
{
|
|
6111
|
+
"name": "aspect-id",
|
|
6112
|
+
"description": "the aspect's component id. optionally, add a version (id@version), otherwise will use the latest version from the remote"
|
|
6113
|
+
},
|
|
6114
|
+
{
|
|
6115
|
+
"name": "pattern",
|
|
6116
|
+
"description": "the components to update (defaults to all components). component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6117
|
+
}
|
|
6118
|
+
],
|
|
6119
|
+
"examples": [
|
|
6120
|
+
{
|
|
6121
|
+
"cmd": "bit aspect update scope.org/aspect '**/ui/**'",
|
|
6122
|
+
"description": "update all components with the \"ui\" namespace that use scope.org/aspect, to use its latest version"
|
|
6123
|
+
},
|
|
6124
|
+
{
|
|
6125
|
+
"cmd": "bit aspect update scope.org/aspect@2.0.0",
|
|
6126
|
+
"description": "update version of scope.org/aspect to version 2.0.0 for all components configured with that aspect."
|
|
6127
|
+
}
|
|
6128
|
+
]
|
|
6129
|
+
}
|
|
6130
|
+
]
|
|
6131
|
+
},
|
|
6111
6132
|
{
|
|
6112
6133
|
"name": "internalize [component-pattern]",
|
|
6113
6134
|
"alias": "",
|