@teambit/harmony.content.cli-reference 1.95.69 → 1.95.71

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.
@@ -1267,6 +1267,11 @@
1267
1267
  "remote",
1268
1268
  "remove a component completely from a remote scope (Careful! this is a permanent change. prefer --soft and tag+export)"
1269
1269
  ],
1270
+ [
1271
+ "",
1272
+ "from-lane",
1273
+ "revert to main if exists on currently checked out lane, otherwise, remove it"
1274
+ ],
1270
1275
  [
1271
1276
  "t",
1272
1277
  "track",
@@ -1306,6 +1311,93 @@
1306
1311
  }
1307
1312
  ]
1308
1313
  },
1314
+ {
1315
+ "name": "import [component-patterns...]",
1316
+ "alias": "",
1317
+ "options": [
1318
+ [
1319
+ "p",
1320
+ "path <path>",
1321
+ "import components into a specific directory (a relative path in the workspace)"
1322
+ ],
1323
+ [
1324
+ "o",
1325
+ "objects",
1326
+ "import components objects to the local scope without checkout (without writing them to the file system). This is a default behavior for import with no id argument"
1327
+ ],
1328
+ [
1329
+ "d",
1330
+ "display-dependencies",
1331
+ "display the imported dependencies"
1332
+ ],
1333
+ [
1334
+ "O",
1335
+ "override",
1336
+ "override local changes"
1337
+ ],
1338
+ [
1339
+ "v",
1340
+ "verbose",
1341
+ "show verbose output for inspection"
1342
+ ],
1343
+ [
1344
+ "j",
1345
+ "json",
1346
+ "return the output as JSON"
1347
+ ],
1348
+ [
1349
+ "",
1350
+ "conf",
1351
+ "write the configuration file (component.json) of the component"
1352
+ ],
1353
+ [
1354
+ "",
1355
+ "skip-npm-install",
1356
+ "DEPRECATED. use \"--skip-dependency-installation\" instead"
1357
+ ],
1358
+ [
1359
+ "",
1360
+ "skip-dependency-installation",
1361
+ "do not install packages of the imported components"
1362
+ ],
1363
+ [
1364
+ "m",
1365
+ "merge [strategy]",
1366
+ "merge local changes with the imported version. strategy should be \"theirs\", \"ours\" or \"manual\""
1367
+ ],
1368
+ [
1369
+ "",
1370
+ "dependencies",
1371
+ "EXPERIMENTAL. import all dependencies and write them to the workspace"
1372
+ ],
1373
+ [
1374
+ "",
1375
+ "dependents",
1376
+ "EXPERIMENTAL. import the components' dependents. this enables changes to propagate from (modified) components to their dependents"
1377
+ ],
1378
+ [
1379
+ "",
1380
+ "save-in-lane",
1381
+ "EXPERIMENTAL. when checked out to a lane and the component is not on the remote-lane, save it in the lane (default to save on main)"
1382
+ ],
1383
+ [
1384
+ "",
1385
+ "all-history",
1386
+ "relevant for fetching all components objects. avoid optimizations, fetch all history versions, always"
1387
+ ]
1388
+ ],
1389
+ "description": "import components from their remote scopes to the local workspace",
1390
+ "extendedDescription": "https://bit.dev/docs/components/importing-components\nyou can use a pattern for multiple ids, such as bit import \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1391
+ "group": "collaborate",
1392
+ "private": false,
1393
+ "remoteOp": true,
1394
+ "arguments": [
1395
+ {
1396
+ "name": "component-patterns...",
1397
+ "description": "component IDs or component patterns (separated by space). Use patterns to import groups of components using a common scope or namespace. E.g., \"utils/*\" (wrap with double quotes)"
1398
+ }
1399
+ ]
1400
+ },
1309
1401
  {
1310
1402
  "name": "install [packages...]",
1311
1403
  "alias": "in",
@@ -2093,6 +2185,11 @@
2093
2185
  "no-snap",
2094
2186
  "do not auto snap in case the merge completed without conflicts"
2095
2187
  ],
2188
+ [
2189
+ "",
2190
+ "tag",
2191
+ "tag all lane components after merging into main (also tag-merge in case of snap-merge)"
2192
+ ],
2096
2193
  [
2097
2194
  "",
2098
2195
  "build",
@@ -2145,7 +2242,7 @@
2145
2242
  ]
2146
2243
  ],
2147
2244
  "description": "merge a local or a remote lane",
