@teambit/harmony.content.cli-reference 2.0.515 → 2.0.516
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 +1929 -2014
- package/cli-reference.mdx +19 -19
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +1929 -2014
- package/dist/cli-reference.mdx.js +74 -74
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1736219851589.js → preview-1736306355320.js} +2 -2
- package/package.json +2 -2
package/dist/cli-reference.json
CHANGED
|
@@ -75,281 +75,215 @@
|
|
|
75
75
|
"private": false
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
"name": "
|
|
78
|
+
"name": "doctor [diagnosis-name]",
|
|
79
79
|
"alias": "",
|
|
80
80
|
"options": [
|
|
81
81
|
[
|
|
82
82
|
"j",
|
|
83
83
|
"json",
|
|
84
|
-
"
|
|
84
|
+
"return diagnoses in json format"
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
"",
|
|
88
|
+
"list",
|
|
89
|
+
"list all available diagnoses"
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
"s",
|
|
93
|
+
"save [filePath]",
|
|
94
|
+
"save diagnoses to a file"
|
|
95
|
+
],
|
|
96
|
+
[
|
|
97
|
+
"a",
|
|
98
|
+
"archive [filePath]",
|
|
99
|
+
"archive the workspace including diagnosis info (by default exclude node-modules and include .bit)"
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"n",
|
|
103
|
+
"include-node-modules",
|
|
104
|
+
"relevant for --archive. include node_modules in the archive file"
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"p",
|
|
108
|
+
"include-public",
|
|
109
|
+
"relevant for --archive. include public folder in the archive file"
|
|
110
|
+
],
|
|
111
|
+
[
|
|
112
|
+
"e",
|
|
113
|
+
"exclude-local-scope",
|
|
114
|
+
"relevant for --archive. exclude .bit or .git/bit from the archive file"
|
|
85
115
|
]
|
|
86
116
|
],
|
|
87
|
-
"description": "
|
|
117
|
+
"description": "diagnose a bit workspace",
|
|
88
118
|
"extendedDescription": "",
|
|
89
|
-
"group": "
|
|
90
|
-
"private":
|
|
119
|
+
"group": "general",
|
|
120
|
+
"private": false
|
|
91
121
|
},
|
|
92
122
|
{
|
|
93
|
-
"name": "
|
|
123
|
+
"name": "init [path]",
|
|
94
124
|
"alias": "",
|
|
95
125
|
"options": [
|
|
96
126
|
[
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
127
|
+
"n",
|
|
128
|
+
"name <workspace-name>",
|
|
129
|
+
"name of the workspace"
|
|
100
130
|
],
|
|
101
131
|
[
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
132
|
+
"",
|
|
133
|
+
"generator <env-id>",
|
|
134
|
+
"for multiple, separate by a comma. add env-ids into the generators field in the workspace config for future \"bit create\" templates"
|
|
135
|
+
],
|
|
136
|
+
[
|
|
137
|
+
"T",
|
|
138
|
+
"standalone",
|
|
139
|
+
"do not nest component store within .git directory and do not write config data inside package.json"
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
"",
|
|
143
|
+
"no-package-json",
|
|
144
|
+
"do not generate package.json"
|
|
105
145
|
],
|
|
106
146
|
[
|
|
107
147
|
"r",
|
|
108
|
-
"
|
|
109
|
-
"
|
|
148
|
+
"reset",
|
|
149
|
+
"write missing or damaged Bit files"
|
|
150
|
+
],
|
|
151
|
+
[
|
|
152
|
+
"",
|
|
153
|
+
"reset-new",
|
|
154
|
+
"reset .bitmap file as if the components were newly added and remove all model data (objects)"
|
|
155
|
+
],
|
|
156
|
+
[
|
|
157
|
+
"",
|
|
158
|
+
"reset-lane-new",
|
|
159
|
+
"same as reset-new, but it only resets components belong to lanes. main components are left intact"
|
|
160
|
+
],
|
|
161
|
+
[
|
|
162
|
+
"",
|
|
163
|
+
"reset-hard",
|
|
164
|
+
"delete all Bit files and directories, including Bit configuration, tracking and model data. Useful for re-starting workspace from scratch"
|
|
165
|
+
],
|
|
166
|
+
[
|
|
167
|
+
"",
|
|
168
|
+
"reset-scope",
|
|
169
|
+
"removes local scope (.bit or .git/bit). tags/snaps that have not been exported will be lost. workspace is left intact"
|
|
170
|
+
],
|
|
171
|
+
[
|
|
172
|
+
"d",
|
|
173
|
+
"default-directory <default-directory>",
|
|
174
|
+
"set the default directory pattern to import/create components into"
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
"",
|
|
178
|
+
"default-scope <default-scope>",
|
|
179
|
+
"set the default scope for components in the workspace"
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
"f",
|
|
183
|
+
"force",
|
|
184
|
+
"force workspace initialization without clearing local objects"
|
|
110
185
|
],
|
|
111
186
|
[
|
|
112
187
|
"b",
|
|
113
|
-
"
|
|
114
|
-
"
|
|
188
|
+
"bare [name]",
|
|
189
|
+
"initialize an empty bit bare scope"
|
|
115
190
|
],
|
|
116
191
|
[
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
192
|
+
"s",
|
|
193
|
+
"shared <groupname>",
|
|
194
|
+
"add group write permissions to a scope properly"
|
|
120
195
|
]
|
|
121
196
|
],
|
|
122
|
-
"description": "
|
|
123
|
-
"extendedDescription": "",
|
|
124
|
-
"group": "
|
|
197
|
+
"description": "create or reinitialize an empty workspace",
|
|
198
|
+
"extendedDescription": "if the current directory is already a workspace, it validates that bit files are correct and rewrite them if needed.",
|
|
199
|
+
"group": "start",
|
|
125
200
|
"private": false,
|
|
126
|
-
"
|
|
127
|
-
{
|
|
128
|
-
"name": "component-name",
|
|
129
|
-
"description": "component name or component id"
|
|
130
|
-
}
|
|
131
|
-
]
|
|
201
|
+
"skipWorkspace": true
|
|
132
202
|
},
|
|
133
203
|
{
|
|
134
|
-
"name": "
|
|
135
|
-
"alias": "
|
|
204
|
+
"name": "globals",
|
|
205
|
+
"alias": "",
|
|
206
|
+
"options": [
|
|
207
|
+
[
|
|
208
|
+
"j",
|
|
209
|
+
"json",
|
|
210
|
+
"json format"
|
|
211
|
+
]
|
|
212
|
+
],
|
|
213
|
+
"description": "list all globals",
|
|
214
|
+
"extendedDescription": "",
|
|
215
|
+
"group": "workspace",
|
|
216
|
+
"private": false
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "system <sub-command>",
|
|
220
|
+
"alias": "",
|
|
136
221
|
"options": [],
|
|
137
|
-
"description": "
|
|
222
|
+
"description": "system operations",
|
|
138
223
|
"extendedDescription": "",
|
|
139
|
-
"group": "
|
|
224
|
+
"group": "workspace",
|
|
140
225
|
"private": false,
|
|
141
226
|
"commands": [
|
|
142
227
|
{
|
|
143
|
-
"name": "
|
|
228
|
+
"name": "log",
|
|
144
229
|
"alias": "",
|
|
145
230
|
"options": [],
|
|
146
|
-
"description": "
|
|
231
|
+
"description": "print debug.log to the screen",
|
|
147
232
|
"extendedDescription": "",
|
|
148
|
-
"group": "
|
|
233
|
+
"group": "workspace",
|
|
149
234
|
"private": false
|
|
150
235
|
},
|
|
151
236
|
{
|
|
152
|
-
"name": "
|
|
237
|
+
"name": "tail-log",
|
|
153
238
|
"alias": "",
|
|
154
|
-
"options": [
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
239
|
+
"options": [],
|
|
240
|
+
"description": "print the log file to the screen as it is being written",
|
|
241
|
+
"extendedDescription": "similar to linux \"tail -f\" command",
|
|
242
|
+
"group": "workspace",
|
|
243
|
+
"private": false
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "config",
|
|
249
|
+
"alias": "",
|
|
250
|
+
"options": [],
|
|
251
|
+
"description": "global config management",
|
|
252
|
+
"extendedDescription": "https://bit.dev/reference/config/bit-config",
|
|
253
|
+
"group": "general",
|
|
254
|
+
"private": false,
|
|
255
|
+
"commands": [
|
|
256
|
+
{
|
|
257
|
+
"name": "set <key> <val>",
|
|
258
|
+
"alias": "",
|
|
259
|
+
"options": [],
|
|
260
|
+
"description": "set a global configuration",
|
|
261
|
+
"extendedDescription": "to set temporary configuration by env variable, prefix with \"BIT_CONFIG\", replace \".\" with \"_\" and change to upper case.\nfor example, \"user.token\" becomes \"BIT_CONFIG_USER_TOKEN\"",
|
|
262
|
+
"group": "ungrouped",
|
|
164
263
|
"private": false,
|
|
165
|
-
"
|
|
166
|
-
{
|
|
167
|
-
"name": "component-name",
|
|
168
|
-
"description": "the 'component name' or 'component id' of the component whose env you'd like to inspect"
|
|
169
|
-
}
|
|
170
|
-
]
|
|
264
|
+
"skipWorkspace": true
|
|
171
265
|
},
|
|
172
266
|
{
|
|
173
|
-
"name": "
|
|
267
|
+
"name": "del <key>",
|
|
268
|
+
"alias": "",
|
|
174
269
|
"options": [],
|
|
175
|
-
"description": "
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
"name": "component-pattern",
|
|
180
|
-
"description": "component name, component id, or component pattern. 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."
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"name": "env",
|
|
184
|
-
"description": "the env's component id (include version if not latest, e.g `teambit.community/envs/community-react@1.95.13`)"
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"examples": [
|
|
188
|
-
{
|
|
189
|
-
"cmd": "set ui/button teambit.react/react-env",
|
|
190
|
-
"description": "configures 'ui/button' to use the latest version of the 'teambit.react/react-env' env"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"cmd": "set ui/button teambit.community/envs/community-mdx@1.95.16",
|
|
194
|
-
"description": "configures 'ui/button' to use the 'teambit.community/envs/community-mdx@1.95.16' env"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"cmd": "set \"*/ui/**\" teambit.react/react-env",
|
|
198
|
-
"description": "configures all components that have the 'ui' namespace to use the latest version of the teambit.react/react-env env"
|
|
199
|
-
}
|
|
200
|
-
]
|
|
270
|
+
"description": "delete given key from global configuration",
|
|
271
|
+
"extendedDescription": "",
|
|
272
|
+
"group": "ungrouped",
|
|
273
|
+
"private": false
|
|
201
274
|
},
|
|
202
275
|
{
|
|
203
|
-
"name": "
|
|
276
|
+
"name": "get <key>",
|
|
277
|
+
"alias": "",
|
|
204
278
|
"options": [],
|
|
205
|
-
"description": "
|
|
206
|
-
"extendedDescription": "
|
|
207
|
-
"group": "
|
|
208
|
-
"
|
|
209
|
-
{
|
|
210
|
-
"name": "component-pattern",
|
|
211
|
-
"description": "component name, component id, or component pattern. 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."
|
|
212
|
-
}
|
|
213
|
-
]
|
|
279
|
+
"description": "get a value from global configuration",
|
|
280
|
+
"extendedDescription": "",
|
|
281
|
+
"group": "ungrouped",
|
|
282
|
+
"private": false
|
|
214
283
|
},
|
|
215
284
|
{
|
|
216
|
-
"name": "
|
|
217
|
-
"
|
|
218
|
-
"description": "replace an existing env with another env for all components using the old env",
|
|
219
|
-
"group": "development",
|
|
220
|
-
"arguments": [
|
|
221
|
-
{
|
|
222
|
-
"name": "current-env",
|
|
223
|
-
"description": "the component id of the env to be replaced"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"name": "new-env",
|
|
227
|
-
"description": "the component id of the new env"
|
|
228
|
-
}
|
|
229
|
-
],
|
|
230
|
-
"examples": [
|
|
231
|
-
{
|
|
232
|
-
"cmd": "replace teambit.harmony/aspect teambit.harmony/node",
|
|
233
|
-
"description": "components configured to use the 'aspect' env will be configured to use the 'node' env, instead"
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "update [env-id] [pattern]",
|
|
239
|
-
"options": [],
|
|
240
|
-
"description": "update a version of an env for all components using that env",
|
|
241
|
-
"group": "development",
|
|
242
|
-
"arguments": [
|
|
243
|
-
{
|
|
244
|
-
"name": "env-id",
|
|
245
|
-
"description": "the environment id (defaults to all envs). optionally, add a version (id@version), if no version is supplied will use the latest version on the remote."
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "pattern",
|
|
249
|
-
"description": "the components to update (defaults to all components). component name, component id, or component pattern. 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."
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
"examples": [
|
|
253
|
-
{
|
|
254
|
-
"cmd": "envs update",
|
|
255
|
-
"description": "update all envs for all components in the workspace, to their latest version"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"cmd": "envs update scope.org/env '**/ui/**'",
|
|
259
|
-
"description": "update components in the \"ui\" namespace that use scope.org/env to use its latest version"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"cmd": "envs update scope.org/env@2.0.0",
|
|
263
|
-
"description": "update all components that use scope.org/env to version 2.0.0 (of this env)."
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
]
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"name": "globals",
|
|
271
|
-
"alias": "",
|
|
272
|
-
"options": [
|
|
273
|
-
[
|
|
274
|
-
"j",
|
|
275
|
-
"json",
|
|
276
|
-
"json format"
|
|
277
|
-
]
|
|
278
|
-
],
|
|
279
|
-
"description": "list all globals",
|
|
280
|
-
"extendedDescription": "",
|
|
281
|
-
"group": "workspace",
|
|
282
|
-
"private": false
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"name": "system <sub-command>",
|
|
286
|
-
"alias": "",
|
|
287
|
-
"options": [],
|
|
288
|
-
"description": "system operations",
|
|
289
|
-
"extendedDescription": "",
|
|
290
|
-
"group": "workspace",
|
|
291
|
-
"private": false,
|
|
292
|
-
"commands": [
|
|
293
|
-
{
|
|
294
|
-
"name": "log",
|
|
295
|
-
"alias": "",
|
|
296
|
-
"options": [],
|
|
297
|
-
"description": "print debug.log to the screen",
|
|
298
|
-
"extendedDescription": "",
|
|
299
|
-
"group": "workspace",
|
|
300
|
-
"private": false
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"name": "tail-log",
|
|
304
|
-
"alias": "",
|
|
305
|
-
"options": [],
|
|
306
|
-
"description": "print the log file to the screen as it is being written",
|
|
307
|
-
"extendedDescription": "similar to linux \"tail -f\" command",
|
|
308
|
-
"group": "workspace",
|
|
309
|
-
"private": false
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"name": "config",
|
|
315
|
-
"alias": "",
|
|
316
|
-
"options": [],
|
|
317
|
-
"description": "global config management",
|
|
318
|
-
"extendedDescription": "https://bit.dev/reference/config/bit-config",
|
|
319
|
-
"group": "general",
|
|
320
|
-
"private": false,
|
|
321
|
-
"commands": [
|
|
322
|
-
{
|
|
323
|
-
"name": "set <key> <val>",
|
|
324
|
-
"alias": "",
|
|
325
|
-
"options": [],
|
|
326
|
-
"description": "set a global configuration",
|
|
327
|
-
"extendedDescription": "to set temporary configuration by env variable, prefix with \"BIT_CONFIG\", replace \".\" with \"_\" and change to upper case.\nfor example, \"user.token\" becomes \"BIT_CONFIG_USER_TOKEN\"",
|
|
328
|
-
"group": "ungrouped",
|
|
329
|
-
"private": false,
|
|
330
|
-
"skipWorkspace": true
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"name": "del <key>",
|
|
334
|
-
"alias": "",
|
|
335
|
-
"options": [],
|
|
336
|
-
"description": "delete given key from global configuration",
|
|
337
|
-
"extendedDescription": "",
|
|
338
|
-
"group": "ungrouped",
|
|
339
|
-
"private": false
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"name": "get <key>",
|
|
343
|
-
"alias": "",
|
|
344
|
-
"options": [],
|
|
345
|
-
"description": "get a value from global configuration",
|
|
346
|
-
"extendedDescription": "",
|
|
347
|
-
"group": "ungrouped",
|
|
348
|
-
"private": false
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"name": "list",
|
|
352
|
-
"alias": "",
|
|
285
|
+
"name": "list",
|
|
286
|
+
"alias": "",
|
|
353
287
|
"options": [],
|
|
354
288
|
"description": "list all configuration(s)",
|
|
355
289
|
"extendedDescription": "",
|
|
@@ -406,165 +340,325 @@
|
|
|
406
340
|
]
|
|
407
341
|
},
|
|
408
342
|
{
|
|
409
|
-
"name": "
|
|
410
|
-
"alias": "
|
|
343
|
+
"name": "show <component-name>",
|
|
344
|
+
"alias": "",
|
|
411
345
|
"options": [
|
|
412
346
|
[
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
347
|
+
"j",
|
|
348
|
+
"json",
|
|
349
|
+
"return the component data in json format"
|
|
416
350
|
],
|
|
417
351
|
[
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
352
|
+
"l",
|
|
353
|
+
"legacy",
|
|
354
|
+
"use the legacy bit show."
|
|
421
355
|
],
|
|
422
356
|
[
|
|
423
357
|
"r",
|
|
424
|
-
"
|
|
425
|
-
"
|
|
426
|
-
],
|
|
427
|
-
[
|
|
428
|
-
"",
|
|
429
|
-
"skip-ui-build",
|
|
430
|
-
"skip building UI"
|
|
431
|
-
],
|
|
432
|
-
[
|
|
433
|
-
"v",
|
|
434
|
-
"verbose",
|
|
435
|
-
"show verbose output for inspection and prints stack trace"
|
|
436
|
-
],
|
|
437
|
-
[
|
|
438
|
-
"n",
|
|
439
|
-
"no-browser",
|
|
440
|
-
"do not automatically open browser when ready"
|
|
441
|
-
],
|
|
442
|
-
[
|
|
443
|
-
"",
|
|
444
|
-
"show-internal-urls",
|
|
445
|
-
"show urls for all internal dev servers"
|
|
358
|
+
"remote",
|
|
359
|
+
"show data for a remote component"
|
|
446
360
|
],
|
|
447
361
|
[
|
|
448
|
-
"",
|
|
449
|
-
"
|
|
450
|
-
"
|
|
362
|
+
"b",
|
|
363
|
+
"browser",
|
|
364
|
+
"open the component page in the browser"
|
|
451
365
|
],
|
|
452
366
|
[
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"
|
|
367
|
+
"c",
|
|
368
|
+
"compare",
|
|
369
|
+
"legacy-only. compare current file system component to its latest tagged version [default=latest]"
|
|
456
370
|
]
|
|
457
371
|
],
|
|
458
|
-
"description": "
|
|
372
|
+
"description": "display the component's essential information",
|
|
459
373
|
"extendedDescription": "",
|
|
460
|
-
"group": "
|
|
374
|
+
"group": "info",
|
|
461
375
|
"private": false,
|
|
462
376
|
"arguments": [
|
|
463
377
|
{
|
|
464
|
-
"name": "component-
|
|
465
|
-
"description": "component name
|
|
378
|
+
"name": "component-name",
|
|
379
|
+
"description": "component name or component id"
|
|
466
380
|
}
|
|
467
381
|
]
|
|
468
382
|
},
|
|
469
383
|
{
|
|
470
|
-
"name": "
|
|
471
|
-
"alias": "c",
|
|
472
|
-
"options": [],
|
|
473
|
-
"description": "build production assets for deployment.",
|
|
474
|
-
"extendedDescription": "",
|
|
475
|
-
"group": "development",
|
|
476
|
-
"private": true
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"name": "graph [id]",
|
|
384
|
+
"name": "component-issues",
|
|
480
385
|
"alias": "",
|
|
481
386
|
"options": [
|
|
482
|
-
[
|
|
483
|
-
"i",
|
|
484
|
-
"image <image>",
|
|
485
|
-
"image path and format. use one of the following extensions: [gif, png, svg, pdf]"
|
|
486
|
-
],
|
|
487
|
-
[
|
|
488
|
-
"r",
|
|
489
|
-
"remote [remoteName]",
|
|
490
|
-
"remote name (name is optional, leave empty when id is specified)"
|
|
491
|
-
],
|
|
492
|
-
[
|
|
493
|
-
"",
|
|
494
|
-
"all-versions",
|
|
495
|
-
"enter all components versions into the graph, not only latest"
|
|
496
|
-
],
|
|
497
|
-
[
|
|
498
|
-
"",
|
|
499
|
-
"layout <name>",
|
|
500
|
-
"GraphVis layout. default to \"dot\". options are [circo, dot, fdp, neato, osage, patchwork, sfdp, twopi]"
|
|
501
|
-
],
|
|
502
387
|
[
|
|
503
388
|
"j",
|
|
504
389
|
"json",
|
|
505
|
-
"json format"
|
|
390
|
+
"output issues in json format"
|
|
506
391
|
]
|
|
507
392
|
],
|
|
508
|
-
"description": "
|
|
393
|
+
"description": "list available component-issues",
|
|
509
394
|
"extendedDescription": "",
|
|
510
|
-
"group": "
|
|
511
|
-
"private":
|
|
512
|
-
"remoteOp": true
|
|
395
|
+
"group": "development",
|
|
396
|
+
"private": true
|
|
513
397
|
},
|
|
514
398
|
{
|
|
515
|
-
"name": "
|
|
516
|
-
"alias": "",
|
|
399
|
+
"name": "envs",
|
|
400
|
+
"alias": "env",
|
|
517
401
|
"options": [],
|
|
518
|
-
"description": "
|
|
402
|
+
"description": "list all components maintained by the workspace and their corresponding envs",
|
|
519
403
|
"extendedDescription": "",
|
|
520
404
|
"group": "development",
|
|
521
405
|
"private": false,
|
|
522
406
|
"commands": [
|
|
523
407
|
{
|
|
524
|
-
"name": "
|
|
408
|
+
"name": "list",
|
|
409
|
+
"alias": "",
|
|
525
410
|
"options": [],
|
|
526
|
-
"description": "
|
|
527
|
-
"extendedDescription": "
|
|
411
|
+
"description": "list all envs currently used in the workspace",
|
|
412
|
+
"extendedDescription": "",
|
|
528
413
|
"group": "development",
|
|
529
|
-
"
|
|
530
|
-
{
|
|
531
|
-
"name": "scope-name",
|
|
532
|
-
"description": "name of the scope to set"
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"name": "component-pattern",
|
|
536
|
-
"description": "component name, component id, or component pattern. 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."
|
|
537
|
-
}
|
|
538
|
-
]
|
|
414
|
+
"private": false
|
|
539
415
|
},
|
|
540
416
|
{
|
|
541
|
-
"name": "
|
|
542
|
-
"
|
|
417
|
+
"name": "get <component-name>",
|
|
418
|
+
"alias": "",
|
|
419
|
+
"options": [
|
|
543
420
|
[
|
|
544
421
|
"",
|
|
545
|
-
"
|
|
546
|
-
"
|
|
547
|
-
],
|
|
548
|
-
[
|
|
549
|
-
"x",
|
|
550
|
-
"skip-dependency-installation",
|
|
551
|
-
"do not install packages of the imported components"
|
|
422
|
+
"services <string>",
|
|
423
|
+
"show information about the specific services only. for multiple services, separate by a comma and wrap with quotes"
|
|
552
424
|
]
|
|
553
425
|
],
|
|
554
|
-
"description": "
|
|
555
|
-
"extendedDescription": "
|
|
426
|
+
"description": "show config information from a component's env",
|
|
427
|
+
"extendedDescription": "",
|
|
556
428
|
"group": "development",
|
|
429
|
+
"private": false,
|
|
557
430
|
"arguments": [
|
|
558
431
|
{
|
|
559
|
-
"name": "
|
|
560
|
-
"description": "the
|
|
432
|
+
"name": "component-name",
|
|
433
|
+
"description": "the 'component name' or 'component id' of the component whose env you'd like to inspect"
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "set <component-pattern> <env>",
|
|
439
|
+
"options": [],
|
|
440
|
+
"description": "Assigns one or more components a development environment (env)",
|
|
441
|
+
"group": "development",
|
|
442
|
+
"arguments": [
|
|
443
|
+
{
|
|
444
|
+
"name": "component-pattern",
|
|
445
|
+
"description": "component name, component id, or component pattern. 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."
|
|
561
446
|
},
|
|
562
447
|
{
|
|
563
|
-
"name": "
|
|
564
|
-
"description": "the
|
|
448
|
+
"name": "env",
|
|
449
|
+
"description": "the env's component id (include version if not latest, e.g `teambit.community/envs/community-react@1.95.13`)"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"examples": [
|
|
453
|
+
{
|
|
454
|
+
"cmd": "set ui/button teambit.react/react-env",
|
|
455
|
+
"description": "configures 'ui/button' to use the latest version of the 'teambit.react/react-env' env"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"cmd": "set ui/button teambit.community/envs/community-mdx@1.95.16",
|
|
459
|
+
"description": "configures 'ui/button' to use the 'teambit.community/envs/community-mdx@1.95.16' env"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"cmd": "set \"*/ui/**\" teambit.react/react-env",
|
|
463
|
+
"description": "configures all components that have the 'ui' namespace to use the latest version of the teambit.react/react-env env"
|
|
464
|
+
}
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "unset <component-pattern>",
|
|
469
|
+
"options": [],
|
|
470
|
+
"description": "un-sets an env from components that were previously set by \"bit env set\" or by a component template",
|
|
471
|
+
"extendedDescription": "keep in mind that this doesn't remove envs that are set via 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 reset previously assigned envs to either allow variants 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",
|
|
472
|
+
"group": "development",
|
|
473
|
+
"arguments": [
|
|
474
|
+
{
|
|
475
|
+
"name": "component-pattern",
|
|
476
|
+
"description": "component name, component id, or component pattern. 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."
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "replace <current-env> <new-env>",
|
|
482
|
+
"options": [],
|
|
483
|
+
"description": "replace an existing env with another env for all components using the old env",
|
|
484
|
+
"group": "development",
|
|
485
|
+
"arguments": [
|
|
486
|
+
{
|
|
487
|
+
"name": "current-env",
|
|
488
|
+
"description": "the component id of the env to be replaced"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "new-env",
|
|
492
|
+
"description": "the component id of the new env"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"examples": [
|
|
496
|
+
{
|
|
497
|
+
"cmd": "replace teambit.harmony/aspect teambit.harmony/node",
|
|
498
|
+
"description": "components configured to use the 'aspect' env will be configured to use the 'node' env, instead"
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "update [env-id] [pattern]",
|
|
504
|
+
"options": [],
|
|
505
|
+
"description": "update a version of an env for all components using that env",
|
|
506
|
+
"group": "development",
|
|
507
|
+
"arguments": [
|
|
508
|
+
{
|
|
509
|
+
"name": "env-id",
|
|
510
|
+
"description": "the environment id (defaults to all envs). optionally, add a version (id@version), if no version is supplied will use the latest version on the remote."
|
|
565
511
|
},
|
|
566
512
|
{
|
|
567
513
|
"name": "pattern",
|
|
514
|
+
"description": "the components to update (defaults to all components). component name, component id, or component pattern. 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."
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"examples": [
|
|
518
|
+
{
|
|
519
|
+
"cmd": "envs update",
|
|
520
|
+
"description": "update all envs for all components in the workspace, to their latest version"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"cmd": "envs update scope.org/env '**/ui/**'",
|
|
524
|
+
"description": "update components in the \"ui\" namespace that use scope.org/env to use its latest version"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"cmd": "envs update scope.org/env@2.0.0",
|
|
528
|
+
"description": "update all components that use scope.org/env to version 2.0.0 (of this env)."
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"name": "graph [id]",
|
|
536
|
+
"alias": "",
|
|
537
|
+
"options": [
|
|
538
|
+
[
|
|
539
|
+
"i",
|
|
540
|
+
"image <image>",
|
|
541
|
+
"image path and format. use one of the following extensions: [gif, png, svg, pdf]"
|
|
542
|
+
],
|
|
543
|
+
[
|
|
544
|
+
"r",
|
|
545
|
+
"remote [remoteName]",
|
|
546
|
+
"remote name (name is optional, leave empty when id is specified)"
|
|
547
|
+
],
|
|
548
|
+
[
|
|
549
|
+
"",
|
|
550
|
+
"all-versions",
|
|
551
|
+
"enter all components versions into the graph, not only latest"
|
|
552
|
+
],
|
|
553
|
+
[
|
|
554
|
+
"",
|
|
555
|
+
"layout <name>",
|
|
556
|
+
"GraphVis layout. default to \"dot\". options are [circo, dot, fdp, neato, osage, patchwork, sfdp, twopi]"
|
|
557
|
+
],
|
|
558
|
+
[
|
|
559
|
+
"j",
|
|
560
|
+
"json",
|
|
561
|
+
"json format"
|
|
562
|
+
]
|
|
563
|
+
],
|
|
564
|
+
"description": "generate an image file with the workspace components' dependencies graph",
|
|
565
|
+
"extendedDescription": "",
|
|
566
|
+
"group": "discover",
|
|
567
|
+
"private": false,
|
|
568
|
+
"remoteOp": true
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"name": "start [component-pattern]",
|
|
572
|
+
"alias": "c",
|
|
573
|
+
"options": [
|
|
574
|
+
[
|
|
575
|
+
"d",
|
|
576
|
+
"dev",
|
|
577
|
+
"start UI server in dev mode."
|
|
578
|
+
],
|
|
579
|
+
[
|
|
580
|
+
"p",
|
|
581
|
+
"port [port-number]",
|
|
582
|
+
"port of the UI server."
|
|
583
|
+
],
|
|
584
|
+
[
|
|
585
|
+
"r",
|
|
586
|
+
"rebuild",
|
|
587
|
+
"rebuild the UI (useful e.g. when updating the workspace UI - can use the dev flag for HMR in this case)"
|
|
588
|
+
],
|
|
589
|
+
[
|
|
590
|
+
"",
|
|
591
|
+
"skip-ui-build",
|
|
592
|
+
"skip building UI"
|
|
593
|
+
],
|
|
594
|
+
[
|
|
595
|
+
"v",
|
|
596
|
+
"verbose",
|
|
597
|
+
"show verbose output for inspection and prints stack trace"
|
|
598
|
+
],
|
|
599
|
+
[
|
|
600
|
+
"n",
|
|
601
|
+
"no-browser",
|
|
602
|
+
"do not automatically open browser when ready"
|
|
603
|
+
],
|
|
604
|
+
[
|
|
605
|
+
"",
|
|
606
|
+
"show-internal-urls",
|
|
607
|
+
"show urls for all internal dev servers"
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
"",
|
|
611
|
+
"skip-compilation",
|
|
612
|
+
"skip the auto-compilation before starting the web-server"
|
|
613
|
+
],
|
|
614
|
+
[
|
|
615
|
+
"u",
|
|
616
|
+
"ui-root-name [type]",
|
|
617
|
+
"name of the ui root to use, e.g. \"teambit.scope/scope\" or \"teambit.workspace/workspace\""
|
|
618
|
+
]
|
|
619
|
+
],
|
|
620
|
+
"description": "run the ui/development server",
|
|
621
|
+
"extendedDescription": "",
|
|
622
|
+
"group": "development",
|
|
623
|
+
"private": false,
|
|
624
|
+
"arguments": [
|
|
625
|
+
{
|
|
626
|
+
"name": "component-pattern",
|
|
627
|
+
"description": "component name, component id, or component pattern. 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."
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "ui-build [type]",
|
|
633
|
+
"alias": "c",
|
|
634
|
+
"options": [],
|
|
635
|
+
"description": "build production assets for deployment.",
|
|
636
|
+
"extendedDescription": "",
|
|
637
|
+
"group": "development",
|
|
638
|
+
"private": true
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "scope <sub-command>",
|
|
642
|
+
"alias": "",
|
|
643
|
+
"options": [],
|
|
644
|
+
"description": "manage the scope-name for components",
|
|
645
|
+
"extendedDescription": "",
|
|
646
|
+
"group": "development",
|
|
647
|
+
"private": false,
|
|
648
|
+
"commands": [
|
|
649
|
+
{
|
|
650
|
+
"name": "set <scope-name> [component-pattern]",
|
|
651
|
+
"options": [],
|
|
652
|
+
"description": "Sets the scope for specified component/s. If no component is specified, sets the default scope of the workspace",
|
|
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 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/**\"`.\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",
|
|
654
|
+
"group": "development",
|
|
655
|
+
"arguments": [
|
|
656
|
+
{
|
|
657
|
+
"name": "scope-name",
|
|
658
|
+
"description": "name of the scope to set"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"name": "component-pattern",
|
|
568
662
|
"description": "component name, component id, or component pattern. 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."
|
|
569
663
|
}
|
|
570
664
|
]
|
|
@@ -628,16 +722,48 @@
|
|
|
628
722
|
"description": "a new owner name to replace the current owner name"
|
|
629
723
|
}
|
|
630
724
|
]
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "fork <original-scope> [new-scope] [pattern]",
|
|
728
|
+
"options": [
|
|
729
|
+
[
|
|
730
|
+
"",
|
|
731
|
+
"ast",
|
|
732
|
+
"use ast to transform files instead of regex"
|
|
733
|
+
],
|
|
734
|
+
[
|
|
735
|
+
"x",
|
|
736
|
+
"skip-dependency-installation",
|
|
737
|
+
"do not install packages of the imported components"
|
|
738
|
+
]
|
|
739
|
+
],
|
|
740
|
+
"description": "fork all components of the original-scope and refactor the source-code to use the new scope name",
|
|
741
|
+
"extendedDescription": "optionally, provide [pattern] to limit the fork to specific components",
|
|
742
|
+
"group": "development",
|
|
743
|
+
"arguments": [
|
|
744
|
+
{
|
|
745
|
+
"name": "original-scope",
|
|
746
|
+
"description": "the original scope to fork"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"name": "new-scope",
|
|
750
|
+
"description": "the new scope to fork to, default to the default-scope of the workspace"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "pattern",
|
|
754
|
+
"description": "component name, component id, or component pattern. 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."
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
}
|
|
758
|
+
]
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"name": "cat-scope [scopePath]",
|
|
762
|
+
"alias": "",
|
|
763
|
+
"options": [
|
|
764
|
+
[
|
|
765
|
+
"f",
|
|
766
|
+
"full",
|
|
641
767
|
"show all of the objects in the scope (except \"Source\")"
|
|
642
768
|
],
|
|
643
769
|
[
|
|
@@ -755,6 +881,118 @@
|
|
|
755
881
|
"private": true,
|
|
756
882
|
"remoteOp": true
|
|
757
883
|
},
|
|
884
|
+
{
|
|
885
|
+
"name": "version-history <sub-command>",
|
|
886
|
+
"alias": "vh",
|
|
887
|
+
"options": [],
|
|
888
|
+
"description": "manage the version-history of components",
|
|
889
|
+
"extendedDescription": "",
|
|
890
|
+
"group": "info",
|
|
891
|
+
"private": false,
|
|
892
|
+
"commands": [
|
|
893
|
+
{
|
|
894
|
+
"name": "graph <component-id>",
|
|
895
|
+
"alias": "",
|
|
896
|
+
"options": [
|
|
897
|
+
[
|
|
898
|
+
"s",
|
|
899
|
+
"short-hash",
|
|
900
|
+
"show only 9 chars of the hash"
|
|
901
|
+
],
|
|
902
|
+
[
|
|
903
|
+
"m",
|
|
904
|
+
"mark <string>",
|
|
905
|
+
"paint the given node-ids in the graph in red color, for multiple, separate by commas"
|
|
906
|
+
],
|
|
907
|
+
[
|
|
908
|
+
"",
|
|
909
|
+
"png",
|
|
910
|
+
"save the graph as a png file instead of svg. requires \"graphviz\" to be installed"
|
|
911
|
+
],
|
|
912
|
+
[
|
|
913
|
+
"l",
|
|
914
|
+
"layout <name>",
|
|
915
|
+
"GraphVis layout. default to \"dot\". options are [circo, dot, fdp, neato, osage, patchwork, sfdp, twopi]"
|
|
916
|
+
]
|
|
917
|
+
],
|
|
918
|
+
"description": "generate a graph of the version history of a component and save as an SVG file",
|
|
919
|
+
"extendedDescription": "",
|
|
920
|
+
"group": "info",
|
|
921
|
+
"private": false
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "show <component-id>",
|
|
925
|
+
"alias": "vh",
|
|
926
|
+
"options": [
|
|
927
|
+
[
|
|
928
|
+
"s",
|
|
929
|
+
"short-hash",
|
|
930
|
+
"show only 9 chars of the hash"
|
|
931
|
+
],
|
|
932
|
+
[
|
|
933
|
+
"j",
|
|
934
|
+
"json",
|
|
935
|
+
"json format"
|
|
936
|
+
]
|
|
937
|
+
],
|
|
938
|
+
"description": "show the version-history of a component",
|
|
939
|
+
"extendedDescription": "",
|
|
940
|
+
"group": "info",
|
|
941
|
+
"private": false
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"name": "build <component-pattern>",
|
|
945
|
+
"alias": "",
|
|
946
|
+
"options": [
|
|
947
|
+
[
|
|
948
|
+
"",
|
|
949
|
+
"from-snap <snap>",
|
|
950
|
+
"build the version history from a specific snap. the pattern must be a single component-id"
|
|
951
|
+
],
|
|
952
|
+
[
|
|
953
|
+
"",
|
|
954
|
+
"from-all-lanes",
|
|
955
|
+
"build the version history from the heads of all lanes that include this component"
|
|
956
|
+
],
|
|
957
|
+
[
|
|
958
|
+
"",
|
|
959
|
+
"delete-existing",
|
|
960
|
+
"delete the existing version history before building it"
|
|
961
|
+
],
|
|
962
|
+
[
|
|
963
|
+
"",
|
|
964
|
+
"remote <scope>",
|
|
965
|
+
"make the change on the remote scope"
|
|
966
|
+
]
|
|
967
|
+
],
|
|
968
|
+
"description": "rebuild the version history of a component. helpful when it got corrupted for some reason",
|
|
969
|
+
"extendedDescription": "",
|
|
970
|
+
"group": "info",
|
|
971
|
+
"private": false,
|
|
972
|
+
"arguments": [
|
|
973
|
+
{
|
|
974
|
+
"name": "component-pattern",
|
|
975
|
+
"description": "component name, component id, or component pattern. 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."
|
|
976
|
+
}
|
|
977
|
+
]
|
|
978
|
+
}
|
|
979
|
+
]
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"name": "cat-version-history <id>",
|
|
983
|
+
"alias": "cvh",
|
|
984
|
+
"options": [
|
|
985
|
+
[
|
|
986
|
+
"j",
|
|
987
|
+
"json",
|
|
988
|
+
"json format"
|
|
989
|
+
]
|
|
990
|
+
],
|
|
991
|
+
"description": "cat version-history object by component-id",
|
|
992
|
+
"extendedDescription": "",
|
|
993
|
+
"group": "ungrouped",
|
|
994
|
+
"private": true
|
|
995
|
+
},
|
|
758
996
|
{
|
|
759
997
|
"name": "eject-conf <pattern>",
|
|
760
998
|
"alias": "",
|
|
@@ -1001,6 +1239,83 @@
|
|
|
1001
1239
|
}
|
|
1002
1240
|
]
|
|
1003
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
"name": "git <sub-command>",
|
|
1244
|
+
"alias": "",
|
|
1245
|
+
"options": [],
|
|
1246
|
+
"description": "perform git operations",
|
|
1247
|
+
"extendedDescription": "",
|
|
1248
|
+
"group": "git",
|
|
1249
|
+
"private": false,
|
|
1250
|
+
"commands": [
|
|
1251
|
+
{
|
|
1252
|
+
"name": "set-merge-driver",
|
|
1253
|
+
"alias": "smd",
|
|
1254
|
+
"options": [
|
|
1255
|
+
[
|
|
1256
|
+
"g",
|
|
1257
|
+
"global",
|
|
1258
|
+
"set the git merge driver globally"
|
|
1259
|
+
]
|
|
1260
|
+
],
|
|
1261
|
+
"description": "setup bit's git merge driver for bitmap files",
|
|
1262
|
+
"extendedDescription": "",
|
|
1263
|
+
"group": "git",
|
|
1264
|
+
"private": false
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "merge-bitmaps <ancestor> <current> <other>",
|
|
1268
|
+
"alias": "",
|
|
1269
|
+
"options": [],
|
|
1270
|
+
"description": "a special command to merge conflicting bitmap files during git merge",
|
|
1271
|
+
"extendedDescription": "",
|
|
1272
|
+
"group": "git",
|
|
1273
|
+
"private": true
|
|
1274
|
+
}
|
|
1275
|
+
]
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "list [remote-scope]",
|
|
1279
|
+
"alias": "ls",
|
|
1280
|
+
"options": [
|
|
1281
|
+
[
|
|
1282
|
+
"i",
|
|
1283
|
+
"ids",
|
|
1284
|
+
"show only component ids, unformatted"
|
|
1285
|
+
],
|
|
1286
|
+
[
|
|
1287
|
+
"s",
|
|
1288
|
+
"scope",
|
|
1289
|
+
"show only components stored in the local scope, including indirect dependencies"
|
|
1290
|
+
],
|
|
1291
|
+
[
|
|
1292
|
+
"o",
|
|
1293
|
+
"outdated",
|
|
1294
|
+
"highlight outdated components, in comparison with their latest remote version (if one exists)"
|
|
1295
|
+
],
|
|
1296
|
+
[
|
|
1297
|
+
"d",
|
|
1298
|
+
"include-deleted",
|
|
1299
|
+
"EXPERIMENTAL. show also deleted components"
|
|
1300
|
+
],
|
|
1301
|
+
[
|
|
1302
|
+
"j",
|
|
1303
|
+
"json",
|
|
1304
|
+
"show the output in JSON format"
|
|
1305
|
+
],
|
|
1306
|
+
[
|
|
1307
|
+
"n",
|
|
1308
|
+
"namespace <string>",
|
|
1309
|
+
"show only components in the specified namespace/s e.g. '-n ui' or '*/ui'"
|
|
1310
|
+
]
|
|
1311
|
+
],
|
|
1312
|
+
"description": "list components on a workspace or a remote scope (with flag).",
|
|
1313
|
+
"extendedDescription": "",
|
|
1314
|
+
"group": "discover",
|
|
1315
|
+
"private": false,
|
|
1316
|
+
"remoteOp": true,
|
|
1317
|
+
"skipWorkspace": true
|
|
1318
|
+
},
|
|
1004
1319
|
{
|
|
1005
1320
|
"name": "ws-config <sub-command>",
|
|
1006
1321
|
"alias": "workspace-config",
|
|
@@ -1146,41 +1461,6 @@
|
|
|
1146
1461
|
"remoteOp": true,
|
|
1147
1462
|
"skipWorkspace": true
|
|
1148
1463
|
},
|
|
1149
|
-
{
|
|
1150
|
-
"name": "git <sub-command>",
|
|
1151
|
-
"alias": "",
|
|
1152
|
-
"options": [],
|
|
1153
|
-
"description": "perform git operations",
|
|
1154
|
-
"extendedDescription": "",
|
|
1155
|
-
"group": "git",
|
|
1156
|
-
"private": false,
|
|
1157
|
-
"commands": [
|
|
1158
|
-
{
|
|
1159
|
-
"name": "set-merge-driver",
|
|
1160
|
-
"alias": "smd",
|
|
1161
|
-
"options": [
|
|
1162
|
-
[
|
|
1163
|
-
"g",
|
|
1164
|
-
"global",
|
|
1165
|
-
"set the git merge driver globally"
|
|
1166
|
-
]
|
|
1167
|
-
],
|
|
1168
|
-
"description": "setup bit's git merge driver for bitmap files",
|
|
1169
|
-
"extendedDescription": "",
|
|
1170
|
-
"group": "git",
|
|
1171
|
-
"private": false
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
"name": "merge-bitmaps <ancestor> <current> <other>",
|
|
1175
|
-
"alias": "",
|
|
1176
|
-
"options": [],
|
|
1177
|
-
"description": "a special command to merge conflicting bitmap files during git merge",
|
|
1178
|
-
"extendedDescription": "",
|
|
1179
|
-
"group": "git",
|
|
1180
|
-
"private": true
|
|
1181
|
-
}
|
|
1182
|
-
]
|
|
1183
|
-
},
|
|
1184
1464
|
{
|
|
1185
1465
|
"name": "add [path...]",
|
|
1186
1466
|
"alias": "a",
|
|
@@ -1608,7 +1888,7 @@
|
|
|
1608
1888
|
]
|
|
1609
1889
|
},
|
|
1610
1890
|
{
|
|
1611
|
-
"name": "app
|
|
1891
|
+
"name": "app [sub-command]",
|
|
1612
1892
|
"alias": "apps",
|
|
1613
1893
|
"options": [],
|
|
1614
1894
|
"description": "Manages apps",
|
|
@@ -1892,84 +2172,6 @@
|
|
|
1892
2172
|
}
|
|
1893
2173
|
]
|
|
1894
2174
|
},
|
|
1895
|
-
{
|
|
1896
|
-
"name": "eject <component-pattern>",
|
|
1897
|
-
"alias": "E",
|
|
1898
|
-
"options": [
|
|
1899
|
-
[
|
|
1900
|
-
"f",
|
|
1901
|
-
"force",
|
|
1902
|
-
"ignore local changes/versions. eject component/s even when they are staged or modified. Note: unexported tags/snaps will be lost"
|
|
1903
|
-
],
|
|
1904
|
-
[
|
|
1905
|
-
"x",
|
|
1906
|
-
"skip-dependency-installation",
|
|
1907
|
-
"do not auto-install dependencies"
|
|
1908
|
-
],
|
|
1909
|
-
[
|
|
1910
|
-
"j",
|
|
1911
|
-
"json",
|
|
1912
|
-
"print the results in JSON format"
|
|
1913
|
-
],
|
|
1914
|
-
[
|
|
1915
|
-
"",
|
|
1916
|
-
"keep-files",
|
|
1917
|
-
"keep the component files in the workspace intact"
|
|
1918
|
-
]
|
|
1919
|
-
],
|
|
1920
|
-
"description": "remove component from the workspace and install it instead as a regular npm package.",
|
|
1921
|
-
"extendedDescription": "By default the component files will be removed from the workspace",
|
|
1922
|
-
"group": "development",
|
|
1923
|
-
"private": false,
|
|
1924
|
-
"arguments": [
|
|
1925
|
-
{
|
|
1926
|
-
"name": "component-pattern",
|
|
1927
|
-
"description": "component name, component id, or component pattern. 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."
|
|
1928
|
-
}
|
|
1929
|
-
]
|
|
1930
|
-
},
|
|
1931
|
-
{
|
|
1932
|
-
"name": "list [remote-scope]",
|
|
1933
|
-
"alias": "ls",
|
|
1934
|
-
"options": [
|
|
1935
|
-
[
|
|
1936
|
-
"i",
|
|
1937
|
-
"ids",
|
|
1938
|
-
"show only component ids, unformatted"
|
|
1939
|
-
],
|
|
1940
|
-
[
|
|
1941
|
-
"s",
|
|
1942
|
-
"scope",
|
|
1943
|
-
"show only components stored in the local scope, including indirect dependencies"
|
|
1944
|
-
],
|
|
1945
|
-
[
|
|
1946
|
-
"o",
|
|
1947
|
-
"outdated",
|
|
1948
|
-
"highlight outdated components, in comparison with their latest remote version (if one exists)"
|
|
1949
|
-
],
|
|
1950
|
-
[
|
|
1951
|
-
"d",
|
|
1952
|
-
"include-deleted",
|
|
1953
|
-
"EXPERIMENTAL. show also deleted components"
|
|
1954
|
-
],
|
|
1955
|
-
[
|
|
1956
|
-
"j",
|
|
1957
|
-
"json",
|
|
1958
|
-
"show the output in JSON format"
|
|
1959
|
-
],
|
|
1960
|
-
[
|
|
1961
|
-
"n",
|
|
1962
|
-
"namespace <string>",
|
|
1963
|
-
"show only components in the specified namespace/s e.g. '-n ui' or '*/ui'"
|
|
1964
|
-
]
|
|
1965
|
-
],
|
|
1966
|
-
"description": "list components on a workspace or a remote scope (with flag).",
|
|
1967
|
-
"extendedDescription": "",
|
|
1968
|
-
"group": "discover",
|
|
1969
|
-
"private": false,
|
|
1970
|
-
"remoteOp": true,
|
|
1971
|
-
"skipWorkspace": true
|
|
1972
|
-
},
|
|
1973
2175
|
{
|
|
1974
2176
|
"name": "move <current-component-dir> <new-component-dir>",
|
|
1975
2177
|
"alias": "mv",
|
|
@@ -2259,785 +2461,750 @@
|
|
|
2259
2461
|
"private": false
|
|
2260
2462
|
},
|
|
2261
2463
|
{
|
|
2262
|
-
"name": "
|
|
2263
|
-
"alias": "",
|
|
2264
|
-
"options": [],
|
|
2265
|
-
"description": "EXPERIMENTAL. resume failed export",
|
|
2266
|
-
"extendedDescription": "resume failed export to persist the pending objects on the given remotes.\nthe export-id is the id the client received in the error message during the failure.\nalternatively, exporting to any one of the failed scopes, throws server-is-busy error with the export-id",
|
|
2267
|
-
"group": "collaborate",
|
|
2268
|
-
"private": true,
|
|
2269
|
-
"remoteOp": true
|
|
2270
|
-
},
|
|
2271
|
-
{
|
|
2272
|
-
"name": "export [component-patterns...]",
|
|
2273
|
-
"alias": "e",
|
|
2274
|
-
"options": [
|
|
2275
|
-
[
|
|
2276
|
-
"e",
|
|
2277
|
-
"eject",
|
|
2278
|
-
"after export, remove the components from the workspace and install them as packages"
|
|
2279
|
-
],
|
|
2280
|
-
[
|
|
2281
|
-
"a",
|
|
2282
|
-
"all",
|
|
2283
|
-
"export all components, including non-staged (useful when components in the remote scope are corrupted or missing)"
|
|
2284
|
-
],
|
|
2285
|
-
[
|
|
2286
|
-
"",
|
|
2287
|
-
"all-versions",
|
|
2288
|
-
"export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing)"
|
|
2289
|
-
],
|
|
2290
|
-
[
|
|
2291
|
-
"",
|
|
2292
|
-
"origin-directly",
|
|
2293
|
-
"avoid export to the central hub, instead, export directly to the original scopes. not recommended!"
|
|
2294
|
-
],
|
|
2295
|
-
[
|
|
2296
|
-
"",
|
|
2297
|
-
"resume <string>",
|
|
2298
|
-
"in case the previous export failed and suggested to resume with an export-id, enter the id"
|
|
2299
|
-
],
|
|
2300
|
-
[
|
|
2301
|
-
"",
|
|
2302
|
-
"head-only",
|
|
2303
|
-
"in case previous export failed and locally it shows exported and only one snap/tag was created, try using this flag"
|
|
2304
|
-
],
|
|
2305
|
-
[
|
|
2306
|
-
"",
|
|
2307
|
-
"ignore-missing-artifacts",
|
|
2308
|
-
"don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote"
|
|
2309
|
-
],
|
|
2310
|
-
[
|
|
2311
|
-
"",
|
|
2312
|
-
"fork-lane-new-scope",
|
|
2313
|
-
"allow exporting a forked lane into a different scope than the original scope"
|
|
2314
|
-
],
|
|
2315
|
-
[
|
|
2316
|
-
"",
|
|
2317
|
-
"open-browser",
|
|
2318
|
-
"open a browser once the export is completed in the cloud job url"
|
|
2319
|
-
],
|
|
2320
|
-
[
|
|
2321
|
-
"",
|
|
2322
|
-
"verbose",
|
|
2323
|
-
"per exported component, show the versions being exported"
|
|
2324
|
-
],
|
|
2325
|
-
[
|
|
2326
|
-
"j",
|
|
2327
|
-
"json",
|
|
2328
|
-
"show output in json format"
|
|
2329
|
-
]
|
|
2330
|
-
],
|
|
2331
|
-
"description": "export components from the workspace to remote scopes",
|
|
2332
|
-
"extendedDescription": "bit export => export all staged snaps/tags of components to their remote scope. if checked out to a lane, export the lane as well\n `bit export [pattern...]` => export components included by the pattern to their remote scope (we recommend not using a pattern in\n most scenarios so that all changes are exported simultaneously)\n you can use a pattern for multiple ids, such as bit export \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
|
|
2333
|
-
"group": "collaborate",
|
|
2334
|
-
"private": false,
|
|
2335
|
-
"remoteOp": true,
|
|
2336
|
-
"arguments": [
|
|
2337
|
-
{
|
|
2338
|
-
"name": "component-patterns...",
|
|
2339
|
-
"description": "(not recommended) component name, component id, or component pattern. 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."
|
|
2340
|
-
}
|
|
2341
|
-
]
|
|
2342
|
-
},
|
|
2343
|
-
{
|
|
2344
|
-
"name": "pack <componentId> [scopePath]",
|
|
2345
|
-
"alias": "",
|
|
2346
|
-
"options": [
|
|
2347
|
-
[
|
|
2348
|
-
"d",
|
|
2349
|
-
"out-dir <out-dir>",
|
|
2350
|
-
"directory to put the result tar file"
|
|
2351
|
-
],
|
|
2352
|
-
[
|
|
2353
|
-
"o",
|
|
2354
|
-
"override",
|
|
2355
|
-
"override existing pack file"
|
|
2356
|
-
],
|
|
2357
|
-
[
|
|
2358
|
-
"k",
|
|
2359
|
-
"keep",
|
|
2360
|
-
"should keep isolated environment [default = false]"
|
|
2361
|
-
],
|
|
2362
|
-
[
|
|
2363
|
-
"p",
|
|
2364
|
-
"prefix",
|
|
2365
|
-
"keep custom (binding) prefix"
|
|
2366
|
-
],
|
|
2367
|
-
[
|
|
2368
|
-
"j",
|
|
2369
|
-
"json",
|
|
2370
|
-
"return the output as JSON"
|
|
2371
|
-
]
|
|
2372
|
-
],
|
|
2373
|
-
"description": "create tar for npm publish",
|
|
2374
|
-
"extendedDescription": "",
|
|
2375
|
-
"group": "collaborate",
|
|
2376
|
-
"private": true
|
|
2377
|
-
},
|
|
2378
|
-
{
|
|
2379
|
-
"name": "publish <component-pattern>",
|
|
2380
|
-
"alias": "",
|
|
2381
|
-
"options": [
|
|
2382
|
-
[
|
|
2383
|
-
"d",
|
|
2384
|
-
"dry-run",
|
|
2385
|
-
"npm publish --dry-run"
|
|
2386
|
-
],
|
|
2387
|
-
[
|
|
2388
|
-
"",
|
|
2389
|
-
"allow-staged",
|
|
2390
|
-
"allow publishing components that were not exported yet (not recommended)"
|
|
2391
|
-
],
|
|
2392
|
-
[
|
|
2393
|
-
"j",
|
|
2394
|
-
"json",
|
|
2395
|
-
"return the output as JSON"
|
|
2396
|
-
]
|
|
2397
|
-
],
|
|
2398
|
-
"description": "publish components to npm (npm publish)",
|
|
2399
|
-
"extendedDescription": "",
|
|
2400
|
-
"group": "collaborate",
|
|
2401
|
-
"private": true,
|
|
2402
|
-
"arguments": [
|
|
2403
|
-
{
|
|
2404
|
-
"name": "component-pattern",
|
|
2405
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2406
|
-
}
|
|
2407
|
-
]
|
|
2408
|
-
},
|
|
2409
|
-
{
|
|
2410
|
-
"name": "refactor <sub-command>",
|
|
2411
|
-
"alias": "",
|
|
2464
|
+
"name": "deps <sub-command>",
|
|
2465
|
+
"alias": "dependencies",
|
|
2412
2466
|
"options": [],
|
|
2413
|
-
"description": "
|
|
2467
|
+
"description": "manage dependencies",
|
|
2414
2468
|
"extendedDescription": "",
|
|
2415
|
-
"group": "
|
|
2469
|
+
"group": "info",
|
|
2416
2470
|
"private": false,
|
|
2417
2471
|
"commands": [
|
|
2418
2472
|
{
|
|
2419
|
-
"name": "
|
|
2473
|
+
"name": "get <component-name>",
|
|
2420
2474
|
"alias": "",
|
|
2421
|
-
"options": [
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2475
|
+
"options": [
|
|
2476
|
+
[
|
|
2477
|
+
"",
|
|
2478
|
+
"scope",
|
|
2479
|
+
"get the data from the scope instead of the workspace"
|
|
2480
|
+
],
|
|
2481
|
+
[
|
|
2482
|
+
"t",
|
|
2483
|
+
"tree",
|
|
2484
|
+
"render dependencies as a tree, similar to \"npm ls\""
|
|
2485
|
+
]
|
|
2486
|
+
],
|
|
2487
|
+
"description": "show direct and indirect dependencies of the given component",
|
|
2488
|
+
"extendedDescription": "",
|
|
2489
|
+
"group": "info",
|
|
2490
|
+
"private": false,
|
|
2491
|
+
"arguments": [
|
|
2492
|
+
{
|
|
2493
|
+
"name": "component-name",
|
|
2494
|
+
"description": "component name or component id"
|
|
2495
|
+
}
|
|
2496
|
+
]
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
"name": "remove <component-pattern> <package...>",
|
|
2500
|
+
"alias": "",
|
|
2501
|
+
"options": [
|
|
2502
|
+
[
|
|
2503
|
+
"d",
|
|
2504
|
+
"dev",
|
|
2505
|
+
"remove from devDependencies"
|
|
2506
|
+
],
|
|
2507
|
+
[
|
|
2508
|
+
"p",
|
|
2509
|
+
"peer",
|
|
2510
|
+
"remove from peerDependencies"
|
|
2511
|
+
]
|
|
2512
|
+
],
|
|
2513
|
+
"description": "remove a dependency from one or more components",
|
|
2514
|
+
"extendedDescription": "this command removes the dependency whether it was set by 'bit deps set'/variants or by auto-detection.\nif the dependency was auto-detected, it will be marked with a minus sign in the .bitmap file.\notherwise, the config is written to .bitmap without the dependency.\nsee also 'bit deps unset'",
|
|
2515
|
+
"group": "info",
|
|
2516
|
+
"private": false,
|
|
2517
|
+
"arguments": [
|
|
2518
|
+
{
|
|
2519
|
+
"name": "component-pattern",
|
|
2520
|
+
"description": "component name, component id, or component pattern. 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."
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"name": "package...",
|
|
2524
|
+
"description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version"
|
|
2525
|
+
}
|
|
2526
|
+
]
|
|
2527
|
+
},
|
|
2528
|
+
{
|
|
2529
|
+
"name": "unset <component-pattern> <package...>",
|
|
2530
|
+
"alias": "",
|
|
2531
|
+
"options": [
|
|
2532
|
+
[
|
|
2533
|
+
"d",
|
|
2534
|
+
"dev",
|
|
2535
|
+
"unset from devDependencies"
|
|
2536
|
+
],
|
|
2537
|
+
[
|
|
2538
|
+
"p",
|
|
2539
|
+
"peer",
|
|
2540
|
+
"unset from peerDependencies"
|
|
2541
|
+
]
|
|
2542
|
+
],
|
|
2543
|
+
"description": "unset a dependency to component(s) that was set via config (e.g. \"bit deps set\" or variants)",
|
|
2544
|
+
"extendedDescription": "this command removes the dependency only when it was set by config not if it was auto detected.\nin the .bitmap file, the config is written without the dependency.\nsee also \"bit deps remove\"",
|
|
2545
|
+
"group": "info",
|
|
2546
|
+
"private": false,
|
|
2547
|
+
"arguments": [
|
|
2548
|
+
{
|
|
2549
|
+
"name": "component-pattern",
|
|
2550
|
+
"description": "component name, component id, or component pattern. 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."
|
|
2551
|
+
},
|
|
2552
|
+
{
|
|
2553
|
+
"name": "package...",
|
|
2554
|
+
"description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version"
|
|
2555
|
+
}
|
|
2556
|
+
]
|
|
2557
|
+
},
|
|
2558
|
+
{
|
|
2559
|
+
"name": "debug <component-name>",
|
|
2560
|
+
"alias": "",
|
|
2561
|
+
"options": [],
|
|
2562
|
+
"description": "show the immediate dependencies and how their versions were determined",
|
|
2563
|
+
"extendedDescription": "",
|
|
2564
|
+
"group": "info",
|
|
2565
|
+
"private": false,
|
|
2566
|
+
"arguments": [
|
|
2567
|
+
{
|
|
2568
|
+
"name": "component-name",
|
|
2569
|
+
"description": "component name or component id"
|
|
2570
|
+
}
|
|
2571
|
+
]
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
"name": "set <component-pattern> <package...>",
|
|
2575
|
+
"alias": "",
|
|
2576
|
+
"options": [
|
|
2577
|
+
[
|
|
2578
|
+
"d",
|
|
2579
|
+
"dev",
|
|
2580
|
+
"add to the devDependencies"
|
|
2581
|
+
],
|
|
2582
|
+
[
|
|
2583
|
+
"o",
|
|
2584
|
+
"optional",
|
|
2585
|
+
"add to the optionalDependencies"
|
|
2586
|
+
],
|
|
2587
|
+
[
|
|
2588
|
+
"p",
|
|
2589
|
+
"peer",
|
|
2590
|
+
"add to the peerDependencies"
|
|
2591
|
+
]
|
|
2592
|
+
],
|
|
2593
|
+
"description": "set a dependency to component(s)",
|
|
2594
|
+
"extendedDescription": "",
|
|
2595
|
+
"group": "info",
|
|
2596
|
+
"private": false,
|
|
2597
|
+
"arguments": [
|
|
2598
|
+
{
|
|
2599
|
+
"name": "component-pattern",
|
|
2600
|
+
"description": "component name, component id, or component pattern. 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."
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"name": "package...",
|
|
2604
|
+
"description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will be resolved to the latest"
|
|
2605
|
+
}
|
|
2606
|
+
]
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"name": "reset <component-pattern>",
|
|
2610
|
+
"alias": "",
|
|
2611
|
+
"options": [],
|
|
2612
|
+
"description": "reset dependencies to the default values (revert any previously \"bit deps set\")",
|
|
2613
|
+
"extendedDescription": "",
|
|
2614
|
+
"group": "info",
|
|
2615
|
+
"private": false,
|
|
2616
|
+
"arguments": [
|
|
2617
|
+
{
|
|
2618
|
+
"name": "component-pattern",
|
|
2619
|
+
"description": "component name, component id, or component pattern. 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."
|
|
2620
|
+
}
|
|
2621
|
+
]
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"name": "eject <component-pattern>",
|
|
2625
|
+
"alias": "",
|
|
2626
|
+
"options": [],
|
|
2627
|
+
"description": "write dependencies that were previously set via \"bit deps set\" into .bitmap",
|
|
2628
|
+
"extendedDescription": "",
|
|
2629
|
+
"group": "info",
|
|
2630
|
+
"private": false,
|
|
2631
|
+
"arguments": [
|
|
2632
|
+
{
|
|
2633
|
+
"name": "component-pattern",
|
|
2634
|
+
"description": "component name, component id, or component pattern. 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."
|
|
2635
|
+
}
|
|
2636
|
+
]
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"name": "blame <component-name> <dependency-name>",
|
|
2640
|
+
"alias": "",
|
|
2641
|
+
"options": [],
|
|
2642
|
+
"description": "find out which snap/tag changed a dependency version",
|
|
2643
|
+
"extendedDescription": "",
|
|
2644
|
+
"group": "info",
|
|
2645
|
+
"private": false,
|
|
2646
|
+
"arguments": [
|
|
2647
|
+
{
|
|
2648
|
+
"name": "dependency-name",
|
|
2649
|
+
"description": "package-name. for components, you can use either component-id or package-name"
|
|
2650
|
+
}
|
|
2651
|
+
]
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
"name": "usage <dependency-name>",
|
|
2655
|
+
"alias": "",
|
|
2656
|
+
"options": [
|
|
2657
|
+
[
|
|
2658
|
+
"",
|
|
2659
|
+
"depth <number>",
|
|
2660
|
+
"max display depth of the dependency graph"
|
|
2661
|
+
]
|
|
2662
|
+
],
|
|
2663
|
+
"description": "find components that use the specified dependency",
|
|
2664
|
+
"extendedDescription": "",
|
|
2665
|
+
"group": "info",
|
|
2666
|
+
"private": false,
|
|
2667
|
+
"arguments": [
|
|
2668
|
+
{
|
|
2669
|
+
"name": "dependency-name",
|
|
2670
|
+
"description": "package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version"
|
|
2671
|
+
}
|
|
2672
|
+
]
|
|
2673
|
+
}
|
|
2674
|
+
]
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
"name": "why <dependency-name>",
|
|
2431
2678
|
"alias": "",
|
|
2432
2679
|
"options": [
|
|
2433
|
-
[
|
|
2434
|
-
"s",
|
|
2435
|
-
"scope <string>",
|
|
2436
|
-
"default scope for the new component"
|
|
2437
|
-
],
|
|
2438
|
-
[
|
|
2439
|
-
"p",
|
|
2440
|
-
"path <string>",
|
|
2441
|
-
"relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`"
|
|
2442
|
-
],
|
|
2443
|
-
[
|
|
2444
|
-
"r",
|
|
2445
|
-
"refactor",
|
|
2446
|
-
"update the import/require statements in all dependent components (in the same workspace)"
|
|
2447
|
-
],
|
|
2448
|
-
[
|
|
2449
|
-
"x",
|
|
2450
|
-
"skip-dependency-installation",
|
|
2451
|
-
"do not install packages of the imported components"
|
|
2452
|
-
],
|
|
2453
|
-
[
|
|
2454
|
-
"e",
|
|
2455
|
-
"env <string>",
|
|
2456
|
-
"set the environment for the new component"
|
|
2457
|
-
],
|
|
2458
|
-
[
|
|
2459
|
-
"",
|
|
2460
|
-
"skip-config",
|
|
2461
|
-
"do not copy the config (aspects-config, env, etc) to the new component. helpful when it fails during aspect loading"
|
|
2462
|
-
],
|
|
2463
|
-
[
|
|
2464
|
-
"",
|
|
2465
|
-
"preserve",
|
|
2466
|
-
"avoid refactoring file and variable/class names according to the new component name"
|
|
2467
|
-
],
|
|
2468
|
-
[
|
|
2469
|
-
"",
|
|
2470
|
-
"no-link",
|
|
2471
|
-
"avoid saving a reference to the original component"
|
|
2472
|
-
],
|
|
2473
2680
|
[
|
|
2474
2681
|
"",
|
|
2475
|
-
"
|
|
2476
|
-
"
|
|
2682
|
+
"depth <number>",
|
|
2683
|
+
"max display depth of the dependency graph"
|
|
2477
2684
|
]
|
|
2478
2685
|
],
|
|
2479
|
-
"description": "
|
|
2686
|
+
"description": "find components that use the specified dependency",
|
|
2480
2687
|
"extendedDescription": "",
|
|
2481
|
-
"group": "
|
|
2688
|
+
"group": "info",
|
|
2482
2689
|
"private": false,
|
|
2483
|
-
"remoteOp": true,
|
|
2484
|
-
"skipWorkspace": true,
|
|
2485
2690
|
"arguments": [
|
|
2486
2691
|
{
|
|
2487
|
-
"name": "
|
|
2488
|
-
"description": "
|
|
2489
|
-
}
|
|
2692
|
+
"name": "dependency-name",
|
|
2693
|
+
"description": "package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version"
|
|
2694
|
+
}
|
|
2695
|
+
]
|
|
2696
|
+
},
|
|
2697
|
+
{
|
|
2698
|
+
"name": "set-peer <component-id> <range>",
|
|
2699
|
+
"alias": "",
|
|
2700
|
+
"options": [],
|
|
2701
|
+
"description": "set a component as always peer",
|
|
2702
|
+
"extendedDescription": "",
|
|
2703
|
+
"group": "info",
|
|
2704
|
+
"private": false,
|
|
2705
|
+
"arguments": [
|
|
2490
2706
|
{
|
|
2491
|
-
"name": "
|
|
2492
|
-
"description": "the
|
|
2707
|
+
"name": "component-id",
|
|
2708
|
+
"description": "the component to set as always peer"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
"name": "range",
|
|
2712
|
+
"description": "the default range to use for the componnent, when added to peerDependencies"
|
|
2493
2713
|
}
|
|
2494
2714
|
]
|
|
2495
2715
|
},
|
|
2496
2716
|
{
|
|
2497
|
-
"name": "
|
|
2498
|
-
"alias": "
|
|
2717
|
+
"name": "unset-peer <component-id>",
|
|
2718
|
+
"alias": "",
|
|
2719
|
+
"options": [],
|
|
2720
|
+
"description": "unset a component as always peer",
|
|
2721
|
+
"extendedDescription": "",
|
|
2722
|
+
"group": "info",
|
|
2723
|
+
"private": false,
|
|
2724
|
+
"arguments": [
|
|
2725
|
+
{
|
|
2726
|
+
"name": "component-id",
|
|
2727
|
+
"description": "the component to unset as always peer"
|
|
2728
|
+
}
|
|
2729
|
+
]
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"name": "dependents <component-name>",
|
|
2733
|
+
"alias": "",
|
|
2499
2734
|
"options": [
|
|
2500
2735
|
[
|
|
2501
|
-
"
|
|
2502
|
-
"
|
|
2503
|
-
"
|
|
2504
|
-
],
|
|
2505
|
-
[
|
|
2506
|
-
"r",
|
|
2507
|
-
"auto-merge-resolve <merge-strategy>",
|
|
2508
|
-
"in case of merge conflict, resolve according to the provided strategy: [ours, theirs, manual]"
|
|
2509
|
-
],
|
|
2510
|
-
[
|
|
2511
|
-
"",
|
|
2512
|
-
"manual",
|
|
2513
|
-
"same as \"--auto-merge-resolve manual\". in case of merge conflict, write the files with the conflict markers"
|
|
2514
|
-
],
|
|
2515
|
-
[
|
|
2516
|
-
"a",
|
|
2517
|
-
"all",
|
|
2518
|
-
"all components"
|
|
2519
|
-
],
|
|
2520
|
-
[
|
|
2521
|
-
"e",
|
|
2522
|
-
"workspace-only",
|
|
2523
|
-
"only relevant for 'bit checkout head' when on a lane. don't import components from the remote lane that are not already in the workspace"
|
|
2524
|
-
],
|
|
2525
|
-
[
|
|
2526
|
-
"v",
|
|
2527
|
-
"verbose",
|
|
2528
|
-
"showing verbose output for inspection"
|
|
2529
|
-
],
|
|
2530
|
-
[
|
|
2531
|
-
"x",
|
|
2532
|
-
"skip-dependency-installation",
|
|
2533
|
-
"do not auto-install dependencies of the imported components"
|
|
2534
|
-
],
|
|
2535
|
-
[
|
|
2536
|
-
"",
|
|
2537
|
-
"force-ours",
|
|
2538
|
-
"do not merge, preserve local files as is"
|
|
2539
|
-
],
|
|
2540
|
-
[
|
|
2541
|
-
"",
|
|
2542
|
-
"force-theirs",
|
|
2543
|
-
"do not merge, just overwrite with incoming files"
|
|
2736
|
+
"j",
|
|
2737
|
+
"json",
|
|
2738
|
+
"return the dependents in JSON format"
|
|
2544
2739
|
]
|
|
2545
2740
|
],
|
|
2546
|
-
"description": "
|
|
2547
|
-
"extendedDescription": "
|
|
2548
|
-
"group": "
|
|
2741
|
+
"description": "show dependents of the given component",
|
|
2742
|
+
"extendedDescription": "",
|
|
2743
|
+
"group": "info",
|
|
2549
2744
|
"private": false,
|
|
2550
2745
|
"arguments": [
|
|
2551
2746
|
{
|
|
2552
|
-
"name": "
|
|
2553
|
-
"description": "
|
|
2554
|
-
},
|
|
2555
|
-
{
|
|
2556
|
-
"name": "component-pattern",
|
|
2557
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2747
|
+
"name": "component-name",
|
|
2748
|
+
"description": "component name or component id"
|
|
2558
2749
|
}
|
|
2559
2750
|
]
|
|
2560
2751
|
},
|
|
2561
2752
|
{
|
|
2562
|
-
"name": "
|
|
2563
|
-
"alias": "",
|
|
2753
|
+
"name": "eject <component-pattern>",
|
|
2754
|
+
"alias": "E",
|
|
2564
2755
|
"options": [
|
|
2565
2756
|
[
|
|
2566
|
-
"
|
|
2567
|
-
"
|
|
2568
|
-
"
|
|
2757
|
+
"f",
|
|
2758
|
+
"force",
|
|
2759
|
+
"ignore local changes/versions. eject component/s even when they are staged or modified. Note: unexported tags/snaps will be lost"
|
|
2569
2760
|
],
|
|
2570
2761
|
[
|
|
2571
2762
|
"x",
|
|
2572
2763
|
"skip-dependency-installation",
|
|
2573
|
-
"do not install
|
|
2764
|
+
"do not auto-install dependencies"
|
|
2765
|
+
],
|
|
2766
|
+
[
|
|
2767
|
+
"j",
|
|
2768
|
+
"json",
|
|
2769
|
+
"print the results in JSON format"
|
|
2770
|
+
],
|
|
2771
|
+
[
|
|
2772
|
+
"",
|
|
2773
|
+
"keep-files",
|
|
2774
|
+
"keep the component files in the workspace intact"
|
|
2574
2775
|
]
|
|
2575
2776
|
],
|
|
2576
|
-
"description": "
|
|
2577
|
-
"extendedDescription": "",
|
|
2777
|
+
"description": "remove component from the workspace and install it instead as a regular npm package.",
|
|
2778
|
+
"extendedDescription": "By default the component files will be removed from the workspace",
|
|
2578
2779
|
"group": "development",
|
|
2579
2780
|
"private": false,
|
|
2580
2781
|
"arguments": [
|
|
2581
2782
|
{
|
|
2582
2783
|
"name": "component-pattern",
|
|
2583
2784
|
"description": "component name, component id, or component pattern. 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."
|
|
2584
|
-
},
|
|
2585
|
-
{
|
|
2586
|
-
"name": "to",
|
|
2587
|
-
"description": "permitted values: [main, specific-version]. 'main' - head version on main."
|
|
2588
2785
|
}
|
|
2589
2786
|
]
|
|
2590
2787
|
},
|
|
2591
2788
|
{
|
|
2592
|
-
"name": "
|
|
2593
|
-
"alias": "
|
|
2789
|
+
"name": "resume-export <export-id> <remotes...>",
|
|
2790
|
+
"alias": "",
|
|
2791
|
+
"options": [],
|
|
2792
|
+
"description": "EXPERIMENTAL. resume failed export",
|
|
2793
|
+
"extendedDescription": "resume failed export to persist the pending objects on the given remotes.\nthe export-id is the id the client received in the error message during the failure.\nalternatively, exporting to any one of the failed scopes, throws server-is-busy error with the export-id",
|
|
2794
|
+
"group": "collaborate",
|
|
2795
|
+
"private": true,
|
|
2796
|
+
"remoteOp": true
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"name": "export [component-patterns...]",
|
|
2800
|
+
"alias": "e",
|
|
2594
2801
|
"options": [
|
|
2595
2802
|
[
|
|
2596
|
-
"
|
|
2597
|
-
"
|
|
2598
|
-
"
|
|
2599
|
-
],
|
|
2600
|
-
[
|
|
2601
|
-
"d",
|
|
2602
|
-
"debug",
|
|
2603
|
-
"start the tester in debug mode."
|
|
2803
|
+
"e",
|
|
2804
|
+
"eject",
|
|
2805
|
+
"after export, remove the components from the workspace and install them as packages"
|
|
2604
2806
|
],
|
|
2605
2807
|
[
|
|
2606
2808
|
"a",
|
|
2607
2809
|
"all",
|
|
2608
|
-
"
|
|
2810
|
+
"export all components, including non-staged (useful when components in the remote scope are corrupted or missing)"
|
|
2609
2811
|
],
|
|
2610
2812
|
[
|
|
2611
|
-
"
|
|
2612
|
-
"
|
|
2613
|
-
"
|
|
2813
|
+
"",
|
|
2814
|
+
"all-versions",
|
|
2815
|
+
"export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing)"
|
|
2614
2816
|
],
|
|
2615
2817
|
[
|
|
2616
2818
|
"",
|
|
2617
|
-
"
|
|
2618
|
-
"
|
|
2819
|
+
"origin-directly",
|
|
2820
|
+
"avoid export to the central hub, instead, export directly to the original scopes. not recommended!"
|
|
2619
2821
|
],
|
|
2620
2822
|
[
|
|
2621
2823
|
"",
|
|
2622
|
-
"
|
|
2623
|
-
"
|
|
2824
|
+
"resume <string>",
|
|
2825
|
+
"in case the previous export failed and suggested to resume with an export-id, enter the id"
|
|
2624
2826
|
],
|
|
2625
2827
|
[
|
|
2626
|
-
"
|
|
2627
|
-
"
|
|
2628
|
-
"
|
|
2828
|
+
"",
|
|
2829
|
+
"head-only",
|
|
2830
|
+
"in case previous export failed and locally it shows exported and only one snap/tag was created, try using this flag"
|
|
2629
2831
|
],
|
|
2630
2832
|
[
|
|
2631
2833
|
"",
|
|
2632
|
-
"
|
|
2633
|
-
"
|
|
2834
|
+
"ignore-missing-artifacts",
|
|
2835
|
+
"don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote"
|
|
2634
2836
|
],
|
|
2635
2837
|
[
|
|
2636
|
-
"
|
|
2637
|
-
"scope
|
|
2638
|
-
"
|
|
2838
|
+
"",
|
|
2839
|
+
"fork-lane-new-scope",
|
|
2840
|
+
"allow exporting a forked lane into a different scope than the original scope"
|
|
2841
|
+
],
|
|
2842
|
+
[
|
|
2843
|
+
"",
|
|
2844
|
+
"open-browser",
|
|
2845
|
+
"open a browser once the export is completed in the cloud job url"
|
|
2846
|
+
],
|
|
2847
|
+
[
|
|
2848
|
+
"",
|
|
2849
|
+
"verbose",
|
|
2850
|
+
"per exported component, show the versions being exported"
|
|
2851
|
+
],
|
|
2852
|
+
[
|
|
2853
|
+
"j",
|
|
2854
|
+
"json",
|
|
2855
|
+
"show output in json format"
|
|
2639
2856
|
]
|
|
2640
2857
|
],
|
|
2641
|
-
"description": "
|
|
2642
|
-
"extendedDescription": "",
|
|
2643
|
-
"group": "
|
|
2858
|
+
"description": "export components from the workspace to remote scopes",
|
|
2859
|
+
"extendedDescription": "bit export => export all staged snaps/tags of components to their remote scope. if checked out to a lane, export the lane as well\n `bit export [pattern...]` => export components included by the pattern to their remote scope (we recommend not using a pattern in\n most scenarios so that all changes are exported simultaneously)\n you can use a pattern for multiple ids, such as bit export \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
|
|
2860
|
+
"group": "collaborate",
|
|
2644
2861
|
"private": false,
|
|
2862
|
+
"remoteOp": true,
|
|
2645
2863
|
"arguments": [
|
|
2646
2864
|
{
|
|
2647
|
-
"name": "component-
|
|
2648
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2865
|
+
"name": "component-patterns...",
|
|
2866
|
+
"description": "(not recommended) component name, component id, or component pattern. 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."
|
|
2649
2867
|
}
|
|
2650
2868
|
]
|
|
2651
2869
|
},
|
|
2652
2870
|
{
|
|
2653
|
-
"name": "
|
|
2871
|
+
"name": "insights [names...]",
|
|
2654
2872
|
"alias": "",
|
|
2655
2873
|
"options": [
|
|
2656
2874
|
[
|
|
2657
|
-
"
|
|
2658
|
-
"
|
|
2659
|
-
"
|
|
2875
|
+
"l",
|
|
2876
|
+
"list",
|
|
2877
|
+
"list all insights"
|
|
2660
2878
|
],
|
|
2661
2879
|
[
|
|
2662
|
-
"
|
|
2663
|
-
"
|
|
2664
|
-
"
|
|
2880
|
+
"j",
|
|
2881
|
+
"json",
|
|
2882
|
+
"return the insights in json format"
|
|
2883
|
+
],
|
|
2884
|
+
[
|
|
2885
|
+
"",
|
|
2886
|
+
"include-deps",
|
|
2887
|
+
"include component dependencies that are not in this workspace"
|
|
2665
2888
|
]
|
|
2666
2889
|
],
|
|
2667
|
-
"description": "
|
|
2890
|
+
"description": "Insights on component graph",
|
|
2668
2891
|
"extendedDescription": "",
|
|
2669
2892
|
"group": "development",
|
|
2670
|
-
"private":
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
"
|
|
2678
|
-
"
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
"
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
"
|
|
2688
|
-
"
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
"
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2893
|
+
"private": true
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
"name": "tag [component-patterns...]",
|
|
2897
|
+
"alias": "t",
|
|
2898
|
+
"options": [
|
|
2899
|
+
[
|
|
2900
|
+
"m",
|
|
2901
|
+
"message <message>",
|
|
2902
|
+
"a log message describing latest changes"
|
|
2903
|
+
],
|
|
2904
|
+
[
|
|
2905
|
+
"u",
|
|
2906
|
+
"unmodified",
|
|
2907
|
+
"include unmodified components (by default, only new and modified components are tagged)"
|
|
2908
|
+
],
|
|
2909
|
+
[
|
|
2910
|
+
"",
|
|
2911
|
+
"editor [editor]",
|
|
2912
|
+
"open an editor to write a tag message for each component. optionally, specify the editor-name (defaults to vim)."
|
|
2913
|
+
],
|
|
2914
|
+
[
|
|
2915
|
+
"v",
|
|
2916
|
+
"ver <version>",
|
|
2917
|
+
"tag with the given version"
|
|
2918
|
+
],
|
|
2919
|
+
[
|
|
2920
|
+
"l",
|
|
2921
|
+
"increment <level>",
|
|
2922
|
+
"options are: [major, premajor, minor, preminor, patch, prepatch, prerelease], default to patch"
|
|
2923
|
+
],
|
|
2924
|
+
[
|
|
2925
|
+
"",
|
|
2926
|
+
"prerelease-id <id>",
|
|
2927
|
+
"prerelease identifier (e.g. \"dev\" to get \"1.0.0-dev.1\")"
|
|
2928
|
+
],
|
|
2929
|
+
[
|
|
2930
|
+
"p",
|
|
2931
|
+
"patch",
|
|
2932
|
+
"syntactic sugar for \"--increment patch\""
|
|
2933
|
+
],
|
|
2934
|
+
[
|
|
2935
|
+
"",
|
|
2936
|
+
"minor",
|
|
2937
|
+
"syntactic sugar for \"--increment minor\""
|
|
2938
|
+
],
|
|
2939
|
+
[
|
|
2940
|
+
"",
|
|
2941
|
+
"major",
|
|
2942
|
+
"syntactic sugar for \"--increment major\""
|
|
2943
|
+
],
|
|
2944
|
+
[
|
|
2945
|
+
"",
|
|
2946
|
+
"pre-release [identifier]",
|
|
2947
|
+
"syntactic sugar for \"--increment prerelease\" and `--prerelease-id <identifier>`"
|
|
2948
|
+
],
|
|
2949
|
+
[
|
|
2950
|
+
"",
|
|
2951
|
+
"snapped",
|
|
2952
|
+
"tag only components whose head is a snap (not a tag)"
|
|
2953
|
+
],
|
|
2954
|
+
[
|
|
2955
|
+
"",
|
|
2956
|
+
"unmerged",
|
|
2957
|
+
"complete a merge process by tagging the unmerged components"
|
|
2958
|
+
],
|
|
2959
|
+
[
|
|
2960
|
+
"",
|
|
2961
|
+
"skip-tests",
|
|
2962
|
+
"skip running component tests during tag process"
|
|
2963
|
+
],
|
|
2964
|
+
[
|
|
2965
|
+
"",
|
|
2966
|
+
"skip-tasks <string>",
|
|
2967
|
+
"skip the given tasks. for multiple tasks, separate by a comma and wrap with quotes.\nspecify the task-name (e.g. \"TypescriptCompiler\") or the task-aspect-id (e.g. teambit.compilation/compiler)"
|
|
2968
|
+
],
|
|
2969
|
+
[
|
|
2970
|
+
"",
|
|
2971
|
+
"skip-auto-tag",
|
|
2972
|
+
"skip auto tagging dependents"
|
|
2973
|
+
],
|
|
2974
|
+
[
|
|
2975
|
+
"",
|
|
2976
|
+
"soft",
|
|
2977
|
+
"do not persist. only keep note of the changes to be made"
|
|
2978
|
+
],
|
|
2979
|
+
[
|
|
2980
|
+
"",
|
|
2981
|
+
"persist [skip-build]",
|
|
2982
|
+
"persist the changes generated by --soft tag. by default, run the build pipeline, unless \"skip-build\" is provided"
|
|
2983
|
+
],
|
|
2984
|
+
[
|
|
2985
|
+
"",
|
|
2986
|
+
"disable-tag-pipeline",
|
|
2987
|
+
"skip the tag pipeline to avoid publishing the components"
|
|
2988
|
+
],
|
|
2989
|
+
[
|
|
2990
|
+
"",
|
|
2991
|
+
"ignore-build-errors",
|
|
2992
|
+
"proceed to tag pipeline even when build pipeline fails"
|
|
2993
|
+
],
|
|
2994
|
+
[
|
|
2995
|
+
"",
|
|
2996
|
+
"rebuild-deps-graph",
|
|
2997
|
+
"do not reuse the saved dependencies graph, instead build it from scratch"
|
|
2998
|
+
],
|
|
2999
|
+
[
|
|
3000
|
+
"",
|
|
3001
|
+
"increment-by <number>",
|
|
3002
|
+
"(default to 1) increment semver flag (patch/minor/major) by. e.g. incrementing patch by 2: 0.0.1 -> 0.0.3."
|
|
3003
|
+
],
|
|
3004
|
+
[
|
|
3005
|
+
"i",
|
|
3006
|
+
"ignore-issues <issues>",
|
|
3007
|
+
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingManuallyConfiguredPackages, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies, DuplicateComponentAndPackage, MergeConfigHasConflict, NonLoadedEnv, ExternalEnvWithoutVersion, RemovedDependencies, RemovedEnv, DeprecatedDependencies, SelfReference, ImportFromDirectory]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\"."
|
|
3008
|
+
],
|
|
3009
|
+
[
|
|
3010
|
+
"I",
|
|
3011
|
+
"ignore-newest-version",
|
|
3012
|
+
"allow tagging even when the component has newer versions e.g. for hotfixes."
|
|
3013
|
+
],
|
|
3014
|
+
[
|
|
3015
|
+
"",
|
|
3016
|
+
"fail-fast",
|
|
3017
|
+
"stop pipeline execution on the first failed task (by default a task is skipped only when its dependency failed)"
|
|
3018
|
+
],
|
|
3019
|
+
[
|
|
3020
|
+
"b",
|
|
3021
|
+
"build",
|
|
3022
|
+
"locally run the build pipeline (i.e. not via rippleCI) and complete the tag"
|
|
3023
|
+
],
|
|
3024
|
+
[
|
|
3025
|
+
"",
|
|
3026
|
+
"detach-head",
|
|
3027
|
+
"UNSUPPORTED YET. in case a component is checked out to an older version, tag it without changing the head"
|
|
3028
|
+
]
|
|
3029
|
+
],
|
|
3030
|
+
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
3031
|
+
"extendedDescription": "if no patterns are provided, it will tag all new and modified components.\nif patterns are entered, you can specify a version per pattern using \"@\" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major",
|
|
3032
|
+
"group": "development",
|
|
3033
|
+
"private": false,
|
|
3034
|
+
"remoteOp": true,
|
|
3035
|
+
"arguments": [
|
|
2698
3036
|
{
|
|
2699
|
-
"
|
|
2700
|
-
"description": "
|
|
2701
|
-
}
|
|
3037
|
+
"name": "component-patterns...",
|
|
3038
|
+
"description": "component name, component id, or component pattern. 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."
|
|
3039
|
+
}
|
|
3040
|
+
],
|
|
3041
|
+
"examples": [
|
|
2702
3042
|
{
|
|
2703
|
-
"cmd": "
|
|
2704
|
-
"description": "
|
|
3043
|
+
"cmd": "tag --ver 1.0.0",
|
|
3044
|
+
"description": "tag all components to version 1.0.0"
|
|
2705
3045
|
}
|
|
2706
3046
|
]
|
|
2707
3047
|
},
|
|
2708
3048
|
{
|
|
2709
|
-
"name": "
|
|
2710
|
-
"alias": "
|
|
2711
|
-
"options": [
|
|
2712
|
-
|
|
3049
|
+
"name": "snap [component-pattern]",
|
|
3050
|
+
"alias": "",
|
|
3051
|
+
"options": [
|
|
3052
|
+
[
|
|
3053
|
+
"m",
|
|
3054
|
+
"message <message>",
|
|
3055
|
+
"snap message describing the latest changes - will appear in component history log"
|
|
3056
|
+
],
|
|
3057
|
+
[
|
|
3058
|
+
"u",
|
|
3059
|
+
"unmodified",
|
|
3060
|
+
"include unmodified components (by default, only new and modified components are snapped)"
|
|
3061
|
+
],
|
|
3062
|
+
[
|
|
3063
|
+
"",
|
|
3064
|
+
"unmerged",
|
|
3065
|
+
"complete a merge process by snapping the unmerged components"
|
|
3066
|
+
],
|
|
3067
|
+
[
|
|
3068
|
+
"b",
|
|
3069
|
+
"build",
|
|
3070
|
+
"locally run the build pipeline (i.e. not via rippleCI) and complete the snap"
|
|
3071
|
+
],
|
|
3072
|
+
[
|
|
3073
|
+
"",
|
|
3074
|
+
"editor [editor]",
|
|
3075
|
+
"open an editor to write a snap message per component. optionally specify the editor-name (defaults to vim)."
|
|
3076
|
+
],
|
|
3077
|
+
[
|
|
3078
|
+
"",
|
|
3079
|
+
"skip-tests",
|
|
3080
|
+
"skip running component tests during snap process"
|
|
3081
|
+
],
|
|
3082
|
+
[
|
|
3083
|
+
"",
|
|
3084
|
+
"skip-tasks <string>",
|
|
3085
|
+
"skip the given tasks. for multiple tasks, separate by a comma and wrap with quotes.\nspecify the task-name (e.g. \"TypescriptCompiler\") or the task-aspect-id (e.g. teambit.compilation/compiler)"
|
|
3086
|
+
],
|
|
3087
|
+
[
|
|
3088
|
+
"",
|
|
3089
|
+
"skip-auto-snap",
|
|
3090
|
+
"skip auto snapping dependents"
|
|
3091
|
+
],
|
|
3092
|
+
[
|
|
3093
|
+
"",
|
|
3094
|
+
"disable-snap-pipeline",
|
|
3095
|
+
"skip the snap pipeline. this will for instance skip packing and publishing component version for install, and app deployment"
|
|
3096
|
+
],
|
|
3097
|
+
[
|
|
3098
|
+
"",
|
|
3099
|
+
"ignore-build-errors",
|
|
3100
|
+
"proceed to snap pipeline even when build pipeline fails"
|
|
3101
|
+
],
|
|
3102
|
+
[
|
|
3103
|
+
"",
|
|
3104
|
+
"rebuild-deps-graph",
|
|
3105
|
+
"do not reuse the saved dependencies graph, instead build it from scratch"
|
|
3106
|
+
],
|
|
3107
|
+
[
|
|
3108
|
+
"i",
|
|
3109
|
+
"ignore-issues <issues>",
|
|
3110
|
+
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingManuallyConfiguredPackages, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies, DuplicateComponentAndPackage, MergeConfigHasConflict, NonLoadedEnv, ExternalEnvWithoutVersion, RemovedDependencies, RemovedEnv, DeprecatedDependencies, SelfReference, ImportFromDirectory]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\"."
|
|
3111
|
+
],
|
|
3112
|
+
[
|
|
3113
|
+
"",
|
|
3114
|
+
"fail-fast",
|
|
3115
|
+
"stop pipeline execution on the first failed task (by default a task is skipped only when its dependency failed)"
|
|
3116
|
+
],
|
|
3117
|
+
[
|
|
3118
|
+
"",
|
|
3119
|
+
"detach-head",
|
|
3120
|
+
"UNSUPPORTED YET. in case a component is checked out to an older version, snap it without changing the head"
|
|
3121
|
+
]
|
|
3122
|
+
],
|
|
3123
|
+
"description": "create an immutable and exportable component snapshot (non-release version)",
|
|
2713
3124
|
"extendedDescription": "",
|
|
2714
|
-
"group": "
|
|
3125
|
+
"group": "development",
|
|
2715
3126
|
"private": false,
|
|
2716
|
-
"
|
|
3127
|
+
"arguments": [
|
|
2717
3128
|
{
|
|
2718
|
-
"name": "
|
|
2719
|
-
"
|
|
2720
|
-
"options": [
|
|
2721
|
-
[
|
|
2722
|
-
"",
|
|
2723
|
-
"scope",
|
|
2724
|
-
"get the data from the scope instead of the workspace"
|
|
2725
|
-
],
|
|
2726
|
-
[
|
|
2727
|
-
"t",
|
|
2728
|
-
"tree",
|
|
2729
|
-
"render dependencies as a tree, similar to \"npm ls\""
|
|
2730
|
-
]
|
|
2731
|
-
],
|
|
2732
|
-
"description": "show direct and indirect dependencies of the given component",
|
|
2733
|
-
"extendedDescription": "",
|
|
2734
|
-
"group": "info",
|
|
2735
|
-
"private": false,
|
|
2736
|
-
"arguments": [
|
|
2737
|
-
{
|
|
2738
|
-
"name": "component-name",
|
|
2739
|
-
"description": "component name or component id"
|
|
2740
|
-
}
|
|
2741
|
-
]
|
|
2742
|
-
},
|
|
2743
|
-
{
|
|
2744
|
-
"name": "remove <component-pattern> <package...>",
|
|
2745
|
-
"alias": "",
|
|
2746
|
-
"options": [
|
|
2747
|
-
[
|
|
2748
|
-
"d",
|
|
2749
|
-
"dev",
|
|
2750
|
-
"remove from devDependencies"
|
|
2751
|
-
],
|
|
2752
|
-
[
|
|
2753
|
-
"p",
|
|
2754
|
-
"peer",
|
|
2755
|
-
"remove from peerDependencies"
|
|
2756
|
-
]
|
|
2757
|
-
],
|
|
2758
|
-
"description": "remove a dependency from one or more components",
|
|
2759
|
-
"extendedDescription": "this command removes the dependency whether it was set by 'bit deps set'/variants or by auto-detection.\nif the dependency was auto-detected, it will be marked with a minus sign in the .bitmap file.\notherwise, the config is written to .bitmap without the dependency.\nsee also 'bit deps unset'",
|
|
2760
|
-
"group": "info",
|
|
2761
|
-
"private": false,
|
|
2762
|
-
"arguments": [
|
|
2763
|
-
{
|
|
2764
|
-
"name": "component-pattern",
|
|
2765
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2766
|
-
},
|
|
2767
|
-
{
|
|
2768
|
-
"name": "package...",
|
|
2769
|
-
"description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version"
|
|
2770
|
-
}
|
|
2771
|
-
]
|
|
2772
|
-
},
|
|
2773
|
-
{
|
|
2774
|
-
"name": "unset <component-pattern> <package...>",
|
|
2775
|
-
"alias": "",
|
|
2776
|
-
"options": [
|
|
2777
|
-
[
|
|
2778
|
-
"d",
|
|
2779
|
-
"dev",
|
|
2780
|
-
"unset from devDependencies"
|
|
2781
|
-
],
|
|
2782
|
-
[
|
|
2783
|
-
"p",
|
|
2784
|
-
"peer",
|
|
2785
|
-
"unset from peerDependencies"
|
|
2786
|
-
]
|
|
2787
|
-
],
|
|
2788
|
-
"description": "unset a dependency to component(s) that was set via config (e.g. \"bit deps set\" or variants)",
|
|
2789
|
-
"extendedDescription": "this command removes the dependency only when it was set by config not if it was auto detected.\nin the .bitmap file, the config is written without the dependency.\nsee also \"bit deps remove\"",
|
|
2790
|
-
"group": "info",
|
|
2791
|
-
"private": false,
|
|
2792
|
-
"arguments": [
|
|
2793
|
-
{
|
|
2794
|
-
"name": "component-pattern",
|
|
2795
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2796
|
-
},
|
|
2797
|
-
{
|
|
2798
|
-
"name": "package...",
|
|
2799
|
-
"description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will remove all lodash instances of any version"
|
|
2800
|
-
}
|
|
2801
|
-
]
|
|
2802
|
-
},
|
|
2803
|
-
{
|
|
2804
|
-
"name": "debug <component-name>",
|
|
2805
|
-
"alias": "",
|
|
2806
|
-
"options": [],
|
|
2807
|
-
"description": "show the immediate dependencies and how their versions were determined",
|
|
2808
|
-
"extendedDescription": "",
|
|
2809
|
-
"group": "info",
|
|
2810
|
-
"private": false,
|
|
2811
|
-
"arguments": [
|
|
2812
|
-
{
|
|
2813
|
-
"name": "component-name",
|
|
2814
|
-
"description": "component name or component id"
|
|
2815
|
-
}
|
|
2816
|
-
]
|
|
2817
|
-
},
|
|
2818
|
-
{
|
|
2819
|
-
"name": "set <component-pattern> <package...>",
|
|
2820
|
-
"alias": "",
|
|
2821
|
-
"options": [
|
|
2822
|
-
[
|
|
2823
|
-
"d",
|
|
2824
|
-
"dev",
|
|
2825
|
-
"add to the devDependencies"
|
|
2826
|
-
],
|
|
2827
|
-
[
|
|
2828
|
-
"o",
|
|
2829
|
-
"optional",
|
|
2830
|
-
"add to the optionalDependencies"
|
|
2831
|
-
],
|
|
2832
|
-
[
|
|
2833
|
-
"p",
|
|
2834
|
-
"peer",
|
|
2835
|
-
"add to the peerDependencies"
|
|
2836
|
-
]
|
|
2837
|
-
],
|
|
2838
|
-
"description": "set a dependency to component(s)",
|
|
2839
|
-
"extendedDescription": "",
|
|
2840
|
-
"group": "info",
|
|
2841
|
-
"private": false,
|
|
2842
|
-
"arguments": [
|
|
2843
|
-
{
|
|
2844
|
-
"name": "component-pattern",
|
|
2845
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2846
|
-
},
|
|
2847
|
-
{
|
|
2848
|
-
"name": "package...",
|
|
2849
|
-
"description": "package name with or without a version, e.g. \"lodash@1.0.0\" or just \"lodash\" which will be resolved to the latest"
|
|
2850
|
-
}
|
|
2851
|
-
]
|
|
2852
|
-
},
|
|
2853
|
-
{
|
|
2854
|
-
"name": "reset <component-pattern>",
|
|
2855
|
-
"alias": "",
|
|
2856
|
-
"options": [],
|
|
2857
|
-
"description": "reset dependencies to the default values (revert any previously \"bit deps set\")",
|
|
2858
|
-
"extendedDescription": "",
|
|
2859
|
-
"group": "info",
|
|
2860
|
-
"private": false,
|
|
2861
|
-
"arguments": [
|
|
2862
|
-
{
|
|
2863
|
-
"name": "component-pattern",
|
|
2864
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2865
|
-
}
|
|
2866
|
-
]
|
|
2867
|
-
},
|
|
2868
|
-
{
|
|
2869
|
-
"name": "eject <component-pattern>",
|
|
2870
|
-
"alias": "",
|
|
2871
|
-
"options": [],
|
|
2872
|
-
"description": "write dependencies that were previously set via \"bit deps set\" into .bitmap",
|
|
2873
|
-
"extendedDescription": "",
|
|
2874
|
-
"group": "info",
|
|
2875
|
-
"private": false,
|
|
2876
|
-
"arguments": [
|
|
2877
|
-
{
|
|
2878
|
-
"name": "component-pattern",
|
|
2879
|
-
"description": "component name, component id, or component pattern. 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."
|
|
2880
|
-
}
|
|
2881
|
-
]
|
|
2882
|
-
},
|
|
2883
|
-
{
|
|
2884
|
-
"name": "blame <component-name> <dependency-name>",
|
|
2885
|
-
"alias": "",
|
|
2886
|
-
"options": [],
|
|
2887
|
-
"description": "find out which snap/tag changed a dependency version",
|
|
2888
|
-
"extendedDescription": "",
|
|
2889
|
-
"group": "info",
|
|
2890
|
-
"private": false,
|
|
2891
|
-
"arguments": [
|
|
2892
|
-
{
|
|
2893
|
-
"name": "dependency-name",
|
|
2894
|
-
"description": "package-name. for components, you can use either component-id or package-name"
|
|
2895
|
-
}
|
|
2896
|
-
]
|
|
2897
|
-
},
|
|
2898
|
-
{
|
|
2899
|
-
"name": "usage <dependency-name>",
|
|
2900
|
-
"alias": "",
|
|
2901
|
-
"options": [
|
|
2902
|
-
[
|
|
2903
|
-
"",
|
|
2904
|
-
"depth <number>",
|
|
2905
|
-
"max display depth of the dependency graph"
|
|
2906
|
-
]
|
|
2907
|
-
],
|
|
2908
|
-
"description": "find components that use the specified dependency",
|
|
2909
|
-
"extendedDescription": "",
|
|
2910
|
-
"group": "info",
|
|
2911
|
-
"private": false,
|
|
2912
|
-
"arguments": [
|
|
2913
|
-
{
|
|
2914
|
-
"name": "dependency-name",
|
|
2915
|
-
"description": "package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version"
|
|
2916
|
-
}
|
|
2917
|
-
]
|
|
3129
|
+
"name": "component-pattern",
|
|
3130
|
+
"description": "component name, component id, or component pattern. 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, only new and modified components are snapped (add --unmodified to snap all components in the workspace)."
|
|
2918
3131
|
}
|
|
2919
3132
|
]
|
|
2920
3133
|
},
|
|
2921
3134
|
{
|
|
2922
|
-
"name": "
|
|
3135
|
+
"name": "reset [component-pattern]",
|
|
2923
3136
|
"alias": "",
|
|
2924
3137
|
"options": [
|
|
3138
|
+
[
|
|
3139
|
+
"a",
|
|
3140
|
+
"all",
|
|
3141
|
+
"revert all unexported tags/snaps for all components"
|
|
3142
|
+
],
|
|
2925
3143
|
[
|
|
2926
3144
|
"",
|
|
2927
|
-
"
|
|
2928
|
-
"
|
|
3145
|
+
"head",
|
|
3146
|
+
"revert the head tag/snap only (by default, all local tags/snaps are reverted)"
|
|
3147
|
+
],
|
|
3148
|
+
[
|
|
3149
|
+
"",
|
|
3150
|
+
"soft",
|
|
3151
|
+
"revert only soft-tags (components tagged with --soft flag)"
|
|
3152
|
+
],
|
|
3153
|
+
[
|
|
3154
|
+
"f",
|
|
3155
|
+
"force",
|
|
3156
|
+
"revert the tag even if it's used as a dependency. WARNING: components that depend on this tag will be corrupted"
|
|
3157
|
+
],
|
|
3158
|
+
[
|
|
3159
|
+
"",
|
|
3160
|
+
"never-exported",
|
|
3161
|
+
"reset only components that were never exported"
|
|
2929
3162
|
]
|
|
2930
3163
|
],
|
|
2931
|
-
"description": "
|
|
2932
|
-
"extendedDescription": "",
|
|
2933
|
-
"group": "
|
|
2934
|
-
"private": false,
|
|
2935
|
-
"arguments": [
|
|
2936
|
-
{
|
|
2937
|
-
"name": "dependency-name",
|
|
2938
|
-
"description": "package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version"
|
|
2939
|
-
}
|
|
2940
|
-
]
|
|
2941
|
-
},
|
|
2942
|
-
{
|
|
2943
|
-
"name": "set-peer <component-id> <range>",
|
|
2944
|
-
"alias": "",
|
|
2945
|
-
"options": [],
|
|
2946
|
-
"description": "set a component as always peer",
|
|
2947
|
-
"extendedDescription": "",
|
|
2948
|
-
"group": "info",
|
|
3164
|
+
"description": "revert tagged or snapped versions for component(s)",
|
|
3165
|
+
"extendedDescription": "https://bit.dev/components/tags#undoing-a-tag",
|
|
3166
|
+
"group": "development",
|
|
2949
3167
|
"private": false,
|
|
2950
3168
|
"arguments": [
|
|
2951
3169
|
{
|
|
2952
|
-
"name": "component-
|
|
2953
|
-
"description": "
|
|
3170
|
+
"name": "component-pattern",
|
|
3171
|
+
"description": "component name, component id, or component pattern. 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."
|
|
2954
3172
|
},
|
|
2955
3173
|
{
|
|
2956
|
-
"name": "
|
|
2957
|
-
"description": "the
|
|
3174
|
+
"name": "component-version",
|
|
3175
|
+
"description": "the version to untag (semver for tags. hash for snaps)"
|
|
2958
3176
|
}
|
|
2959
3177
|
]
|
|
2960
3178
|
},
|
|
2961
3179
|
{
|
|
2962
|
-
"name": "
|
|
2963
|
-
"alias": "",
|
|
2964
|
-
"options": [],
|
|
2965
|
-
"description": "unset a component as always peer",
|
|
2966
|
-
"extendedDescription": "",
|
|
2967
|
-
"group": "info",
|
|
2968
|
-
"private": false,
|
|
2969
|
-
"arguments": [
|
|
2970
|
-
{
|
|
2971
|
-
"name": "component-id",
|
|
2972
|
-
"description": "the component to unset as always peer"
|
|
2973
|
-
}
|
|
2974
|
-
]
|
|
2975
|
-
},
|
|
2976
|
-
{
|
|
2977
|
-
"name": "dependents <component-name>",
|
|
3180
|
+
"name": "_tag <data>",
|
|
2978
3181
|
"alias": "",
|
|
2979
3182
|
"options": [
|
|
2980
3183
|
[
|
|
2981
|
-
"
|
|
2982
|
-
"
|
|
2983
|
-
"
|
|
2984
|
-
]
|
|
2985
|
-
],
|
|
2986
|
-
"description": "show dependents of the given component",
|
|
2987
|
-
"extendedDescription": "",
|
|
2988
|
-
"group": "info",
|
|
2989
|
-
"private": false,
|
|
2990
|
-
"arguments": [
|
|
2991
|
-
{
|
|
2992
|
-
"name": "component-name",
|
|
2993
|
-
"description": "component name or component id"
|
|
2994
|
-
}
|
|
2995
|
-
]
|
|
2996
|
-
},
|
|
2997
|
-
{
|
|
2998
|
-
"name": "insights [names...]",
|
|
2999
|
-
"alias": "",
|
|
3000
|
-
"options": [
|
|
3184
|
+
"",
|
|
3185
|
+
"push",
|
|
3186
|
+
"export the updated objects to the original scopes once done"
|
|
3187
|
+
],
|
|
3001
3188
|
[
|
|
3002
|
-
"
|
|
3003
|
-
"
|
|
3004
|
-
"
|
|
3189
|
+
"",
|
|
3190
|
+
"rebuild-artifacts",
|
|
3191
|
+
"run the full build pipeline. do not use the saved artifacts from the last snap"
|
|
3005
3192
|
],
|
|
3006
3193
|
[
|
|
3007
|
-
"
|
|
3008
|
-
"json",
|
|
3009
|
-
"
|
|
3194
|
+
"",
|
|
3195
|
+
"ignore-last-pkg-json",
|
|
3196
|
+
"ignore the package.json created by the last snap"
|
|
3010
3197
|
],
|
|
3011
3198
|
[
|
|
3012
3199
|
"",
|
|
3013
|
-
"
|
|
3014
|
-
"
|
|
3015
|
-
]
|
|
3016
|
-
],
|
|
3017
|
-
"description": "Insights on component graph",
|
|
3018
|
-
"extendedDescription": "",
|
|
3019
|
-
"group": "development",
|
|
3020
|
-
"private": true
|
|
3021
|
-
},
|
|
3022
|
-
{
|
|
3023
|
-
"name": "tag [component-patterns...]",
|
|
3024
|
-
"alias": "t",
|
|
3025
|
-
"options": [
|
|
3200
|
+
"override-head",
|
|
3201
|
+
"opposite of detach-head. in case a component is checked out to an older version, change head to the newly created version"
|
|
3202
|
+
],
|
|
3026
3203
|
[
|
|
3027
3204
|
"m",
|
|
3028
3205
|
"message <message>",
|
|
3029
3206
|
"a log message describing latest changes"
|
|
3030
3207
|
],
|
|
3031
|
-
[
|
|
3032
|
-
"u",
|
|
3033
|
-
"unmodified",
|
|
3034
|
-
"include unmodified components (by default, only new and modified components are tagged)"
|
|
3035
|
-
],
|
|
3036
|
-
[
|
|
3037
|
-
"",
|
|
3038
|
-
"editor [editor]",
|
|
3039
|
-
"open an editor to write a tag message for each component. optionally, specify the editor-name (defaults to vim)."
|
|
3040
|
-
],
|
|
3041
3208
|
[
|
|
3042
3209
|
"v",
|
|
3043
3210
|
"ver <version>",
|
|
@@ -3073,16 +3240,6 @@
|
|
|
3073
3240
|
"pre-release [identifier]",
|
|
3074
3241
|
"syntactic sugar for \"--increment prerelease\" and `--prerelease-id <identifier>`"
|
|
3075
3242
|
],
|
|
3076
|
-
[
|
|
3077
|
-
"",
|
|
3078
|
-
"snapped",
|
|
3079
|
-
"tag only components whose head is a snap (not a tag)"
|
|
3080
|
-
],
|
|
3081
|
-
[
|
|
3082
|
-
"",
|
|
3083
|
-
"unmerged",
|
|
3084
|
-
"complete a merge process by tagging the unmerged components"
|
|
3085
|
-
],
|
|
3086
3243
|
[
|
|
3087
3244
|
"",
|
|
3088
3245
|
"skip-tests",
|
|
@@ -3098,16 +3255,6 @@
|
|
|
3098
3255
|
"skip-auto-tag",
|
|
3099
3256
|
"skip auto tagging dependents"
|
|
3100
3257
|
],
|
|
3101
|
-
[
|
|
3102
|
-
"",
|
|
3103
|
-
"soft",
|
|
3104
|
-
"do not persist. only keep note of the changes to be made"
|
|
3105
|
-
],
|
|
3106
|
-
[
|
|
3107
|
-
"",
|
|
3108
|
-
"persist [skip-build]",
|
|
3109
|
-
"persist the changes generated by --soft tag. by default, run the build pipeline, unless \"skip-build\" is provided"
|
|
3110
|
-
],
|
|
3111
3258
|
[
|
|
3112
3259
|
"",
|
|
3113
3260
|
"disable-tag-pipeline",
|
|
@@ -3154,77 +3301,50 @@
|
|
|
3154
3301
|
"UNSUPPORTED YET. in case a component is checked out to an older version, tag it without changing the head"
|
|
3155
3302
|
]
|
|
3156
3303
|
],
|
|
3157
|
-
"description": "
|
|
3158
|
-
"extendedDescription": "
|
|
3304
|
+
"description": "tag components from a bare-scope by using build artifacts from previous snap and running the deploy-pipeline only",
|
|
3305
|
+
"extendedDescription": "this command should be running from a new bare scope, it first imports the components it needs and then processes the tag.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies?: string[]; // e.g. [teambit/compiler@1.0.0, teambit/tester^@1.0.0, teambit/linter~@0.0.1]\n versionToTag?: string; // specific version (e.g. '1.0.0') or semver (e.g. 'minor', 'patch')\n prereleaseId?: string; // applicable when versionToTag is a pre-release. (e.g. \"dev\", for 1.0.0-dev.1)\n message?: string; // tag-message.\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"dependencies\":[\"ci.remote/comp1@0.0.2\"]}]'\n",
|
|
3159
3306
|
"group": "development",
|
|
3160
|
-
"private":
|
|
3161
|
-
"remoteOp": true
|
|
3162
|
-
"arguments": [
|
|
3163
|
-
{
|
|
3164
|
-
"name": "component-patterns...",
|
|
3165
|
-
"description": "component name, component id, or component pattern. 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."
|
|
3166
|
-
}
|
|
3167
|
-
],
|
|
3168
|
-
"examples": [
|
|
3169
|
-
{
|
|
3170
|
-
"cmd": "tag --ver 1.0.0",
|
|
3171
|
-
"description": "tag all components to version 1.0.0"
|
|
3172
|
-
}
|
|
3173
|
-
]
|
|
3307
|
+
"private": true,
|
|
3308
|
+
"remoteOp": true
|
|
3174
3309
|
},
|
|
3175
3310
|
{
|
|
3176
|
-
"name": "
|
|
3311
|
+
"name": "_snap <data>",
|
|
3177
3312
|
"alias": "",
|
|
3178
3313
|
"options": [
|
|
3179
3314
|
[
|
|
3180
|
-
"
|
|
3181
|
-
"
|
|
3182
|
-
"
|
|
3315
|
+
"",
|
|
3316
|
+
"push",
|
|
3317
|
+
"export the updated objects to the original scopes once done"
|
|
3183
3318
|
],
|
|
3184
3319
|
[
|
|
3185
|
-
"
|
|
3186
|
-
"
|
|
3187
|
-
"
|
|
3320
|
+
"m",
|
|
3321
|
+
"message <message>",
|
|
3322
|
+
"log message describing the latest changes"
|
|
3188
3323
|
],
|
|
3189
3324
|
[
|
|
3190
3325
|
"",
|
|
3191
|
-
"
|
|
3192
|
-
"
|
|
3193
|
-
],
|
|
3194
|
-
[
|
|
3195
|
-
"b",
|
|
3196
|
-
"build",
|
|
3197
|
-
"locally run the build pipeline (i.e. not via rippleCI) and complete the snap"
|
|
3326
|
+
"lane <lane-id>",
|
|
3327
|
+
"fetch the components from the given lane"
|
|
3198
3328
|
],
|
|
3199
3329
|
[
|
|
3200
3330
|
"",
|
|
3201
|
-
"
|
|
3202
|
-
"
|
|
3331
|
+
"build",
|
|
3332
|
+
"run the build pipeline"
|
|
3203
3333
|
],
|
|
3204
3334
|
[
|
|
3205
3335
|
"",
|
|
3206
3336
|
"skip-tests",
|
|
3207
3337
|
"skip running component tests during snap process"
|
|
3208
3338
|
],
|
|
3209
|
-
[
|
|
3210
|
-
"",
|
|
3211
|
-
"skip-tasks <string>",
|
|
3212
|
-
"skip the given tasks. for multiple tasks, separate by a comma and wrap with quotes.\nspecify the task-name (e.g. \"TypescriptCompiler\") or the task-aspect-id (e.g. teambit.compilation/compiler)"
|
|
3213
|
-
],
|
|
3214
|
-
[
|
|
3215
|
-
"",
|
|
3216
|
-
"skip-auto-snap",
|
|
3217
|
-
"skip auto snapping dependents"
|
|
3218
|
-
],
|
|
3219
3339
|
[
|
|
3220
3340
|
"",
|
|
3221
3341
|
"disable-snap-pipeline",
|
|
3222
|
-
"skip the snap pipeline
|
|
3342
|
+
"skip the snap pipeline"
|
|
3223
3343
|
],
|
|
3224
3344
|
[
|
|
3225
3345
|
"",
|
|
3226
3346
|
"ignore-build-errors",
|
|
3227
|
-
"
|
|
3347
|
+
"run the snap pipeline although the build pipeline failed"
|
|
3228
3348
|
],
|
|
3229
3349
|
[
|
|
3230
3350
|
"",
|
|
@@ -3233,290 +3353,436 @@
|
|
|
3233
3353
|
],
|
|
3234
3354
|
[
|
|
3235
3355
|
"i",
|
|
3236
|
-
"ignore-issues
|
|
3356
|
+
"ignore-issues [issues]",
|
|
3237
3357
|
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingManuallyConfiguredPackages, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies, DuplicateComponentAndPackage, MergeConfigHasConflict, NonLoadedEnv, ExternalEnvWithoutVersion, RemovedDependencies, RemovedEnv, DeprecatedDependencies, SelfReference, ImportFromDirectory]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\"."
|
|
3238
3358
|
],
|
|
3239
3359
|
[
|
|
3240
3360
|
"",
|
|
3241
|
-
"
|
|
3242
|
-
"
|
|
3361
|
+
"tag",
|
|
3362
|
+
"make a tag instead of a snap"
|
|
3243
3363
|
],
|
|
3244
3364
|
[
|
|
3245
3365
|
"",
|
|
3246
|
-
"
|
|
3247
|
-
"
|
|
3366
|
+
"stream",
|
|
3367
|
+
"relevant for --json only. stream loader as json strings"
|
|
3368
|
+
],
|
|
3369
|
+
[
|
|
3370
|
+
"j",
|
|
3371
|
+
"json",
|
|
3372
|
+
"output as json format"
|
|
3373
|
+
],
|
|
3374
|
+
[
|
|
3375
|
+
"",
|
|
3376
|
+
"update-dependents",
|
|
3377
|
+
"when snapped on a lane, mark it as update-dependents so it will be skipped from the workspace"
|
|
3248
3378
|
]
|
|
3249
3379
|
],
|
|
3250
|
-
"description": "
|
|
3251
|
-
"extendedDescription": "",
|
|
3252
|
-
"group": "
|
|
3253
|
-
"private":
|
|
3254
|
-
"arguments": [
|
|
3255
|
-
{
|
|
3256
|
-
"name": "component-pattern",
|
|
3257
|
-
"description": "component name, component id, or component pattern. 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, only new and modified components are snapped (add --unmodified to snap all components in the workspace)."
|
|
3258
|
-
}
|
|
3259
|
-
]
|
|
3380
|
+
"description": "snap components from a bare-scope",
|
|
3381
|
+
"extendedDescription": "this command should be running from a new bare scope, it first imports the components it needs and then processes the snap.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies?: string[]; // dependencies include versions. for components use component-id. e.g. [teambit.compilation/compiler@1.0.0, lodash@4.17.21]\n aspects?: Record<string,any> // e.g. { \"teambit.react/react\": {}, \"teambit.envs/envs\": { \"env\": \"teambit.react/react\" } }\n message?: string; // tag-message.\n files?: Array<{path: string, content: string}>; // replace content of specified source-files. the content is base64 encoded.\n isNew?: boolean; // if it's new, it'll be generated from the given files. otherwise, it'll be fetched from the scope and updated.\n mainFile?: string; // relevant when isNew is true. default to \"index.ts\".\n newDependencies?: Array<{ // new dependencies (components and packages) to add.\n id: string; // component-id or package-name. e.g. \"teambit.react/react\" or \"lodash\".\n version?: string; // version of the package. e.g. \"2.0.3\". for packages, it is mandatory.\n isComponent?: boolean; // default true. if false, it's a package dependency\n type?: 'runtime' | 'dev' | 'peer'; // default \"runtime\".\n }>;\n removeDependencies?: string[]; // component-id (for components) or package-name (for packages) to remove from the dependencies.\n forkFrom?: string; // origin id to fork from. the componentId is the new id. (no need to populate isNew prop).\n version?: string; // relevant when passing \"--tag\". optionally, specify the semver to tag. default to \"patch\".\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"message\": \"first snap\"}]'\n",
|
|
3382
|
+
"group": "ungrouped",
|
|
3383
|
+
"private": true
|
|
3260
3384
|
},
|
|
3261
3385
|
{
|
|
3262
|
-
"name": "
|
|
3386
|
+
"name": "snap-distance <component-id> [source-snap] [target-snap]",
|
|
3263
3387
|
"alias": "",
|
|
3388
|
+
"options": [],
|
|
3389
|
+
"description": "show common-snap and distance between two given snaps or between local and remote snaps",
|
|
3390
|
+
"extendedDescription": "in case source and target snaps are not provided, the command will use the local and remote heads.\nby \"head\" we mean component-head if on main, or lane-head if on lane.\nif source and target snaps are provided, the command will use them to calculate the distance.",
|
|
3391
|
+
"group": "ungrouped",
|
|
3392
|
+
"private": true
|
|
3393
|
+
},
|
|
3394
|
+
{
|
|
3395
|
+
"name": "checkout <to> [component-pattern]",
|
|
3396
|
+
"alias": "U",
|
|
3264
3397
|
"options": [
|
|
3398
|
+
[
|
|
3399
|
+
"i",
|
|
3400
|
+
"interactive-merge",
|
|
3401
|
+
"when a component is modified and the merge process found conflicts, display options to resolve them"
|
|
3402
|
+
],
|
|
3403
|
+
[
|
|
3404
|
+
"r",
|
|
3405
|
+
"auto-merge-resolve <merge-strategy>",
|
|
3406
|
+
"in case of merge conflict, resolve according to the provided strategy: [ours, theirs, manual]"
|
|
3407
|
+
],
|
|
3408
|
+
[
|
|
3409
|
+
"",
|
|
3410
|
+
"manual",
|
|
3411
|
+
"same as \"--auto-merge-resolve manual\". in case of merge conflict, write the files with the conflict markers"
|
|
3412
|
+
],
|
|
3265
3413
|
[
|
|
3266
3414
|
"a",
|
|
3267
3415
|
"all",
|
|
3268
|
-
"
|
|
3416
|
+
"all components"
|
|
3269
3417
|
],
|
|
3270
3418
|
[
|
|
3271
|
-
"",
|
|
3272
|
-
"
|
|
3273
|
-
"
|
|
3419
|
+
"e",
|
|
3420
|
+
"workspace-only",
|
|
3421
|
+
"only relevant for 'bit checkout head' when on a lane. don't import components from the remote lane that are not already in the workspace"
|
|
3274
3422
|
],
|
|
3275
3423
|
[
|
|
3276
|
-
"",
|
|
3277
|
-
"
|
|
3278
|
-
"
|
|
3424
|
+
"v",
|
|
3425
|
+
"verbose",
|
|
3426
|
+
"showing verbose output for inspection"
|
|
3279
3427
|
],
|
|
3280
3428
|
[
|
|
3281
|
-
"
|
|
3282
|
-
"
|
|
3283
|
-
"
|
|
3429
|
+
"x",
|
|
3430
|
+
"skip-dependency-installation",
|
|
3431
|
+
"do not auto-install dependencies of the imported components"
|
|
3284
3432
|
],
|
|
3285
3433
|
[
|
|
3286
3434
|
"",
|
|
3287
|
-
"
|
|
3288
|
-
"
|
|
3435
|
+
"force-ours",
|
|
3436
|
+
"do not merge, preserve local files as is"
|
|
3437
|
+
],
|
|
3438
|
+
[
|
|
3439
|
+
"",
|
|
3440
|
+
"force-theirs",
|
|
3441
|
+
"do not merge, just overwrite with incoming files"
|
|
3289
3442
|
]
|
|
3290
3443
|
],
|
|
3291
|
-
"description": "
|
|
3292
|
-
"extendedDescription": "
|
|
3444
|
+
"description": "switch between component versions or remove local changes",
|
|
3445
|
+
"extendedDescription": "\n`bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version\n`bit checkout head [component-pattern]` => checkout to the last snap/tag (use --latest if you only want semver tags), omit [component-pattern] to checkout head for all\n`bit checkout head~x [component-pattern]` => go backward x generations from the head and checkout to that version\n`bit checkout latest [component-pattern]` => checkout to the latest satisfying semver tag, omit [component-pattern] to checkout latest for all\n`bit checkout reset [component-pattern]` => remove local modifications from the specified ids (or all components when --all is used). also, if a component dir is deleted from the filesystem, it'll be restored\nwhen on a lane, \"checkout head\" only checks out components on this lane. to update main components, run \"bit lane merge main\"",
|
|
3293
3446
|
"group": "development",
|
|
3294
3447
|
"private": false,
|
|
3295
3448
|
"arguments": [
|
|
3296
3449
|
{
|
|
3297
|
-
"name": "
|
|
3298
|
-
"description": "
|
|
3450
|
+
"name": "to",
|
|
3451
|
+
"description": "permitted values: [head, latest, reset, {specific-version}, {head~x}]. 'head' - last snap/tag. 'latest' - semver latest tag. 'reset' - removes local changes"
|
|
3299
3452
|
},
|
|
3300
3453
|
{
|
|
3301
|
-
"name": "component-
|
|
3302
|
-
"description": "the
|
|
3454
|
+
"name": "component-pattern",
|
|
3455
|
+
"description": "component name, component id, or component pattern. 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."
|
|
3303
3456
|
}
|
|
3304
3457
|
]
|
|
3305
3458
|
},
|
|
3306
3459
|
{
|
|
3307
|
-
"name": "
|
|
3460
|
+
"name": "revert <component-pattern> <to>",
|
|
3308
3461
|
"alias": "",
|
|
3309
3462
|
"options": [
|
|
3310
|
-
[
|
|
3311
|
-
"",
|
|
3312
|
-
"push",
|
|
3313
|
-
"export the updated objects to the original scopes once done"
|
|
3314
|
-
],
|
|
3315
|
-
[
|
|
3316
|
-
"",
|
|
3317
|
-
"rebuild-artifacts",
|
|
3318
|
-
"run the full build pipeline. do not use the saved artifacts from the last snap"
|
|
3319
|
-
],
|
|
3320
|
-
[
|
|
3321
|
-
"",
|
|
3322
|
-
"ignore-last-pkg-json",
|
|
3323
|
-
"ignore the package.json created by the last snap"
|
|
3324
|
-
],
|
|
3325
|
-
[
|
|
3326
|
-
"",
|
|
3327
|
-
"override-head",
|
|
3328
|
-
"opposite of detach-head. in case a component is checked out to an older version, change head to the newly created version"
|
|
3329
|
-
],
|
|
3330
|
-
[
|
|
3331
|
-
"m",
|
|
3332
|
-
"message <message>",
|
|
3333
|
-
"a log message describing latest changes"
|
|
3334
|
-
],
|
|
3335
3463
|
[
|
|
3336
3464
|
"v",
|
|
3337
|
-
"
|
|
3338
|
-
"
|
|
3339
|
-
],
|
|
3340
|
-
[
|
|
3341
|
-
"l",
|
|
3342
|
-
"increment <level>",
|
|
3343
|
-
"options are: [major, premajor, minor, preminor, patch, prepatch, prerelease], default to patch"
|
|
3465
|
+
"verbose",
|
|
3466
|
+
"showing verbose output for inspection"
|
|
3344
3467
|
],
|
|
3345
3468
|
[
|
|
3346
|
-
"",
|
|
3347
|
-
"
|
|
3348
|
-
"
|
|
3349
|
-
]
|
|
3469
|
+
"x",
|
|
3470
|
+
"skip-dependency-installation",
|
|
3471
|
+
"do not install packages of the imported components"
|
|
3472
|
+
]
|
|
3473
|
+
],
|
|
3474
|
+
"description": "replace the current component files by the specified version, leave the version intact",
|
|
3475
|
+
"extendedDescription": "",
|
|
3476
|
+
"group": "development",
|
|
3477
|
+
"private": false,
|
|
3478
|
+
"arguments": [
|
|
3479
|
+
{
|
|
3480
|
+
"name": "component-pattern",
|
|
3481
|
+
"description": "component name, component id, or component pattern. 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."
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
"name": "to",
|
|
3485
|
+
"description": "permitted values: [main, specific-version]. 'main' - head version on main."
|
|
3486
|
+
}
|
|
3487
|
+
]
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
"name": "stash <sub-command>",
|
|
3491
|
+
"alias": "",
|
|
3492
|
+
"options": [
|
|
3350
3493
|
[
|
|
3351
3494
|
"p",
|
|
3352
|
-
"
|
|
3353
|
-
"
|
|
3354
|
-
],
|
|
3355
|
-
[
|
|
3356
|
-
"",
|
|
3357
|
-
"minor",
|
|
3358
|
-
"syntactic sugar for \"--increment minor\""
|
|
3359
|
-
],
|
|
3360
|
-
[
|
|
3361
|
-
"",
|
|
3362
|
-
"major",
|
|
3363
|
-
"syntactic sugar for \"--increment major\""
|
|
3364
|
-
],
|
|
3365
|
-
[
|
|
3366
|
-
"",
|
|
3367
|
-
"pre-release [identifier]",
|
|
3368
|
-
"syntactic sugar for \"--increment prerelease\" and `--prerelease-id <identifier>`"
|
|
3495
|
+
"pattern",
|
|
3496
|
+
"component name, component id, or component pattern. 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."
|
|
3369
3497
|
],
|
|
3370
3498
|
[
|
|
3371
|
-
"",
|
|
3372
|
-
"
|
|
3373
|
-
"
|
|
3374
|
-
]
|
|
3499
|
+
"m",
|
|
3500
|
+
"message <string>",
|
|
3501
|
+
"message to be attached to the stashed components"
|
|
3502
|
+
]
|
|
3503
|
+
],
|
|
3504
|
+
"description": "stash modified components",
|
|
3505
|
+
"extendedDescription": "",
|
|
3506
|
+
"group": "development",
|
|
3507
|
+
"private": false,
|
|
3508
|
+
"commands": [
|
|
3509
|
+
{
|
|
3510
|
+
"name": "save",
|
|
3511
|
+
"alias": "s",
|
|
3512
|
+
"options": [
|
|
3513
|
+
[
|
|
3514
|
+
"p",
|
|
3515
|
+
"pattern",
|
|
3516
|
+
"component name, component id, or component pattern. 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."
|
|
3517
|
+
],
|
|
3518
|
+
[
|
|
3519
|
+
"",
|
|
3520
|
+
"include-new",
|
|
3521
|
+
"EXPERIMENTAL. by default, only modified components are stashed. use this flag to include new components"
|
|
3522
|
+
],
|
|
3523
|
+
[
|
|
3524
|
+
"m",
|
|
3525
|
+
"message <string>",
|
|
3526
|
+
"message to be attached to the stashed components"
|
|
3527
|
+
]
|
|
3528
|
+
],
|
|
3529
|
+
"description": "stash modified components",
|
|
3530
|
+
"extendedDescription": "",
|
|
3531
|
+
"group": "development",
|
|
3532
|
+
"private": false
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
"name": "load [stash-id]",
|
|
3536
|
+
"alias": "pop",
|
|
3537
|
+
"options": [
|
|
3538
|
+
[
|
|
3539
|
+
"r",
|
|
3540
|
+
"auto-merge-resolve <merge-strategy>",
|
|
3541
|
+
"in case of merge conflict, resolve according to the provided strategy: [ours, theirs, manual]"
|
|
3542
|
+
],
|
|
3543
|
+
[
|
|
3544
|
+
"",
|
|
3545
|
+
"manual",
|
|
3546
|
+
"same as \"--auto-merge-resolve manual\". in case of merge conflict, write the files with the conflict markers"
|
|
3547
|
+
],
|
|
3548
|
+
[
|
|
3549
|
+
"",
|
|
3550
|
+
"force-ours",
|
|
3551
|
+
"do not merge, preserve local files as is"
|
|
3552
|
+
],
|
|
3553
|
+
[
|
|
3554
|
+
"",
|
|
3555
|
+
"force-theirs",
|
|
3556
|
+
"do not merge, just overwrite with incoming files"
|
|
3557
|
+
]
|
|
3558
|
+
],
|
|
3559
|
+
"description": "apply the changes according to the stash. if no stash-id provided, it loads the latest stash",
|
|
3560
|
+
"extendedDescription": "",
|
|
3561
|
+
"group": "development",
|
|
3562
|
+
"private": false
|
|
3563
|
+
},
|
|
3564
|
+
{
|
|
3565
|
+
"name": "list",
|
|
3566
|
+
"alias": "",
|
|
3567
|
+
"options": [],
|
|
3568
|
+
"description": "list stash",
|
|
3569
|
+
"extendedDescription": "",
|
|
3570
|
+
"group": "development",
|
|
3571
|
+
"private": false
|
|
3572
|
+
}
|
|
3573
|
+
]
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
"name": "test [component-pattern]",
|
|
3577
|
+
"alias": "at",
|
|
3578
|
+
"options": [
|
|
3375
3579
|
[
|
|
3376
|
-
"",
|
|
3377
|
-
"
|
|
3378
|
-
"
|
|
3580
|
+
"w",
|
|
3581
|
+
"watch",
|
|
3582
|
+
"start the tester in watch mode."
|
|
3379
3583
|
],
|
|
3380
3584
|
[
|
|
3381
|
-
"",
|
|
3382
|
-
"
|
|
3383
|
-
"
|
|
3585
|
+
"d",
|
|
3586
|
+
"debug",
|
|
3587
|
+
"start the tester in debug mode."
|
|
3384
3588
|
],
|
|
3385
3589
|
[
|
|
3386
|
-
"",
|
|
3387
|
-
"
|
|
3388
|
-
"
|
|
3590
|
+
"a",
|
|
3591
|
+
"all",
|
|
3592
|
+
"DEPRECATED. (use --unmodified)"
|
|
3389
3593
|
],
|
|
3390
3594
|
[
|
|
3391
|
-
"",
|
|
3392
|
-
"
|
|
3393
|
-
"
|
|
3595
|
+
"u",
|
|
3596
|
+
"unmodified",
|
|
3597
|
+
"test all components, not only new and modified"
|
|
3394
3598
|
],
|
|
3395
3599
|
[
|
|
3396
3600
|
"",
|
|
3397
|
-
"
|
|
3398
|
-
"
|
|
3601
|
+
"junit <filepath>",
|
|
3602
|
+
"write tests results as JUnit XML format into the specified file path"
|
|
3399
3603
|
],
|
|
3400
3604
|
[
|
|
3401
3605
|
"",
|
|
3402
|
-
"
|
|
3403
|
-
"
|
|
3404
|
-
],
|
|
3405
|
-
[
|
|
3406
|
-
"i",
|
|
3407
|
-
"ignore-issues <issues>",
|
|
3408
|
-
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingManuallyConfiguredPackages, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies, DuplicateComponentAndPackage, MergeConfigHasConflict, NonLoadedEnv, ExternalEnvWithoutVersion, RemovedDependencies, RemovedEnv, DeprecatedDependencies, SelfReference, ImportFromDirectory]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\"."
|
|
3606
|
+
"coverage",
|
|
3607
|
+
"show code coverage data"
|
|
3409
3608
|
],
|
|
3410
3609
|
[
|
|
3411
|
-
"
|
|
3412
|
-
"
|
|
3413
|
-
"
|
|
3610
|
+
"e",
|
|
3611
|
+
"env <id>",
|
|
3612
|
+
"test only components assigned the given env"
|
|
3414
3613
|
],
|
|
3415
3614
|
[
|
|
3416
3615
|
"",
|
|
3417
|
-
"
|
|
3418
|
-
"
|
|
3419
|
-
],
|
|
3420
|
-
[
|
|
3421
|
-
"b",
|
|
3422
|
-
"build",
|
|
3423
|
-
"locally run the build pipeline (i.e. not via rippleCI) and complete the tag"
|
|
3616
|
+
"update-snapshot",
|
|
3617
|
+
"if supported by the tester, re-record every snapshot that fails during the test run"
|
|
3424
3618
|
],
|
|
3425
3619
|
[
|
|
3426
|
-
"",
|
|
3427
|
-
"
|
|
3428
|
-
"
|
|
3620
|
+
"s",
|
|
3621
|
+
"scope <scope-name>",
|
|
3622
|
+
"DEPRECATED. (use the pattern instead, e.g. \"scopeName/**\"). name of the scope to test"
|
|
3429
3623
|
]
|
|
3430
3624
|
],
|
|
3431
|
-
"description": "
|
|
3432
|
-
"extendedDescription": "
|
|
3625
|
+
"description": "test components in the workspace. by default only runs tests for new and modified components",
|
|
3626
|
+
"extendedDescription": "",
|
|
3433
3627
|
"group": "development",
|
|
3434
|
-
"private":
|
|
3435
|
-
"
|
|
3628
|
+
"private": false,
|
|
3629
|
+
"arguments": [
|
|
3630
|
+
{
|
|
3631
|
+
"name": "component-pattern",
|
|
3632
|
+
"description": "component name, component id, or component pattern. 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."
|
|
3633
|
+
}
|
|
3634
|
+
]
|
|
3436
3635
|
},
|
|
3437
3636
|
{
|
|
3438
|
-
"name": "
|
|
3637
|
+
"name": "diff [component-pattern] [version] [to-version]",
|
|
3439
3638
|
"alias": "",
|
|
3440
3639
|
"options": [
|
|
3441
3640
|
[
|
|
3442
|
-
"",
|
|
3443
|
-
"
|
|
3444
|
-
"
|
|
3445
|
-
],
|
|
3446
|
-
[
|
|
3447
|
-
"m",
|
|
3448
|
-
"message <message>",
|
|
3449
|
-
"log message describing the latest changes"
|
|
3450
|
-
],
|
|
3451
|
-
[
|
|
3452
|
-
"",
|
|
3453
|
-
"lane <lane-id>",
|
|
3454
|
-
"fetch the components from the given lane"
|
|
3455
|
-
],
|
|
3456
|
-
[
|
|
3457
|
-
"",
|
|
3458
|
-
"build",
|
|
3459
|
-
"run the build pipeline"
|
|
3641
|
+
"v",
|
|
3642
|
+
"verbose",
|
|
3643
|
+
"show a more verbose output where possible"
|
|
3460
3644
|
],
|
|
3461
3645
|
[
|
|
3462
|
-
"",
|
|
3463
|
-
"
|
|
3464
|
-
"
|
|
3465
|
-
]
|
|
3646
|
+
"t",
|
|
3647
|
+
"table",
|
|
3648
|
+
"show tables instead of plain text for dependencies diff"
|
|
3649
|
+
]
|
|
3650
|
+
],
|
|
3651
|
+
"description": "show the diff between the components' current source files and config, and their latest snapshot or tag",
|
|
3652
|
+
"extendedDescription": "",
|
|
3653
|
+
"group": "development",
|
|
3654
|
+
"private": false,
|
|
3655
|
+
"arguments": [
|
|
3656
|
+
{
|
|
3657
|
+
"name": "component-pattern",
|
|
3658
|
+
"description": "component name, component id, or component pattern. 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."
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
"name": "version",
|
|
3662
|
+
"description": "specific version to compare against"
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
"name": "to-version",
|
|
3666
|
+
"description": "specific version to compare to"
|
|
3667
|
+
}
|
|
3668
|
+
],
|
|
3669
|
+
"examples": [
|
|
3670
|
+
{
|
|
3671
|
+
"cmd": "diff",
|
|
3672
|
+
"description": "show diff for all modified components"
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
"cmd": "diff foo",
|
|
3676
|
+
"description": "show diff for a component \"foo\""
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
"cmd": "diff foo 0.0.1",
|
|
3680
|
+
"description": "show diff for a component \"foo\" from the current state to version 0.0.1"
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"cmd": "diff foo 0.0.1 0.0.2",
|
|
3684
|
+
"description": "show diff for a component \"foo\" from version 0.0.1 to version 0.0.2"
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
"cmd": "diff '$codeModified' ",
|
|
3688
|
+
"description": "show diff only for components with modified files. ignore config changes"
|
|
3689
|
+
}
|
|
3690
|
+
]
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
"name": "log <id>",
|
|
3694
|
+
"alias": "",
|
|
3695
|
+
"options": [
|
|
3466
3696
|
[
|
|
3467
|
-
"",
|
|
3468
|
-
"
|
|
3469
|
-
"
|
|
3697
|
+
"r",
|
|
3698
|
+
"remote",
|
|
3699
|
+
"show log of a remote component"
|
|
3470
3700
|
],
|
|
3471
3701
|
[
|
|
3472
3702
|
"",
|
|
3473
|
-
"
|
|
3474
|
-
"
|
|
3703
|
+
"parents",
|
|
3704
|
+
"show parents and lanes data"
|
|
3475
3705
|
],
|
|
3476
3706
|
[
|
|
3477
|
-
"",
|
|
3478
|
-
"
|
|
3479
|
-
"
|
|
3707
|
+
"o",
|
|
3708
|
+
"one-line",
|
|
3709
|
+
"show each log entry in one line"
|
|
3480
3710
|
],
|
|
3481
3711
|
[
|
|
3482
|
-
"
|
|
3483
|
-
"
|
|
3484
|
-
"
|
|
3712
|
+
"f",
|
|
3713
|
+
"full-hash",
|
|
3714
|
+
"show full hash of the snap (default to the first 9 characters for --one-line/--parents flags)"
|
|
3485
3715
|
],
|
|
3486
3716
|
[
|
|
3487
|
-
"",
|
|
3488
|
-
"
|
|
3489
|
-
"
|
|
3717
|
+
"m",
|
|
3718
|
+
"full-message",
|
|
3719
|
+
"show full message of the snap (default to the first line for --one-line/--parents flags)"
|
|
3490
3720
|
],
|
|
3491
3721
|
[
|
|
3492
3722
|
"",
|
|
3493
|
-
"
|
|
3494
|
-
"
|
|
3723
|
+
"show-hidden",
|
|
3724
|
+
"show hidden snaps (snaps are marked as hidden typically when the following tag has the same files/config)"
|
|
3495
3725
|
],
|
|
3496
3726
|
[
|
|
3497
3727
|
"j",
|
|
3498
3728
|
"json",
|
|
3499
|
-
"
|
|
3500
|
-
]
|
|
3729
|
+
"json format"
|
|
3730
|
+
]
|
|
3731
|
+
],
|
|
3732
|
+
"description": "show components(s) version history",
|
|
3733
|
+
"extendedDescription": "",
|
|
3734
|
+
"group": "info",
|
|
3735
|
+
"private": false,
|
|
3736
|
+
"remoteOp": true,
|
|
3737
|
+
"skipWorkspace": true,
|
|
3738
|
+
"arguments": [
|
|
3739
|
+
{
|
|
3740
|
+
"name": "id",
|
|
3741
|
+
"description": "component-id or component-name"
|
|
3742
|
+
}
|
|
3743
|
+
]
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
"name": "log-file <filepath>",
|
|
3747
|
+
"alias": "",
|
|
3748
|
+
"options": [
|
|
3501
3749
|
[
|
|
3502
|
-
"",
|
|
3503
|
-
"
|
|
3504
|
-
"
|
|
3750
|
+
"o",
|
|
3751
|
+
"one-line",
|
|
3752
|
+
"show each log entry in one line"
|
|
3505
3753
|
]
|
|
3506
3754
|
],
|
|
3507
|
-
"description": "
|
|
3508
|
-
"extendedDescription": "
|
|
3509
|
-
"group": "
|
|
3510
|
-
"private":
|
|
3755
|
+
"description": "EXPERIMENTAL. show file history",
|
|
3756
|
+
"extendedDescription": "",
|
|
3757
|
+
"group": "info",
|
|
3758
|
+
"private": false,
|
|
3759
|
+
"arguments": [
|
|
3760
|
+
{
|
|
3761
|
+
"name": "filepath",
|
|
3762
|
+
"description": "file path relative to the workspace"
|
|
3763
|
+
}
|
|
3764
|
+
]
|
|
3511
3765
|
},
|
|
3512
3766
|
{
|
|
3513
|
-
"name": "
|
|
3767
|
+
"name": "blame <filepath>",
|
|
3514
3768
|
"alias": "",
|
|
3515
|
-
"options": [
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3769
|
+
"options": [
|
|
3770
|
+
[
|
|
3771
|
+
"m",
|
|
3772
|
+
"include-message",
|
|
3773
|
+
"show the commit message"
|
|
3774
|
+
]
|
|
3775
|
+
],
|
|
3776
|
+
"description": "EXPERIMENTAL. per line, show who and when was the last to modify it",
|
|
3777
|
+
"extendedDescription": "",
|
|
3778
|
+
"group": "info",
|
|
3779
|
+
"private": false,
|
|
3780
|
+
"arguments": [
|
|
3781
|
+
{
|
|
3782
|
+
"name": "filepath",
|
|
3783
|
+
"description": "file path relative to the workspace"
|
|
3784
|
+
}
|
|
3785
|
+
]
|
|
3520
3786
|
},
|
|
3521
3787
|
{
|
|
3522
3788
|
"name": "merge [component-pattern]",
|
|
@@ -4073,745 +4339,241 @@
|
|
|
4073
4339
|
"in case of a merge conflict, resolve according to the provided strategy: [ours, theirs, manual]"
|
|
4074
4340
|
],
|
|
4075
4341
|
[
|
|
4076
|
-
"",
|
|
4077
|
-
"ours",
|
|
4078
|
-
"DEPRECATED. use --auto-merge-resolve. in case of a conflict, keep local modifications"
|
|
4079
|
-
],
|
|
4080
|
-
[
|
|
4081
|
-
"",
|
|
4082
|
-
"theirs",
|
|
4083
|
-
"DEPRECATED. use --auto-merge-resolve. in case of a conflict, override local with incoming changes"
|
|
4084
|
-
],
|
|
4085
|
-
[
|
|
4086
|
-
"",
|
|
4087
|
-
"workspace",
|
|
4088
|
-
"merge only lane components that are in the current workspace"
|
|
4089
|
-
],
|
|
4090
|
-
[
|
|
4091
|
-
"",
|
|
4092
|
-
"no-auto-snap",
|
|
4093
|
-
"do not auto snap after merge completed without conflicts of diverged components (see command description)"
|
|
4094
|
-
],
|
|
4095
|
-
[
|
|
4096
|
-
"",
|
|
4097
|
-
"no-snap",
|
|
4098
|
-
"do not pass snaps from the other lane even for non-diverged components (see command description)"
|
|
4099
|
-
],
|
|
4100
|
-
[
|
|
4101
|
-
"",
|
|
4102
|
-
"tag",
|
|
4103
|
-
"auto-tag all lane components after merging into main (or tag-merge in case of snap-merge)"
|
|
4104
|
-
],
|
|
4105
|
-
[
|
|
4106
|
-
"",
|
|
4107
|
-
"build",
|
|
4108
|
-
"in case of snap during the merge, run the build-pipeline (similar to bit snap --build)"
|
|
4109
|
-
],
|
|
4110
|
-
[
|
|
4111
|
-
"m",
|
|
4112
|
-
"message <message>",
|
|
4113
|
-
"override the default message for the auto snap"
|
|
4114
|
-
],
|
|
4115
|
-
[
|
|
4116
|
-
"",
|
|
4117
|
-
"keep-readme",
|
|
4118
|
-
"skip deleting the lane readme component after merging"
|
|
4119
|
-
],
|
|
4120
|
-
[
|
|
4121
|
-
"",
|
|
4122
|
-
"no-squash",
|
|
4123
|
-
"relevant for merging lanes into main, which by default squashes all lane snaps"
|
|
4124
|
-
],
|
|
4125
|
-
[
|
|
4126
|
-
"",
|
|
4127
|
-
"squash",
|
|
4128
|
-
"relevant for merging a lane into another non-main lane, which by default does not squash"
|
|
4129
|
-
],
|
|
4130
|
-
[
|
|
4131
|
-
"",
|
|
4132
|
-
"ignore-config-changes",
|
|
4133
|
-
"allow merging when components are modified due to config changes (such as dependencies) only and not files"
|
|
4134
|
-
],
|
|
4135
|
-
[
|
|
4136
|
-
"",
|
|
4137
|
-
"verbose",
|
|
4138
|
-
"display detailed information about components that were legitimately unmerged"
|
|
4139
|
-
],
|
|
4140
|
-
[
|
|
4141
|
-
"x",
|
|
4142
|
-
"skip-dependency-installation",
|
|
4143
|
-
"do not install dependencies of the imported components"
|
|
4144
|
-
],
|
|
4145
|
-
[
|
|
4146
|
-
"",
|
|
4147
|
-
"skip-fetch",
|
|
4148
|
-
"use the local state of target-lane if exits locally, without updating it from the remote"
|
|
4149
|
-
],
|
|
4150
|
-
[
|
|
4151
|
-
"",
|
|
4152
|
-
"include-deps",
|
|
4153
|
-
"relevant for \"pattern\" and \"--workspace\". merge also dependencies of the specified components"
|
|
4154
|
-
],
|
|
4155
|
-
[
|
|
4156
|
-
"",
|
|
4157
|
-
"resolve-unrelated [merge-strategy]",
|
|
4158
|
-
"relevant when a component on a lane and the component on main have nothing in common. merge-strategy can be \"ours\" (default) or \"theirs\""
|
|
4159
|
-
],
|
|
4160
|
-
[
|
|
4161
|
-
"",
|
|
4162
|
-
"include-non-lane-comps",
|
|
4163
|
-
"DEPRECATED (this is now the default). when merging main, include workspace components that are not on the lane (by default only lane components are merged)"
|
|
4164
|
-
],
|
|
4165
|
-
[
|
|
4166
|
-
"",
|
|
4167
|
-
"exclude-non-lane-comps",
|
|
4168
|
-
"when merging main into a lane, exclude workspace components that are not on the lane (by default all workspace components are merged)"
|
|
4169
|
-
],
|
|
4170
|
-
[
|
|
4171
|
-
"",
|
|
4172
|
-
"detach-head",
|
|
4173
|
-
"UNSUPPORTED YET. for each component, find the divergent point from main and merge to that point. do not change the head"
|
|
4174
|
-
]
|
|
4175
|
-
],
|
|
4176
|
-
"description": "merge a local or a remote lane to the current lane",
|
|
4177
|
-
"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 in both ends don'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",
|
|
4178
|
-
"private": true,
|
|
4179
|
-
"remoteOp": true,
|
|
4180
|
-
"arguments": [
|
|
4181
|
-
{
|
|
4182
|
-
"name": "lane",
|
|
4183
|
-
"description": "lane-name or full lane-id (if remote) to merge to the current lane"
|
|
4184
|
-
},
|
|
4185
|
-
{
|
|
4186
|
-
"name": "pattern",
|
|
4187
|
-
"description": "partially merge the lane - only components that match the specified component-pattern\nComponent pattern format: component name, component id, or component pattern. 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."
|
|
4188
|
-
}
|
|
4189
|
-
]
|
|
4190
|
-
},
|
|
4191
|
-
{
|
|
4192
|
-
"name": "merge-abort",
|
|
4193
|
-
"alias": "",
|
|
4194
|
-
"options": [
|
|
4195
|
-
[
|
|
4196
|
-
"",
|
|
4197
|
-
"verbose",
|
|
4198
|
-
"show details of components that didn't need to be merged"
|
|
4199
|
-
],
|
|
4200
|
-
[
|
|
4201
|
-
"s",
|
|
4202
|
-
"silent",
|
|
4203
|
-
"skip confirmation"
|
|
4204
|
-
],
|
|
4205
|
-
[
|
|
4206
|
-
"x",
|
|
4207
|
-
"skip-dependency-installation",
|
|
4208
|
-
"do not install packages of the imported components"
|
|
4209
|
-
]
|
|
4210
|
-
],
|
|
4211
|
-
"description": "abort the recent lane-merge. revert the lane object and checkout accordingly",
|
|
4212
|
-
"extendedDescription": "restore the lane-object to its state before the last \"bit lane merge\" command.\nalso, checkout the workspace components according to the restored lane state",
|
|
4213
|
-
"private": true,
|
|
4214
|
-
"remoteOp": true
|
|
4215
|
-
},
|
|
4216
|
-
{
|
|
4217
|
-
"name": "merge-move <new-lane-name>",
|
|
4218
|
-
"alias": "",
|
|
4219
|
-
"options": [
|
|
4220
|
-
[
|
|
4221
|
-
"s",
|
|
4222
|
-
"scope <scope-name>",
|
|
4223
|
-
"remote scope to which this lane will be exported, default to the workspace.json's defaultScope (can be changed up to first export of the lane with \"bit lane change-scope\")"
|
|
4224
|
-
]
|
|
4225
|
-
],
|
|
4226
|
-
"description": "EXPERIMENT. move the current merge state into a new lane. the current lane will be reset",
|
|
4227
|
-
"extendedDescription": "this command is useful when you got a messy merge state that from one hand you don't want\nto loose 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.",
|
|
4228
|
-
"remoteOp": true
|
|
4229
|
-
}
|
|
4230
|
-
]
|
|
4231
|
-
},
|
|
4232
|
-
{
|
|
4233
|
-
"name": "switch <lane>",
|
|
4234
|
-
"alias": "",
|
|
4235
|
-
"options": [
|
|
4236
|
-
[
|
|
4237
|
-
"h",
|
|
4238
|
-
"head",
|
|
4239
|
-
"switch to the head of the lane/main (fetches the latest changes from the remote)"
|
|
4240
|
-
],
|
|
4241
|
-
[
|
|
4242
|
-
"r",
|
|
4243
|
-
"auto-merge-resolve <merge-strategy>",
|
|
4244
|
-
"merge local changes with the checked out version. strategy should be \"theirs\", \"ours\" or \"manual\""
|
|
4245
|
-
],
|
|
4246
|
-
[
|
|
4247
|
-
"",
|
|
4248
|
-
"force-ours",
|
|
4249
|
-
"do not merge, preserve local files as is"
|
|
4250
|
-
],
|
|
4251
|
-
[
|
|
4252
|
-
"",
|
|
4253
|
-
"force-theirs",
|
|
4254
|
-
"do not merge, just overwrite with incoming files"
|
|
4255
|
-
],
|
|
4256
|
-
[
|
|
4257
|
-
"a",
|
|
4258
|
-
"get-all",
|
|
4259
|
-
"DEPRECATED. this is currently the default behavior"
|
|
4260
|
-
],
|
|
4261
|
-
[
|
|
4262
|
-
"",
|
|
4263
|
-
"workspace-only",
|
|
4264
|
-
"checkout only the components in the workspace to the selected lane"
|
|
4265
|
-
],
|
|
4266
|
-
[
|
|
4267
|
-
"x",
|
|
4268
|
-
"skip-dependency-installation",
|
|
4269
|
-
"do not install dependencies of the imported components"
|
|
4270
|
-
],
|
|
4271
|
-
[
|
|
4272
|
-
"p",
|
|
4273
|
-
"pattern <component-pattern>",
|
|
4274
|
-
"switch only the lane components matching the specified component-pattern. only works when the workspace is empty\n\ncomponent name, component id, or component pattern. 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."
|
|
4275
|
-
],
|
|
4276
|
-
[
|
|
4277
|
-
"n",
|
|
4278
|
-
"alias <string>",
|
|
4279
|
-
"relevant when the specified lane is a remote lane. create a local alias for the lane (doesnt affect the lane's name on the remote"
|
|
4280
|
-
],
|
|
4281
|
-
[
|
|
4282
|
-
"",
|
|
4283
|
-
"verbose",
|
|
4284
|
-
"display detailed information about components that legitimately were not switched"
|
|
4285
|
-
],
|
|
4286
|
-
[
|
|
4287
|
-
"j",
|
|
4288
|
-
"json",
|
|
4289
|
-
"return the output as JSON"
|
|
4290
|
-
]
|
|
4291
|
-
],
|
|
4292
|
-
"description": "switch to the specified lane",
|
|
4293
|
-
"extendedDescription": "",
|
|
4294
|
-
"group": "ungrouped",
|
|
4295
|
-
"private": true,
|
|
4296
|
-
"arguments": [
|
|
4297
|
-
{
|
|
4298
|
-
"name": "lane",
|
|
4299
|
-
"description": "lane-name or lane-id (if lane is not local) to switch to"
|
|
4300
|
-
}
|
|
4301
|
-
]
|
|
4302
|
-
},
|
|
4303
|
-
{
|
|
4304
|
-
"name": "cat-lane-history <lane-name>",
|
|
4305
|
-
"alias": "clh",
|
|
4306
|
-
"options": [],
|
|
4307
|
-
"description": "cat lane-history object by lane-name",
|
|
4308
|
-
"extendedDescription": "",
|
|
4309
|
-
"group": "ungrouped",
|
|
4310
|
-
"private": true
|
|
4311
|
-
},
|
|
4312
|
-
{
|
|
4313
|
-
"name": "apply <data>",
|
|
4314
|
-
"alias": "",
|
|
4315
|
-
"options": [
|
|
4316
|
-
[
|
|
4317
|
-
"",
|
|
4318
|
-
"push",
|
|
4319
|
-
"export the updated objects to the original scopes once done"
|
|
4320
|
-
],
|
|
4321
|
-
[
|
|
4322
|
-
"m",
|
|
4323
|
-
"message <message>",
|
|
4324
|
-
"log message describing the latest changes"
|
|
4325
|
-
],
|
|
4326
|
-
[
|
|
4327
|
-
"",
|
|
4328
|
-
"lane <lane-id>",
|
|
4329
|
-
"fetch the components from the given lane"
|
|
4330
|
-
],
|
|
4331
|
-
[
|
|
4332
|
-
"",
|
|
4333
|
-
"build",
|
|
4334
|
-
"run the build pipeline"
|
|
4335
|
-
],
|
|
4336
|
-
[
|
|
4337
|
-
"",
|
|
4338
|
-
"skip-tests",
|
|
4339
|
-
"skip running component tests during snap process"
|
|
4340
|
-
],
|
|
4341
|
-
[
|
|
4342
|
-
"",
|
|
4343
|
-
"disable-snap-pipeline",
|
|
4344
|
-
"skip the snap pipeline"
|
|
4345
|
-
],
|
|
4346
|
-
[
|
|
4347
|
-
"",
|
|
4348
|
-
"ignore-build-errors",
|
|
4349
|
-
"run the snap pipeline although the build pipeline failed"
|
|
4350
|
-
],
|
|
4351
|
-
[
|
|
4352
|
-
"",
|
|
4353
|
-
"rebuild-deps-graph",
|
|
4354
|
-
"do not reuse the saved dependencies graph, instead build it from scratch"
|
|
4355
|
-
],
|
|
4356
|
-
[
|
|
4357
|
-
"i",
|
|
4358
|
-
"ignore-issues [issues]",
|
|
4359
|
-
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingManuallyConfiguredPackages, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies, DuplicateComponentAndPackage, MergeConfigHasConflict, NonLoadedEnv, ExternalEnvWithoutVersion, RemovedDependencies, RemovedEnv, DeprecatedDependencies, SelfReference, ImportFromDirectory]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\"."
|
|
4360
|
-
],
|
|
4361
|
-
[
|
|
4362
|
-
"",
|
|
4363
|
-
"tag",
|
|
4364
|
-
"make a tag instead of a snap"
|
|
4365
|
-
],
|
|
4366
|
-
[
|
|
4367
|
-
"",
|
|
4368
|
-
"stream",
|
|
4369
|
-
"relevant for --json only. stream loader as json strings"
|
|
4370
|
-
],
|
|
4371
|
-
[
|
|
4372
|
-
"j",
|
|
4373
|
-
"json",
|
|
4374
|
-
"output as json format"
|
|
4375
|
-
],
|
|
4376
|
-
[
|
|
4377
|
-
"",
|
|
4378
|
-
"snap",
|
|
4379
|
-
"snap the components. default to keep them new"
|
|
4380
|
-
],
|
|
4381
|
-
[
|
|
4382
|
-
"",
|
|
4383
|
-
"stream",
|
|
4384
|
-
"relevant for --json only. stream loader as json strings"
|
|
4385
|
-
],
|
|
4386
|
-
[
|
|
4387
|
-
"x",
|
|
4388
|
-
"skip-dependency-installation",
|
|
4389
|
-
"do not auto-install dependencies of the imported components"
|
|
4390
|
-
]
|
|
4391
|
-
],
|
|
4392
|
-
"description": "apply files/config to components",
|
|
4393
|
-
"extendedDescription": "the input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies?: string[]; // dependencies include versions. for components use component-id. e.g. [teambit.compilation/compiler@1.0.0, lodash@4.17.21]\n aspects?: Record<string,any> // e.g. { \"teambit.react/react\": {}, \"teambit.envs/envs\": { \"env\": \"teambit.react/react\" } }\n message?: string; // tag-message.\n files?: Array<{path: string, content: string}>; // replace content of specified source-files. the content is base64 encoded.\n isNew?: boolean; // if it's new, it'll be generated from the given files. otherwise, it'll be fetched from the scope and updated.\n mainFile?: string; // relevant when isNew is true. default to \"index.ts\".\n newDependencies?: Array<{ // new dependencies (components and packages) to add.\n id: string; // component-id or package-name. e.g. \"teambit.react/react\" or \"lodash\".\n version?: string; // version of the package. e.g. \"2.0.3\". for packages, it is mandatory.\n isComponent?: boolean; // default true. if false, it's a package dependency\n type?: 'runtime' | 'dev' | 'peer'; // default \"runtime\".\n }>;\n removeDependencies?: string[]; // component-id (for components) or package-name (for packages) to remove from the dependencies.\n forkFrom?: string; // origin id to fork from. the componentId is the new id. (no need to populate isNew prop).\n version?: string; // relevant when passing \"--tag\". optionally, specify the semver to tag. default to \"patch\".\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"message\": \"first snap\"}]'",
|
|
4394
|
-
"group": "ungrouped",
|
|
4395
|
-
"private": true
|
|
4396
|
-
},
|
|
4397
|
-
{
|
|
4398
|
-
"name": "doctor [diagnosis-name]",
|
|
4399
|
-
"alias": "",
|
|
4400
|
-
"options": [
|
|
4401
|
-
[
|
|
4402
|
-
"j",
|
|
4403
|
-
"json",
|
|
4404
|
-
"return diagnoses in json format"
|
|
4405
|
-
],
|
|
4406
|
-
[
|
|
4407
|
-
"",
|
|
4408
|
-
"list",
|
|
4409
|
-
"list all available diagnoses"
|
|
4410
|
-
],
|
|
4411
|
-
[
|
|
4412
|
-
"s",
|
|
4413
|
-
"save [filePath]",
|
|
4414
|
-
"save diagnoses to a file"
|
|
4415
|
-
],
|
|
4416
|
-
[
|
|
4417
|
-
"a",
|
|
4418
|
-
"archive [filePath]",
|
|
4419
|
-
"archive the workspace including diagnosis info (by default exclude node-modules and include .bit)"
|
|
4420
|
-
],
|
|
4421
|
-
[
|
|
4422
|
-
"n",
|
|
4423
|
-
"include-node-modules",
|
|
4424
|
-
"relevant for --archive. include node_modules in the archive file"
|
|
4425
|
-
],
|
|
4426
|
-
[
|
|
4427
|
-
"p",
|
|
4428
|
-
"include-public",
|
|
4429
|
-
"relevant for --archive. include public folder in the archive file"
|
|
4430
|
-
],
|
|
4431
|
-
[
|
|
4432
|
-
"e",
|
|
4433
|
-
"exclude-local-scope",
|
|
4434
|
-
"relevant for --archive. exclude .bit or .git/bit from the archive file"
|
|
4435
|
-
]
|
|
4436
|
-
],
|
|
4437
|
-
"description": "diagnose a bit workspace",
|
|
4438
|
-
"extendedDescription": "",
|
|
4439
|
-
"group": "general",
|
|
4440
|
-
"private": false
|
|
4441
|
-
},
|
|
4442
|
-
{
|
|
4443
|
-
"name": "init [path]",
|
|
4444
|
-
"alias": "",
|
|
4445
|
-
"options": [
|
|
4446
|
-
[
|
|
4447
|
-
"n",
|
|
4448
|
-
"name <workspace-name>",
|
|
4449
|
-
"name of the workspace"
|
|
4450
|
-
],
|
|
4451
|
-
[
|
|
4452
|
-
"",
|
|
4453
|
-
"generator <env-id>",
|
|
4454
|
-
"for multiple, separate by a comma. add env-ids into the generators field in the workspace config for future \"bit create\" templates"
|
|
4455
|
-
],
|
|
4456
|
-
[
|
|
4457
|
-
"T",
|
|
4458
|
-
"standalone",
|
|
4459
|
-
"do not nest component store within .git directory and do not write config data inside package.json"
|
|
4460
|
-
],
|
|
4461
|
-
[
|
|
4462
|
-
"",
|
|
4463
|
-
"no-package-json",
|
|
4464
|
-
"do not generate package.json"
|
|
4465
|
-
],
|
|
4466
|
-
[
|
|
4467
|
-
"r",
|
|
4468
|
-
"reset",
|
|
4469
|
-
"write missing or damaged Bit files"
|
|
4470
|
-
],
|
|
4471
|
-
[
|
|
4472
|
-
"",
|
|
4473
|
-
"reset-new",
|
|
4474
|
-
"reset .bitmap file as if the components were newly added and remove all model data (objects)"
|
|
4475
|
-
],
|
|
4476
|
-
[
|
|
4477
|
-
"",
|
|
4478
|
-
"reset-lane-new",
|
|
4479
|
-
"same as reset-new, but it only resets components belong to lanes. main components are left intact"
|
|
4480
|
-
],
|
|
4481
|
-
[
|
|
4482
|
-
"",
|
|
4483
|
-
"reset-hard",
|
|
4484
|
-
"delete all Bit files and directories, including Bit configuration, tracking and model data. Useful for re-starting workspace from scratch"
|
|
4485
|
-
],
|
|
4486
|
-
[
|
|
4487
|
-
"",
|
|
4488
|
-
"reset-scope",
|
|
4489
|
-
"removes local scope (.bit or .git/bit). tags/snaps that have not been exported will be lost. workspace is left intact"
|
|
4490
|
-
],
|
|
4491
|
-
[
|
|
4492
|
-
"d",
|
|
4493
|
-
"default-directory <default-directory>",
|
|
4494
|
-
"set the default directory pattern to import/create components into"
|
|
4495
|
-
],
|
|
4496
|
-
[
|
|
4497
|
-
"",
|
|
4498
|
-
"default-scope <default-scope>",
|
|
4499
|
-
"set the default scope for components in the workspace"
|
|
4500
|
-
],
|
|
4501
|
-
[
|
|
4502
|
-
"f",
|
|
4503
|
-
"force",
|
|
4504
|
-
"force workspace initialization without clearing local objects"
|
|
4505
|
-
],
|
|
4506
|
-
[
|
|
4507
|
-
"b",
|
|
4508
|
-
"bare [name]",
|
|
4509
|
-
"initialize an empty bit bare scope"
|
|
4510
|
-
],
|
|
4511
|
-
[
|
|
4512
|
-
"s",
|
|
4513
|
-
"shared <groupname>",
|
|
4514
|
-
"add group write permissions to a scope properly"
|
|
4515
|
-
]
|
|
4516
|
-
],
|
|
4517
|
-
"description": "create or reinitialize an empty workspace",
|
|
4518
|
-
"extendedDescription": "if the current directory is already a workspace, it validates that bit files are correct and rewrite them if needed.",
|
|
4519
|
-
"group": "start",
|
|
4520
|
-
"private": false,
|
|
4521
|
-
"skipWorkspace": true
|
|
4522
|
-
},
|
|
4523
|
-
{
|
|
4524
|
-
"name": "version-history <sub-command>",
|
|
4525
|
-
"alias": "vh",
|
|
4526
|
-
"options": [],
|
|
4527
|
-
"description": "manage the version-history of components",
|
|
4528
|
-
"extendedDescription": "",
|
|
4529
|
-
"group": "info",
|
|
4530
|
-
"private": false,
|
|
4531
|
-
"commands": [
|
|
4532
|
-
{
|
|
4533
|
-
"name": "graph <component-id>",
|
|
4534
|
-
"alias": "",
|
|
4535
|
-
"options": [
|
|
4536
|
-
[
|
|
4537
|
-
"s",
|
|
4538
|
-
"short-hash",
|
|
4539
|
-
"show only 9 chars of the hash"
|
|
4342
|
+
"",
|
|
4343
|
+
"ours",
|
|
4344
|
+
"DEPRECATED. use --auto-merge-resolve. in case of a conflict, keep local modifications"
|
|
4345
|
+
],
|
|
4346
|
+
[
|
|
4347
|
+
"",
|
|
4348
|
+
"theirs",
|
|
4349
|
+
"DEPRECATED. use --auto-merge-resolve. in case of a conflict, override local with incoming changes"
|
|
4350
|
+
],
|
|
4351
|
+
[
|
|
4352
|
+
"",
|
|
4353
|
+
"workspace",
|
|
4354
|
+
"merge only lane components that are in the current workspace"
|
|
4355
|
+
],
|
|
4356
|
+
[
|
|
4357
|
+
"",
|
|
4358
|
+
"no-auto-snap",
|
|
4359
|
+
"do not auto snap after merge completed without conflicts of diverged components (see command description)"
|
|
4360
|
+
],
|
|
4361
|
+
[
|
|
4362
|
+
"",
|
|
4363
|
+
"no-snap",
|
|
4364
|
+
"do not pass snaps from the other lane even for non-diverged components (see command description)"
|
|
4365
|
+
],
|
|
4366
|
+
[
|
|
4367
|
+
"",
|
|
4368
|
+
"tag",
|
|
4369
|
+
"auto-tag all lane components after merging into main (or tag-merge in case of snap-merge)"
|
|
4370
|
+
],
|
|
4371
|
+
[
|
|
4372
|
+
"",
|
|
4373
|
+
"build",
|
|
4374
|
+
"in case of snap during the merge, run the build-pipeline (similar to bit snap --build)"
|
|
4540
4375
|
],
|
|
4541
4376
|
[
|
|
4542
4377
|
"m",
|
|
4543
|
-
"
|
|
4544
|
-
"
|
|
4378
|
+
"message <message>",
|
|
4379
|
+
"override the default message for the auto snap"
|
|
4545
4380
|
],
|
|
4546
4381
|
[
|
|
4547
4382
|
"",
|
|
4548
|
-
"
|
|
4549
|
-
"
|
|
4383
|
+
"keep-readme",
|
|
4384
|
+
"skip deleting the lane readme component after merging"
|
|
4550
4385
|
],
|
|
4551
4386
|
[
|
|
4552
|
-
"
|
|
4553
|
-
"
|
|
4554
|
-
"
|
|
4555
|
-
]
|
|
4556
|
-
],
|
|
4557
|
-
"description": "generate a graph of the version history of a component and save as an SVG file",
|
|
4558
|
-
"extendedDescription": "",
|
|
4559
|
-
"group": "info",
|
|
4560
|
-
"private": false
|
|
4561
|
-
},
|
|
4562
|
-
{
|
|
4563
|
-
"name": "show <component-id>",
|
|
4564
|
-
"alias": "vh",
|
|
4565
|
-
"options": [
|
|
4387
|
+
"",
|
|
4388
|
+
"no-squash",
|
|
4389
|
+
"relevant for merging lanes into main, which by default squashes all lane snaps"
|
|
4390
|
+
],
|
|
4566
4391
|
[
|
|
4567
|
-
"
|
|
4568
|
-
"
|
|
4569
|
-
"
|
|
4392
|
+
"",
|
|
4393
|
+
"squash",
|
|
4394
|
+
"relevant for merging a lane into another non-main lane, which by default does not squash"
|
|
4570
4395
|
],
|
|
4571
4396
|
[
|
|
4572
|
-
"
|
|
4573
|
-
"
|
|
4574
|
-
"
|
|
4575
|
-
]
|
|
4576
|
-
],
|
|
4577
|
-
"description": "show the version-history of a component",
|
|
4578
|
-
"extendedDescription": "",
|
|
4579
|
-
"group": "info",
|
|
4580
|
-
"private": false
|
|
4581
|
-
},
|
|
4582
|
-
{
|
|
4583
|
-
"name": "build <component-pattern>",
|
|
4584
|
-
"alias": "",
|
|
4585
|
-
"options": [
|
|
4397
|
+
"",
|
|
4398
|
+
"ignore-config-changes",
|
|
4399
|
+
"allow merging when components are modified due to config changes (such as dependencies) only and not files"
|
|
4400
|
+
],
|
|
4586
4401
|
[
|
|
4587
4402
|
"",
|
|
4588
|
-
"
|
|
4589
|
-
"
|
|
4403
|
+
"verbose",
|
|
4404
|
+
"display detailed information about components that were legitimately unmerged"
|
|
4405
|
+
],
|
|
4406
|
+
[
|
|
4407
|
+
"x",
|
|
4408
|
+
"skip-dependency-installation",
|
|
4409
|
+
"do not install dependencies of the imported components"
|
|
4590
4410
|
],
|
|
4591
4411
|
[
|
|
4592
4412
|
"",
|
|
4593
|
-
"
|
|
4594
|
-
"
|
|
4413
|
+
"skip-fetch",
|
|
4414
|
+
"use the local state of target-lane if exits locally, without updating it from the remote"
|
|
4595
4415
|
],
|
|
4596
4416
|
[
|
|
4597
4417
|
"",
|
|
4598
|
-
"
|
|
4599
|
-
"
|
|
4418
|
+
"include-deps",
|
|
4419
|
+
"relevant for \"pattern\" and \"--workspace\". merge also dependencies of the specified components"
|
|
4600
4420
|
],
|
|
4601
4421
|
[
|
|
4602
4422
|
"",
|
|
4603
|
-
"
|
|
4604
|
-
"
|
|
4605
|
-
]
|
|
4606
|
-
],
|
|
4607
|
-
"description": "rebuild the version history of a component. helpful when it got corrupted for some reason",
|
|
4608
|
-
"extendedDescription": "",
|
|
4609
|
-
"group": "info",
|
|
4610
|
-
"private": false,
|
|
4611
|
-
"arguments": [
|
|
4612
|
-
{
|
|
4613
|
-
"name": "component-pattern",
|
|
4614
|
-
"description": "component name, component id, or component pattern. 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."
|
|
4615
|
-
}
|
|
4616
|
-
]
|
|
4617
|
-
}
|
|
4618
|
-
]
|
|
4619
|
-
},
|
|
4620
|
-
{
|
|
4621
|
-
"name": "cat-version-history <id>",
|
|
4622
|
-
"alias": "cvh",
|
|
4623
|
-
"options": [
|
|
4624
|
-
[
|
|
4625
|
-
"j",
|
|
4626
|
-
"json",
|
|
4627
|
-
"json format"
|
|
4628
|
-
]
|
|
4629
|
-
],
|
|
4630
|
-
"description": "cat version-history object by component-id",
|
|
4631
|
-
"extendedDescription": "",
|
|
4632
|
-
"group": "ungrouped",
|
|
4633
|
-
"private": true
|
|
4634
|
-
},
|
|
4635
|
-
{
|
|
4636
|
-
"name": "stash <sub-command>",
|
|
4637
|
-
"alias": "",
|
|
4638
|
-
"options": [
|
|
4639
|
-
[
|
|
4640
|
-
"p",
|
|
4641
|
-
"pattern",
|
|
4642
|
-
"component name, component id, or component pattern. 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."
|
|
4643
|
-
],
|
|
4644
|
-
[
|
|
4645
|
-
"m",
|
|
4646
|
-
"message <string>",
|
|
4647
|
-
"message to be attached to the stashed components"
|
|
4648
|
-
]
|
|
4649
|
-
],
|
|
4650
|
-
"description": "stash modified components",
|
|
4651
|
-
"extendedDescription": "",
|
|
4652
|
-
"group": "development",
|
|
4653
|
-
"private": false,
|
|
4654
|
-
"commands": [
|
|
4655
|
-
{
|
|
4656
|
-
"name": "save",
|
|
4657
|
-
"alias": "s",
|
|
4658
|
-
"options": [
|
|
4423
|
+
"resolve-unrelated [merge-strategy]",
|
|
4424
|
+
"relevant when a component on a lane and the component on main have nothing in common. merge-strategy can be \"ours\" (default) or \"theirs\""
|
|
4425
|
+
],
|
|
4659
4426
|
[
|
|
4660
|
-
"
|
|
4661
|
-
"
|
|
4662
|
-
"
|
|
4427
|
+
"",
|
|
4428
|
+
"include-non-lane-comps",
|
|
4429
|
+
"DEPRECATED (this is now the default). when merging main, include workspace components that are not on the lane (by default only lane components are merged)"
|
|
4663
4430
|
],
|
|
4664
4431
|
[
|
|
4665
4432
|
"",
|
|
4666
|
-
"
|
|
4667
|
-
"
|
|
4433
|
+
"exclude-non-lane-comps",
|
|
4434
|
+
"when merging main into a lane, exclude workspace components that are not on the lane (by default all workspace components are merged)"
|
|
4668
4435
|
],
|
|
4669
4436
|
[
|
|
4670
|
-
"
|
|
4671
|
-
"
|
|
4672
|
-
"
|
|
4437
|
+
"",
|
|
4438
|
+
"detach-head",
|
|
4439
|
+
"UNSUPPORTED YET. for each component, find the divergent point from main and merge to that point. do not change the head"
|
|
4673
4440
|
]
|
|
4674
4441
|
],
|
|
4675
|
-
"description": "
|
|
4676
|
-
"extendedDescription": "",
|
|
4677
|
-
"
|
|
4678
|
-
"
|
|
4442
|
+
"description": "merge a local or a remote lane to the current lane",
|
|
4443
|
+
"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 in both ends don'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",
|
|
4444
|
+
"private": true,
|
|
4445
|
+
"remoteOp": true,
|
|
4446
|
+
"arguments": [
|
|
4447
|
+
{
|
|
4448
|
+
"name": "lane",
|
|
4449
|
+
"description": "lane-name or full lane-id (if remote) to merge to the current lane"
|
|
4450
|
+
},
|
|
4451
|
+
{
|
|
4452
|
+
"name": "pattern",
|
|
4453
|
+
"description": "partially merge the lane - only components that match the specified component-pattern\nComponent pattern format: component name, component id, or component pattern. 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."
|
|
4454
|
+
}
|
|
4455
|
+
]
|
|
4679
4456
|
},
|
|
4680
4457
|
{
|
|
4681
|
-
"name": "
|
|
4682
|
-
"alias": "
|
|
4458
|
+
"name": "merge-abort",
|
|
4459
|
+
"alias": "",
|
|
4683
4460
|
"options": [
|
|
4684
|
-
[
|
|
4685
|
-
"r",
|
|
4686
|
-
"auto-merge-resolve <merge-strategy>",
|
|
4687
|
-
"in case of merge conflict, resolve according to the provided strategy: [ours, theirs, manual]"
|
|
4688
|
-
],
|
|
4689
4461
|
[
|
|
4690
4462
|
"",
|
|
4691
|
-
"
|
|
4692
|
-
"
|
|
4463
|
+
"verbose",
|
|
4464
|
+
"show details of components that didn't need to be merged"
|
|
4693
4465
|
],
|
|
4694
4466
|
[
|
|
4695
|
-
"",
|
|
4696
|
-
"
|
|
4697
|
-
"
|
|
4467
|
+
"s",
|
|
4468
|
+
"silent",
|
|
4469
|
+
"skip confirmation"
|
|
4698
4470
|
],
|
|
4699
4471
|
[
|
|
4700
|
-
"",
|
|
4701
|
-
"
|
|
4702
|
-
"do not
|
|
4472
|
+
"x",
|
|
4473
|
+
"skip-dependency-installation",
|
|
4474
|
+
"do not install packages of the imported components"
|
|
4703
4475
|
]
|
|
4704
4476
|
],
|
|
4705
|
-
"description": "
|
|
4706
|
-
"extendedDescription": "",
|
|
4707
|
-
"
|
|
4708
|
-
"
|
|
4477
|
+
"description": "abort the recent lane-merge. revert the lane object and checkout accordingly",
|
|
4478
|
+
"extendedDescription": "restore the lane-object to its state before the last \"bit lane merge\" command.\nalso, checkout the workspace components according to the restored lane state",
|
|
4479
|
+
"private": true,
|
|
4480
|
+
"remoteOp": true
|
|
4709
4481
|
},
|
|
4710
4482
|
{
|
|
4711
|
-
"name": "
|
|
4483
|
+
"name": "merge-move <new-lane-name>",
|
|
4712
4484
|
"alias": "",
|
|
4713
|
-
"options": [
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4485
|
+
"options": [
|
|
4486
|
+
[
|
|
4487
|
+
"s",
|
|
4488
|
+
"scope <scope-name>",
|
|
4489
|
+
"remote scope to which this lane will be exported, default to the workspace.json's defaultScope (can be changed up to first export of the lane with \"bit lane change-scope\")"
|
|
4490
|
+
]
|
|
4491
|
+
],
|
|
4492
|
+
"description": "EXPERIMENT. move the current merge state into a new lane. the current lane will be reset",
|
|
4493
|
+
"extendedDescription": "this command is useful when you got a messy merge state that from one hand you don't want\nto loose 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.",
|
|
4494
|
+
"remoteOp": true
|
|
4718
4495
|
}
|
|
4719
4496
|
]
|
|
4720
4497
|
},
|
|
4721
4498
|
{
|
|
4722
|
-
"name": "
|
|
4499
|
+
"name": "switch <lane>",
|
|
4723
4500
|
"alias": "",
|
|
4724
4501
|
"options": [
|
|
4725
4502
|
[
|
|
4726
|
-
"
|
|
4727
|
-
"
|
|
4728
|
-
"
|
|
4503
|
+
"h",
|
|
4504
|
+
"head",
|
|
4505
|
+
"switch to the head of the lane/main (fetches the latest changes from the remote)"
|
|
4506
|
+
],
|
|
4507
|
+
[
|
|
4508
|
+
"r",
|
|
4509
|
+
"auto-merge-resolve <merge-strategy>",
|
|
4510
|
+
"merge local changes with the checked out version. strategy should be \"theirs\", \"ours\" or \"manual\""
|
|
4511
|
+
],
|
|
4512
|
+
[
|
|
4513
|
+
"",
|
|
4514
|
+
"force-ours",
|
|
4515
|
+
"do not merge, preserve local files as is"
|
|
4729
4516
|
],
|
|
4730
4517
|
[
|
|
4731
4518
|
"",
|
|
4732
|
-
"
|
|
4733
|
-
"
|
|
4519
|
+
"force-theirs",
|
|
4520
|
+
"do not merge, just overwrite with incoming files"
|
|
4734
4521
|
],
|
|
4735
4522
|
[
|
|
4736
|
-
"
|
|
4737
|
-
"
|
|
4738
|
-
"
|
|
4523
|
+
"a",
|
|
4524
|
+
"get-all",
|
|
4525
|
+
"DEPRECATED. this is currently the default behavior"
|
|
4739
4526
|
],
|
|
4740
4527
|
[
|
|
4741
|
-
"
|
|
4742
|
-
"
|
|
4743
|
-
"
|
|
4528
|
+
"",
|
|
4529
|
+
"workspace-only",
|
|
4530
|
+
"checkout only the components in the workspace to the selected lane"
|
|
4744
4531
|
],
|
|
4745
4532
|
[
|
|
4746
|
-
"
|
|
4747
|
-
"
|
|
4748
|
-
"
|
|
4533
|
+
"x",
|
|
4534
|
+
"skip-dependency-installation",
|
|
4535
|
+
"do not install dependencies of the imported components"
|
|
4536
|
+
],
|
|
4537
|
+
[
|
|
4538
|
+
"p",
|
|
4539
|
+
"pattern <component-pattern>",
|
|
4540
|
+
"switch only the lane components matching the specified component-pattern. only works when the workspace is empty\n\ncomponent name, component id, or component pattern. 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."
|
|
4541
|
+
],
|
|
4542
|
+
[
|
|
4543
|
+
"n",
|
|
4544
|
+
"alias <string>",
|
|
4545
|
+
"relevant when the specified lane is a remote lane. create a local alias for the lane (doesnt affect the lane's name on the remote"
|
|
4749
4546
|
],
|
|
4750
4547
|
[
|
|
4751
4548
|
"",
|
|
4752
|
-
"
|
|
4753
|
-
"
|
|
4549
|
+
"verbose",
|
|
4550
|
+
"display detailed information about components that legitimately were not switched"
|
|
4754
4551
|
],
|
|
4755
4552
|
[
|
|
4756
4553
|
"j",
|
|
4757
4554
|
"json",
|
|
4758
|
-
"
|
|
4759
|
-
]
|
|
4760
|
-
],
|
|
4761
|
-
"description": "show components(s) version history",
|
|
4762
|
-
"extendedDescription": "",
|
|
4763
|
-
"group": "info",
|
|
4764
|
-
"private": false,
|
|
4765
|
-
"remoteOp": true,
|
|
4766
|
-
"skipWorkspace": true,
|
|
4767
|
-
"arguments": [
|
|
4768
|
-
{
|
|
4769
|
-
"name": "id",
|
|
4770
|
-
"description": "component-id or component-name"
|
|
4771
|
-
}
|
|
4772
|
-
]
|
|
4773
|
-
},
|
|
4774
|
-
{
|
|
4775
|
-
"name": "log-file <filepath>",
|
|
4776
|
-
"alias": "",
|
|
4777
|
-
"options": [
|
|
4778
|
-
[
|
|
4779
|
-
"o",
|
|
4780
|
-
"one-line",
|
|
4781
|
-
"show each log entry in one line"
|
|
4555
|
+
"return the output as JSON"
|
|
4782
4556
|
]
|
|
4783
4557
|
],
|
|
4784
|
-
"description": "
|
|
4558
|
+
"description": "switch to the specified lane",
|
|
4785
4559
|
"extendedDescription": "",
|
|
4786
|
-
"group": "
|
|
4787
|
-
"private":
|
|
4560
|
+
"group": "ungrouped",
|
|
4561
|
+
"private": true,
|
|
4788
4562
|
"arguments": [
|
|
4789
4563
|
{
|
|
4790
|
-
"name": "
|
|
4791
|
-
"description": "
|
|
4564
|
+
"name": "lane",
|
|
4565
|
+
"description": "lane-name or lane-id (if lane is not local) to switch to"
|
|
4792
4566
|
}
|
|
4793
4567
|
]
|
|
4794
4568
|
},
|
|
4795
4569
|
{
|
|
4796
|
-
"name": "
|
|
4797
|
-
"alias": "",
|
|
4798
|
-
"options": [
|
|
4799
|
-
|
|
4800
|
-
"m",
|
|
4801
|
-
"include-message",
|
|
4802
|
-
"show the commit message"
|
|
4803
|
-
]
|
|
4804
|
-
],
|
|
4805
|
-
"description": "EXPERIMENTAL. per line, show who and when was the last to modify it",
|
|
4570
|
+
"name": "cat-lane-history <lane-name>",
|
|
4571
|
+
"alias": "clh",
|
|
4572
|
+
"options": [],
|
|
4573
|
+
"description": "cat lane-history object by lane-name",
|
|
4806
4574
|
"extendedDescription": "",
|
|
4807
|
-
"group": "
|
|
4808
|
-
"private":
|
|
4809
|
-
"arguments": [
|
|
4810
|
-
{
|
|
4811
|
-
"name": "filepath",
|
|
4812
|
-
"description": "file path relative to the workspace"
|
|
4813
|
-
}
|
|
4814
|
-
]
|
|
4575
|
+
"group": "ungrouped",
|
|
4576
|
+
"private": true
|
|
4815
4577
|
},
|
|
4816
4578
|
{
|
|
4817
4579
|
"name": "server",
|
|
@@ -4899,6 +4661,92 @@
|
|
|
4899
4661
|
}
|
|
4900
4662
|
]
|
|
4901
4663
|
},
|
|
4664
|
+
{
|
|
4665
|
+
"name": "pack <componentId> [scopePath]",
|
|
4666
|
+
"alias": "",
|
|
4667
|
+
"options": [
|
|
4668
|
+
[
|
|
4669
|
+
"d",
|
|
4670
|
+
"out-dir <out-dir>",
|
|
4671
|
+
"directory to put the result tar file"
|
|
4672
|
+
],
|
|
4673
|
+
[
|
|
4674
|
+
"o",
|
|
4675
|
+
"override",
|
|
4676
|
+
"override existing pack file"
|
|
4677
|
+
],
|
|
4678
|
+
[
|
|
4679
|
+
"k",
|
|
4680
|
+
"keep",
|
|
4681
|
+
"should keep isolated environment [default = false]"
|
|
4682
|
+
],
|
|
4683
|
+
[
|
|
4684
|
+
"p",
|
|
4685
|
+
"prefix",
|
|
4686
|
+
"keep custom (binding) prefix"
|
|
4687
|
+
],
|
|
4688
|
+
[
|
|
4689
|
+
"j",
|
|
4690
|
+
"json",
|
|
4691
|
+
"return the output as JSON"
|
|
4692
|
+
]
|
|
4693
|
+
],
|
|
4694
|
+
"description": "create tar for npm publish",
|
|
4695
|
+
"extendedDescription": "",
|
|
4696
|
+
"group": "collaborate",
|
|
4697
|
+
"private": true
|
|
4698
|
+
},
|
|
4699
|
+
{
|
|
4700
|
+
"name": "publish <component-pattern>",
|
|
4701
|
+
"alias": "",
|
|
4702
|
+
"options": [
|
|
4703
|
+
[
|
|
4704
|
+
"d",
|
|
4705
|
+
"dry-run",
|
|
4706
|
+
"npm publish --dry-run"
|
|
4707
|
+
],
|
|
4708
|
+
[
|
|
4709
|
+
"",
|
|
4710
|
+
"allow-staged",
|
|
4711
|
+
"allow publishing components that were not exported yet (not recommended)"
|
|
4712
|
+
],
|
|
4713
|
+
[
|
|
4714
|
+
"j",
|
|
4715
|
+
"json",
|
|
4716
|
+
"return the output as JSON"
|
|
4717
|
+
]
|
|
4718
|
+
],
|
|
4719
|
+
"description": "publish components to npm (npm publish)",
|
|
4720
|
+
"extendedDescription": "",
|
|
4721
|
+
"group": "collaborate",
|
|
4722
|
+
"private": true,
|
|
4723
|
+
"arguments": [
|
|
4724
|
+
{
|
|
4725
|
+
"name": "component-pattern",
|
|
4726
|
+
"description": "component name, component id, or component pattern. 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."
|
|
4727
|
+
}
|
|
4728
|
+
]
|
|
4729
|
+
},
|
|
4730
|
+
{
|
|
4731
|
+
"name": "refactor <sub-command>",
|
|
4732
|
+
"alias": "",
|
|
4733
|
+
"options": [],
|
|
4734
|
+
"description": "source code refactoring / codemod",
|
|
4735
|
+
"extendedDescription": "",
|
|
4736
|
+
"group": "development",
|
|
4737
|
+
"private": false,
|
|
4738
|
+
"commands": [
|
|
4739
|
+
{
|
|
4740
|
+
"name": "dependency-name <old-id> <new-id>",
|
|
4741
|
+
"alias": "",
|
|
4742
|
+
"options": [],
|
|
4743
|
+
"description": "replace the dependency's old package-name with a new one in the code",
|
|
4744
|
+
"extendedDescription": "the `<old-id>` and `<new-id>` arguments can be either a component-id or a package-name.",
|
|
4745
|
+
"group": "development",
|
|
4746
|
+
"private": false
|
|
4747
|
+
}
|
|
4748
|
+
]
|
|
4749
|
+
},
|
|
4902
4750
|
{
|
|
4903
4751
|
"name": "login",
|
|
4904
4752
|
"alias": "",
|
|
@@ -5148,6 +4996,73 @@
|
|
|
5148
4996
|
}
|
|
5149
4997
|
]
|
|
5150
4998
|
},
|
|
4999
|
+
{
|
|
5000
|
+
"name": "fork <source-component-id> [target-component-name]",
|
|
5001
|
+
"alias": "",
|
|
5002
|
+
"options": [
|
|
5003
|
+
[
|
|
5004
|
+
"s",
|
|
5005
|
+
"scope <string>",
|
|
5006
|
+
"default scope for the new component"
|
|
5007
|
+
],
|
|
5008
|
+
[
|
|
5009
|
+
"p",
|
|
5010
|
+
"path <string>",
|
|
5011
|
+
"relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`"
|
|
5012
|
+
],
|
|
5013
|
+
[
|
|
5014
|
+
"r",
|
|
5015
|
+
"refactor",
|
|
5016
|
+
"update the import/require statements in all dependent components (in the same workspace)"
|
|
5017
|
+
],
|
|
5018
|
+
[
|
|
5019
|
+
"x",
|
|
5020
|
+
"skip-dependency-installation",
|
|
5021
|
+
"do not install packages of the imported components"
|
|
5022
|
+
],
|
|
5023
|
+
[
|
|
5024
|
+
"e",
|
|
5025
|
+
"env <string>",
|
|
5026
|
+
"set the environment for the new component"
|
|
5027
|
+
],
|
|
5028
|
+
[
|
|
5029
|
+
"",
|
|
5030
|
+
"skip-config",
|
|
5031
|
+
"do not copy the config (aspects-config, env, etc) to the new component. helpful when it fails during aspect loading"
|
|
5032
|
+
],
|
|
5033
|
+
[
|
|
5034
|
+
"",
|
|
5035
|
+
"preserve",
|
|
5036
|
+
"avoid refactoring file and variable/class names according to the new component name"
|
|
5037
|
+
],
|
|
5038
|
+
[
|
|
5039
|
+
"",
|
|
5040
|
+
"no-link",
|
|
5041
|
+
"avoid saving a reference to the original component"
|
|
5042
|
+
],
|
|
5043
|
+
[
|
|
5044
|
+
"",
|
|
5045
|
+
"ast",
|
|
5046
|
+
"use ast to transform files instead of regex"
|
|
5047
|
+
]
|
|
5048
|
+
],
|
|
5049
|
+
"description": "create a new component forked from an existing one (copies source files and configs)",
|
|
5050
|
+
"extendedDescription": "",
|
|
5051
|
+
"group": "collaborate",
|
|
5052
|
+
"private": false,
|
|
5053
|
+
"remoteOp": true,
|
|
5054
|
+
"skipWorkspace": true,
|
|
5055
|
+
"arguments": [
|
|
5056
|
+
{
|
|
5057
|
+
"name": "source-component-id",
|
|
5058
|
+
"description": "the component id of the source component"
|
|
5059
|
+
},
|
|
5060
|
+
{
|
|
5061
|
+
"name": "target-component-name",
|
|
5062
|
+
"description": "the name for the new component (component name without scope, e.g. name/spaces/my-button). to set a different scope, use the '--scope' flag"
|
|
5063
|
+
}
|
|
5064
|
+
]
|
|
5065
|
+
},
|
|
5151
5066
|
{
|
|
5152
5067
|
"name": "schema <pattern>",
|
|
5153
5068
|
"alias": "",
|