2148
- "extendedDescription": "if the <lane> exists locally, it will be merged from the local lane.\notherwise, it will fetch the lane from the remote and merge it.\nin case the <lane> exists locally but you want to merge the remote version of it, use --remote flag",
2245
+ "extendedDescription": "if the <lane> exists locally, it will be merged from the local lane.\notherwise, it will fetch the lane from the remote and merge it.\nin case the <lane> exists locally but you want to merge the remote version of it, use --remote flag.\nwhen the current and the other lanes are diverged in history and the files could be merged with no conflicts,\nit will snap-merge these components to complete the merge. use \"no-snap\" to opt-out, or \"tag\" to tag instead",
2149
2246
  "private": true,
2150
2247
  "remoteOp": true,
2151
2248
  "arguments": [
@@ -2329,93 +2426,6 @@
2329
2426
  "remoteOp": true,
2330
2427
  "skipWorkspace": true
2331
2428
  },
2332
- {
2333
- "name": "import [component-patterns...]",
2334
- "alias": "",
2335
- "options": [
2336
- [
2337
- "p",
2338
- "path <path>",
2339
- "import components into a specific directory (a relative path in the workspace)"
2340
- ],
2341
- [
2342
- "o",
2343
- "objects",
2344
- "import components objects to the local scope without checkout (without writing them to the file system). This is a default behavior for import with no id argument"
2345
- ],
2346
- [
2347
- "d",
2348
- "display-dependencies",
2349
- "display the imported dependencies"
2350
- ],
2351
- [
2352
- "O",
2353
- "override",
2354
- "override local changes"
2355
- ],
2356
- [
2357
- "v",
2358
- "verbose",
2359
- "show verbose output for inspection"
2360
- ],
2361
- [
2362
- "j",
2363
- "json",
2364
- "return the output as JSON"
2365
- ],
2366
- [
2367
- "",
2368
- "conf",
2369
- "write the configuration file (component.json) of the component"
2370
- ],
2371
- [
2372
- "",
2373
- "skip-npm-install",
2374
- "DEPRECATED. use \"--skip-dependency-installation\" instead"
2375
- ],
2376
- [
2377
- "",
2378
- "skip-dependency-installation",
2379
- "do not install packages of the imported components"
2380
- ],
2381
- [
2382
- "m",
2383
- "merge [strategy]",
2384
- "merge local changes with the imported version. strategy should be \"theirs\", \"ours\" or \"manual\""
2385
- ],
2386
- [
2387
- "",
2388
- "dependencies",
2389
- "EXPERIMENTAL. import all dependencies and write them to the workspace"
2390
- ],
2391
- [
2392
- "",
2393
- "dependents",
2394
- "EXPERIMENTAL. import the components' dependents. this enables changes to propagate from (modified) components to their dependents"
2395
- ],
2396
- [
2397
- "",
2398
- "save-in-lane",
2399
- "EXPERIMENTAL. when checked out to a lane and the component is not on the remote-lane, save it in the lane (default to save on main)"
2400
- ],
2401
- [
2402
- "",
2403
- "all-history",
2404
- "relevant for fetching all components objects. avoid optimizations, fetch all history versions, always"
2405
- ]
2406
- ],
2407
- "description": "import components from their remote scopes to the local workspace",
2408
- "extendedDescription": "https://bit.dev/docs/components/importing-components\nyou can use a pattern for multiple ids, such as bit import \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
2409
- "group": "collaborate",
2410
- "private": false,
2411
- "remoteOp": true,
2412
- "arguments": [
2413
- {
2414
- "name": "component-patterns...",
2415
- "description": "component IDs or component patterns (separated by space). Use patterns to import groups of components using a common scope or namespace. E.g., \"utils/*\" (wrap with double quotes)"
2416
- }
2417
- ]
2418
- },
2419
2429
  {
2420
2430
  "name": "create <template-name> <component-names...>",
2421
2431
  "alias": "",
package/cli-reference.mdx CHANGED
@@ -968,6 +968,7 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
968
968
  | ---------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------------- |
969
969
  | `--soft` | | EXPERIMENTAL. mark the component as deleted. after tag/snap and export the remote will be updated |
970
970
  | `--remote` | `-r` | remove a component completely from a remote scope (Careful! this is a permanent change. prefer --soft and tag+export) |
971
+ | `--from-lane` | | revert to main if exists on currently checked out lane, otherwise, remove it |
971
972
  | `--track` | `-t` | keep tracking component in .bitmap (default = false), helps transform a tagged-component to new |
972
973
  | `--delete-files` | `-d` | DEPRECATED (this is now the default). delete local component files |
973
974
  | `--keep-files` | | keep component files (just untrack the component) |
@@ -1267,6 +1267,11 @@
1267
1267
  "remote",
1268
1268
  "remove a component completely from a remote scope (Careful! this is a permanent change. prefer --soft and tag+export)"
1269
1269
  ],
1270
+ [
1271
+ "",
1272
+ "from-lane",
1273
+ "revert to main if exists on currently checked out lane, otherwise, remove it"
1274
+ ],
1270
1275
  [
1271
1276
  "t",
1272
1277
  "track",
@@ -1306,6 +1311,93 @@
1306
1311
  }
1307
1312
  ]
1308
1313
  },
1314
+ {
1315
+ "name": "import [component-patterns...]",
1316
+ "alias": "",
1317
+ "options": [
1318
+ [
1319
+ "p",
1320
+ "path <path>",
1321
+ "import components into a specific directory (a relative path in the workspace)"
1322
+ ],
1323
+ [
1324
+ "o",
1325
+ "objects",
1326
+ "import components objects to the local scope without checkout (without writing them to the file system). This is a default behavior for import with no id argument"
1327
+ ],
1328
+ [
1329
+ "d",
1330
+ "display-dependencies",
1331
+ "display the imported dependencies"
1332
+ ],
1333
+ [
1334
+ "O",
1335
+ "override",
1336
+ "override local changes"
1337
+ ],
1338
+ [
1339
+ "v",
1340
+ "verbose",
1341
+ "show verbose output for inspection"
1342
+ ],
1343
+ [
1344
+ "j",
1345
+ "json",
1346
+ "return the output as JSON"
1347
+ ],
1348
+ [
1349
+ "",
1350
+ "conf",
1351
+ "write the configuration file (component.json) of the component"
1352
+ ],
1353
+ [
1354
+ "",
1355
+ "skip-npm-install",
1356
+ "DEPRECATED. use \"--skip-dependency-installation\" instead"
1357
+ ],
1358
+ [
1359
+ "",
1360
+ "skip-dependency-installation",
1361
+ "do not install packages of the imported components"
1362
+ ],
1363
+ [
1364
+ "m",
1365
+ "merge [strategy]",
1366
+ "merge local changes with the imported version. strategy should be \"theirs\", \"ours\" or \"manual\""
1367
+ ],
1368
+ [
1369
+ "",
1370
+ "dependencies",
1371
+ "EXPERIMENTAL. import all dependencies and write them to the workspace"
1372
+ ],
1373
+ [
1374
+ "",
1375
+ "dependents",
1376
+ "EXPERIMENTAL. import the components' dependents. this enables changes to propagate from (modified) components to their dependents"
1377
+ ],
1378
+ [
1379
+ "",
1380
+ "save-in-lane",
1381
+ "EXPERIMENTAL. when checked out to a lane and the component is not on the remote-lane, save it in the lane (default to save on main)"
1382
+ ],
1383
+ [
1384
+ "",
1385
+ "all-history",
1386
+ "relevant for fetching all components objects. avoid optimizations, fetch all history versions, always"
1387
+ ]
1388
+ ],
1389
+ "description": "import components from their remote scopes to the local workspace",
1390
+ "extendedDescription": "https://bit.dev/docs/components/importing-components\nyou can use a pattern for multiple ids, such as bit import \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
1391
+ "group": "collaborate",
1392
+ "private": false,
1393
+ "remoteOp": true,
1394
+ "arguments": [
1395
+ {
1396
+ "name": "component-patterns...",
1397
+ "description": "component IDs or component patterns (separated by space). Use patterns to import groups of components using a common scope or namespace. E.g., \"utils/*\" (wrap with double quotes)"
1398
+ }
1399
+ ]
1400
+ },
1309
1401
  {
1310
1402
  "name": "install [packages...]",
1311
1403
  "alias": "in",
@@ -2093,6 +2185,11 @@
2093
2185
  "no-snap",
2094
2186
  "do not auto snap in case the merge completed without conflicts"
2095
2187
  ],
2188
+ [
2189
+ "",
2190
+ "tag",
2191
+ "tag all lane components after merging into main (also tag-merge in case of snap-merge)"
2192
+ ],
2096
2193
  [
2097
2194
  "",
2098
2195
  "build",
@@ -2145,7 +2242,7 @@
2145
2242
  ]
2146
2243
  ],
2147
2244
  "description": "merge a local or a remote lane",
2148
- "extendedDescription": "if the <lane> exists locally, it will be merged from the local lane.\notherwise, it will fetch the lane from the remote and merge it.\nin case the <lane> exists locally but you want to merge the remote version of it, use --remote flag",
2245
+ "extendedDescription": "if the <lane> exists locally, it will be merged from the local lane.\notherwise, it will fetch the lane from the remote and merge it.\nin case the <lane> exists locally but you want to merge the remote version of it, use --remote flag.\nwhen the current and the other lanes are diverged in history and the files could be merged with no conflicts,\nit will snap-merge these components to complete the merge. use \"no-snap\" to opt-out, or \"tag\" to tag instead",
2149
2246
  "private": true,
2150
2247
  "remoteOp": true,
2151
2248
  "arguments": [
@@ -2329,93 +2426,6 @@
2329
2426
  "remoteOp": true,
2330
2427
  "skipWorkspace": true
2331
2428
  },
2332
- {
2333
- "name": "import [component-patterns...]",
2334
- "alias": "",
2335
- "options": [
2336
- [
2337
- "p",
2338
- "path <path>",
2339
- "import components into a specific directory (a relative path in the workspace)"
2340
- ],
2341
- [
2342
- "o",
2343
- "objects",
2344
- "import components objects to the local scope without checkout (without writing them to the file system). This is a default behavior for import with no id argument"
2345
- ],
2346
- [
2347
- "d",
2348
- "display-dependencies",
2349
- "display the imported dependencies"
2350
- ],
2351
- [
2352
- "O",
2353
- "override",
2354
- "override local changes"
2355
- ],
2356
- [
2357
- "v",
2358
- "verbose",
2359
- "show verbose output for inspection"
2360
- ],
2361
- [
2362
- "j",
2363
- "json",
2364
- "return the output as JSON"
2365
- ],
2366
- [
2367
- "",
2368
- "conf",
2369
- "write the configuration file (component.json) of the component"
2370
- ],
2371
- [
2372
- "",
2373
- "skip-npm-install",
2374
- "DEPRECATED. use \"--skip-dependency-installation\" instead"
2375
- ],
2376
- [
2377
- "",
2378
- "skip-dependency-installation",
2379
- "do not install packages of the imported components"
2380
- ],
2381
- [
2382
- "m",
2383
- "merge [strategy]",
2384
- "merge local changes with the imported version. strategy should be \"theirs\", \"ours\" or \"manual\""
2385
- ],
2386
- [
2387
- "",
2388
- "dependencies",
2389
- "EXPERIMENTAL. import all dependencies and write them to the workspace"
2390
- ],
2391
- [
2392
- "",
2393
- "dependents",
2394
- "EXPERIMENTAL. import the components' dependents. this enables changes to propagate from (modified) components to their dependents"
2395
- ],
2396
- [
2397
- "",
2398
- "save-in-lane",
2399
- "EXPERIMENTAL. when checked out to a lane and the component is not on the remote-lane, save it in the lane (default to save on main)"
2400
- ],
2401
- [
2402
- "",
2403
- "all-history",
2404
- "relevant for fetching all components objects. avoid optimizations, fetch all history versions, always"
2405
- ]
2406
- ],
2407
- "description": "import components from their remote scopes to the local workspace",
2408
- "extendedDescription": "https://bit.dev/docs/components/importing-components\nyou can use a pattern for multiple ids, such as bit import \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
2409
- "group": "collaborate",
2410
- "private": false,
2411
- "remoteOp": true,
2412
- "arguments": [
2413
- {
2414
- "name": "component-patterns...",
2415
- "description": "component IDs or component patterns (separated by space). Use patterns to import groups of components using a common scope or namespace. E.g., \"utils/*\" (wrap with double quotes)"
2416
- }
2417
- ]
2418
- },
2419
2429
  {
2420
2430
  "name": "create <template-name> <component-names...>",
2421
2431
  "alias": "",
@@ -4346,6 +4346,19 @@ function MDXContent(_ref) {
4346
4346
  "align": null
4347
4347
  }, (0, _react2.mdx)("inlineCode", {
4348
4348
  parentName: "td"
4349
+ }, "--from-lane")), (0, _react2.mdx)("td", {
4350
+ parentName: "tr",
4351
+ "align": "center"
4352
+ }), (0, _react2.mdx)("td", {
4353
+ parentName: "tr",
4354
+ "align": null
4355
+ }, "revert to main if exists on currently checked out lane, otherwise, remove it")), (0, _react2.mdx)("tr", {
4356
+ parentName: "tbody"
4357
+ }, (0, _react2.mdx)("td", {
4358
+ parentName: "tr",
4359
+ "align": null
4360
+ }, (0, _react2.mdx)("inlineCode", {
4361
+ parentName: "td"
4349
4362
  }, "--track")), (0, _react2.mdx)("td", {
4350
4363
  parentName: "tr",
4351
4364
  "align": "center"