@teambit/harmony.content.cli-reference 1.95.32 → 1.95.35

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.
@@ -222,6 +222,11 @@
222
222
  "name": "dependencies <id>",
223
223
  "alias": "",
224
224
  "options": [
225
+ [
226
+ "t",
227
+ "tree",
228
+ "render dependencies as a tree, similar to \"npm ls\""
229
+ ],
225
230
  [
226
231
  "d",
227
232
  "debug",
@@ -472,7 +477,7 @@
472
477
  [
473
478
  "t",
474
479
  "tests <file>/\"<file>,<file>\"",
475
- "specify test files to track. use quotation marks to list files or use a glob pattern"
480
+ "LEGACY ONLY. specify test files to track. use quotation marks to list files or use a glob pattern"
476
481
  ],
477
482
  [
478
483
  "n",
@@ -482,7 +487,7 @@
482
487
  [
483
488
  "e",
484
489
  "exclude <file>/\"<file>,<file>\"",
485
- "exclude file from being tracked. use quotation marks to list files or use a glob pattern"
490
+ "LEGACY ONLY. exclude file from being tracked. use quotation marks to list files or use a glob pattern"
486
491
  ],
487
492
  [
488
493
  "o",
@@ -516,7 +521,7 @@
516
521
  "private": true
517
522
  },
518
523
  {
519
- "name": "untag [id] [version]",
524
+ "name": "untag [component-name] [component-version]",
520
525
  "alias": "",
521
526
  "options": [
522
527
  [
@@ -535,19 +540,19 @@
535
540
  "revert the tag even if used as a dependency. WARNING: components that depend on this tag will corrupt"
536
541
  ]
537
542
  ],
538
- "description": "revert versions tagged for component(s)",
543
+ "description": "revert tagged or snapped versions for component(s)",
539
544
  "extendedDescription": "https://bit.dev/docs/components/tags#undoing-a-tag\nyou can use a pattern for multiple ids, such as bit untag \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
540
545
  "group": "development",
541
546
  "private": false
542
547
  },
543
548
  {
544
- "name": "move <existing-dir> <new-dir>",
549
+ "name": "move <current-component-dir> <new-component-dir>",
545
550
  "alias": "mv",
546
551
  "options": [
547
552
  [
548
553
  "c",
549
554
  "component",
550
- "move component files that are spread over multiple directories to one directory. synopsis: `move <component-id> <directory>`"
555
+ "LEGACY ONLY. move component files that are spread over multiple directories to one directory. synopsis: `move <component-id> <directory>`"
551
556
  ]
552
557
  ],
553
558
  "description": "move a component to a different filesystem path",
@@ -556,7 +561,7 @@
556
561
  "private": false
557
562
  },
558
563
  {
559
- "name": "remove <ids...>",
564
+ "name": "remove <component-ids...>",
560
565
  "alias": "rm",
561
566
  "options": [
562
567
  [
@@ -567,7 +572,7 @@
567
572
  [
568
573
  "t",
569
574
  "track",
570
- "keep tracking component (default = false)"
575
+ "keep tracking component in .bitmap (default = false), helps transform a tagged-component to new"
571
576
  ],
572
577
  [
573
578
  "d",
@@ -590,7 +595,7 @@
590
595
  "skip confirmation"
591
596
  ]
592
597
  ],
593
- "description": "remove component(s) from your workspace, or a remote scope",
598
+ "description": "remove component(s) from the workspace, or a remote scope",
594
599
  "extendedDescription": "https://bit.dev/docs/components/removing-components\nyou can use a pattern for multiple ids, such as bit remove \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
595
600
  "group": "collaborate",
596
601
  "private": false,
@@ -721,7 +726,7 @@
721
726
  "show tables instead of plain text for dependencies diff"
722
727
  ]
723
728
  ],
724
- "description": "show diff between components files",
729
+ "description": "show the diff between the components' source files and config",
725
730
  "extendedDescription": "bit diff => compare all modified components to their model version\n bit diff [ids...] => compare the specified components against their modified states\n bit diff [id] [version] => compare the specified version to used or modified files\n bit diff [id] [version] [to_version] => compare the specified version files to to_version files\n you can use a pattern for multiple ids, such as bit diff \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
726
731
  "group": "development",
727
732
  "private": false
@@ -752,11 +757,11 @@
752
757
  ],
753
758
  [
754
759
  "",
755
- "machine-name <string>",
760
+ "machine-name <name>",
756
761
  "specify machine-name to pair with the token (useful for CI to avoid accidentally revoke the token)"
757
762
  ]
758
763
  ],
759
- "description": "log the CLI into Bit Cloud",
764
+ "description": "log in to Bit cloud",
760
765
  "extendedDescription": "",
761
766
  "group": "general",
762
767
  "private": false,
@@ -1265,7 +1270,13 @@
1265
1270
  "description": "installs workspace dependencies",
1266
1271
  "extendedDescription": "when no package is specified, all workspace dependencies are installed and all workspace components are imported.",
1267
1272
  "group": "development",
1268
- "private": false
1273
+ "private": false,
1274
+ "arguments": [
1275
+ {
1276
+ "name": "packages...",
1277
+ "description": "a list of packages to install (separated by spaces)"
1278
+ }
1279
+ ]
1269
1280
  },
1270
1281
  {
1271
1282
  "name": "update",
@@ -1316,7 +1327,7 @@
1316
1327
  "alias": "",
1317
1328
  "options": [],
1318
1329
  "description": "manage capsules",
1319
- "extendedDescription": "a capsule is a directory contains the component code, isolated from the workspace.\nnormally, capsules are created during the build process, the component files are copied and the packages are installed\nvia the configured package-manager. the purpose is to compile/test them in isolation to make sure they will work for\nother users after publishing/exporting them.",
1330
+ "extendedDescription": "a capsule is a directory containing the component code, isolated from the workspace.\nnormally, capsules are created during the build process, the component files are copied and the packages are installed\nvia the configured package-manager. the purpose is to compile/test them in isolation to make sure they will work for\nother users after publishing/exporting them.",
1320
1331
  "group": "capsules",
1321
1332
  "private": false,
1322
1333
  "commands": [
@@ -1330,13 +1341,13 @@
1330
1341
  "json format"
1331
1342
  ]
1332
1343
  ],
1333
- "description": "list all capsules",
1344
+ "description": "list the capsules generated for this workspace",
1334
1345
  "extendedDescription": "",
1335
1346
  "group": "capsules",
1336
1347
  "private": false
1337
1348
  },
1338
1349
  {
1339
- "name": "create [componentIds...]",
1350
+ "name": "create [component-id...]",
1340
1351
  "alias": "",
1341
1352
  "options": [
1342
1353
  [
@@ -1380,7 +1391,7 @@
1380
1391
  "npm, yarn or pnpm, default to npm"
1381
1392
  ]
1382
1393
  ],
1383
- "description": "create capsules",
1394
+ "description": "create capsules for components",
1384
1395
  "extendedDescription": "",
1385
1396
  "group": "capsules",
1386
1397
  "private": false
@@ -1414,7 +1425,7 @@
1414
1425
  [
1415
1426
  "v",
1416
1427
  "verbose",
1417
- "showing npm verbose output for inspection and prints stack trace"
1428
+ "show npm verbose output for inspection and print the stack trace"
1418
1429
  ],
1419
1430
  [
1420
1431
  "",
@@ -1427,13 +1438,13 @@
1427
1438
  "EXPERIMENTAL. show errors/warnings for types. options are [file, project] to investigate only changed file or entire project. defaults to project"
1428
1439
  ]
1429
1440
  ],
1430
- "description": "watch a set of components",
1441
+ "description": "automatically recompile modified components (on save)",
1431
1442
  "extendedDescription": "",
1432
1443
  "group": "development",
1433
1444
  "private": false
1434
1445
  },
1435
1446
  {
1436
- "name": "link [ids...]",
1447
+ "name": "link [component-names...]",
1437
1448
  "alias": "",
1438
1449
  "options": [
1439
1450
  [
@@ -1462,10 +1473,16 @@
1462
1473
  "skip fetch missing objects from remotes before linking"
1463
1474
  ]
1464
1475
  ],
1465
- "description": "link components and core aspects",
1476
+ "description": "create links in the node_modules directory, to core aspects and to components in the workspace",
1466
1477
  "extendedDescription": "https://bit.dev/docs/workspace/component-links",
1467
1478
  "group": "development",
1468
- "private": false
1479
+ "private": false,
1480
+ "arguments": [
1481
+ {
1482
+ "name": "component-names...",
1483
+ "description": "names or IDs of the components to link"
1484
+ }
1485
+ ]
1469
1486
  },
1470
1487
  {
1471
1488
  "name": "pattern <pattern>",
@@ -1640,6 +1657,16 @@
1640
1657
  "extendedDescription": "",
1641
1658
  "group": "development",
1642
1659
  "private": false,
1660
+ "arguments": [
1661
+ {
1662
+ "name": "template-name",
1663
+ "description": "the template for generating the component \n(run 'bit templates' for a list of available templates)"
1664
+ },
1665
+ {
1666
+ "name": "component-names...",
1667
+ "description": "a list of component names to generate"
1668
+ }
1669
+ ],
1643
1670
  "examples": [
1644
1671
  {
1645
1672
  "cmd": "bit create react ui/button",
@@ -1776,7 +1803,7 @@
1776
1803
  ]
1777
1804
  },
1778
1805
  {
1779
- "name": "artifacts <pattern...>",
1806
+ "name": "artifacts <component-pattern>",
1780
1807
  "alias": "",
1781
1808
  "options": [
1782
1809
  [
@@ -1803,7 +1830,13 @@
1803
1830
  "description": "EXPERIMENTAL. list and download components artifacts",
1804
1831
  "extendedDescription": "artifacts are created on isolated capsules during tag or snap commands.\nexample of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester\nand a package.tgz file generated by pkg aspect.\n",
1805
1832
  "group": "development",
1806
- "private": false
1833
+ "private": false,
1834
+ "arguments": [
1835
+ {
1836
+ "name": "component-pattern",
1837
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
1838
+ }
1839
+ ]
1807
1840
  },
1808
1841
  {
1809
1842
  "name": "pack <componentId> [scopePath]",
@@ -1921,7 +1954,7 @@
1921
1954
  "private": true
1922
1955
  },
1923
1956
  {
1924
- "name": "tag [patterns...]",
1957
+ "name": "tag [component-patterns...]",
1925
1958
  "alias": "t",
1926
1959
  "options": [
1927
1960
  [
@@ -1971,13 +2004,13 @@
1971
2004
  ],
1972
2005
  [
1973
2006
  "",
1974
- "snapped",
1975
- "EXPERIMENTAL. tag components that their head is a snap (not a tag)"
2007
+ "pre-release [identifier]",
2008
+ "syntactic sugar for \"--increment prerelease\" and `--prerelease-id <identifier>`"
1976
2009
  ],
1977
2010
  [
1978
2011
  "",
1979
- "pre-release [identifier]",
1980
- "DEPRECATED. use \"-l prerelease\" (and --prerelease-id) instead"
2012
+ "snapped",
2013
+ "EXPERIMENTAL. tag components that their head is a snap (not a tag)"
1981
2014
  ],
1982
2015
  [
1983
2016
  "",
@@ -2057,8 +2090,8 @@
2057
2090
  "remoteOp": true,
2058
2091
  "arguments": [
2059
2092
  {
2060
- "name": "patterns...",
2061
- "description": "a list of patterns (separated by space). run \"bit pattern --help\" to get more data about patterns. By default, all modified are tagged."
2093
+ "name": "component-patterns...",
2094
+ "description": "a list of component names, IDs or patterns (separated by space). run \"bit pattern --help\" to get more data about patterns. By default, all modified are tagged."
2062
2095
  }
2063
2096
  ],
2064
2097
  "examples": [
@@ -2424,12 +2457,18 @@
2424
2457
  ]
2425
2458
  ],
2426
2459
  "description": "list all aspects configured on component(s)",
2427
- "extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit aspect list \"org.scope/utils/**\"`.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
2460
+ "extendedDescription": "",
2428
2461
  "group": "development",
2429
- "private": false
2462
+ "private": false,
2463
+ "arguments": [
2464
+ {
2465
+ "name": "pattern",
2466
+ "description": "component name, component id, or component pattern. use component pattern to select multiple components. \nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
2467
+ }
2468
+ ]
2430
2469
  },
2431
2470
  {
2432
- "name": "get <component-id>",
2471
+ "name": "get <component-name>",
2433
2472
  "alias": "",
2434
2473
  "options": [
2435
2474
  [
@@ -2443,37 +2482,87 @@
2443
2482
  "format as json"
2444
2483
  ]
2445
2484
  ],
2446
- "description": "show aspects' data and configuration of the given component",
2485
+ "description": "list the aspects set on a component, as well as their config and data",
2447
2486
  "extendedDescription": "",
2448
2487
  "group": "development",
2449
- "private": false
2488
+ "private": false,
2489
+ "arguments": [
2490
+ {
2491
+ "name": "component-name",
2492
+ "description": "the component name or component id"
2493
+ }
2494
+ ]
2450
2495
  },
2451
2496
  {
2452
2497
  "name": "set <pattern> <aspect-id> [config]",
2453
2498
  "alias": "",
2454
2499
  "options": [],
2455
- "description": "set an aspect to component(s) with optional config.",
2456
- "extendedDescription": "enter the config as stringified JSON (e.g. '{\"foo\":\"bar\"}' ).\nif no config entered, the aspect will be set with empty config ({}).\nyou can use a `<pattern>` for multiple component ids, such as `bit aspect set \"org.scope/utils/**\"`.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
2500
+ "description": "set components with an aspect to extend their development tools, metadata and (possibly) artifacts",
2501
+ "extendedDescription": "",
2457
2502
  "group": "development",
2458
- "private": false
2503
+ "private": false,
2504
+ "arguments": [
2505
+ {
2506
+ "name": "pattern",
2507
+ "description": "the components to extend. use component name, component id, or component pattern. use component pattern to select multiple components. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\". wrap the pattern with quotes"
2508
+ },
2509
+ {
2510
+ "name": "aspect-id",
2511
+ "description": "the aspect's component id"
2512
+ },
2513
+ {
2514
+ "name": "config",
2515
+ "description": "the aspect config. enter the config as a stringified JSON (e.g. '{\"foo\":\"bar\"}' ). when no config is provided, an aspect is set with an empty config ({})."
2516
+ }
2517
+ ]
2459
2518
  },
2460
2519
  {
2461
2520
  "name": "unset <pattern> <aspect-id>",
2462
2521
  "alias": "",
2463
2522
  "options": [],
2464
2523
  "description": "unset an aspect from component(s).",
2465
- "extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit aspect unset \"org.scope/utils/**\"`.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
2524
+ "extendedDescription": "",
2466
2525
  "group": "development",
2467
- "private": false
2526
+ "private": false,
2527
+ "arguments": [
2528
+ {
2529
+ "name": "pattern",
2530
+ "description": "the components to target. use component name, component id, or component pattern. use component pattern to select multiple components. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\". wrap the pattern with quotes"
2531
+ },
2532
+ {
2533
+ "name": "aspect-id",
2534
+ "description": "the aspect's component id"
2535
+ }
2536
+ ]
2468
2537
  },
2469
2538
  {
2470
2539
  "name": "update <aspect-id> [pattern]",
2471
2540
  "alias": "",
2472
2541
  "options": [],
2473
2542
  "description": "update a version of an aspect",
2474
- "extendedDescription": "default to all components using the aspect, unless \"pattern\" is provided.\nyou can use a `<pattern>` for multiple component ids, such as `bit aspect update <aspect-id> \"org.scope/utils/**\"`.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n\nexamples:\n\"bit aspect update scope.org/aspect '**/ui/**'\" - update \"ui\" components that use scope.org/aspect to the latest version\n\"bit aspect update scope.org/aspect@2.0.0\" - updates all components using scope.org/aspect to version 2.0.0.",
2543
+ "extendedDescription": "",
2475
2544
  "group": "development",
2476
- "private": false
2545
+ "private": false,
2546
+ "arguments": [
2547
+ {
2548
+ "name": "aspect-id",
2549
+ "description": "the aspect's component id"
2550
+ },
2551
+ {
2552
+ "name": "pattern",
2553
+ "description": "the components to update (defaults to all components). use component name, component id, or component pattern. use component pattern to select multiple components. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\". wrap the pattern with quotes"
2554
+ }
2555
+ ],
2556
+ "examples": [
2557
+ {
2558
+ "cmd": "update scope.org/aspect '**/ui/**'",
2559
+ "description": "update \"ui\" components that use scope.org/aspect to use its latest version"
2560
+ },
2561
+ {
2562
+ "cmd": "bit aspect update scope.org/aspect@2.0.0",
2563
+ "description": "update all components that use scope.org/aspect to version 2.0.0 (of this aspect)."
2564
+ }
2565
+ ]
2477
2566
  }
2478
2567
  ]
2479
2568
  },
@@ -2555,31 +2644,41 @@
2555
2644
  "skipWorkspace": true
2556
2645
  },
2557
2646
  {
2558
- "name": "rename <source-name> <target-name>",
2647
+ "name": "rename <current-name> <new-name>",
2559
2648
  "alias": "",
2560
2649
  "options": [
2561
2650
  [
2562
2651
  "s",
2563
- "scope <string>",
2652
+ "scope <scope-name>",
2564
2653
  "default scope for the newly created component"
2565
2654
  ],
2566
2655
  [
2567
2656
  "p",
2568
- "path <string>",
2657
+ "path <relative-path>",
2569
2658
  "relative path in the workspace. by default the path is `<scope>/<namespace>/<name>`"
2570
2659
  ],
2571
2660
  [
2572
2661
  "r",
2573
2662
  "refactor",
2574
- "change the source code of all components using this component with the new package-name"
2663
+ "update the import/require statements in all dependent components (in the same workspace)"
2575
2664
  ]
2576
2665
  ],
2577
- "description": "EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the source-component",
2578
- "extendedDescription": "the `<target-name>` should include the component-name only, without the scope-name.\nto assign a default-scope to this component, please use \"--scope\" flag",
2666
+ "description": "EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the original component",
2667
+ "extendedDescription": "",
2579
2668
  "group": "collaborate",
2580
2669
  "private": false,
2581
2670
  "remoteOp": true,
2582
- "skipWorkspace": true
2671
+ "skipWorkspace": true,
2672
+ "arguments": [
2673
+ {
2674
+ "name": "current-name",
2675
+ "description": "the current component name (without its scope name)"
2676
+ },
2677
+ {
2678
+ "name": "new-name",
2679
+ "description": "the new component name (without its scope name)"
2680
+ }
2681
+ ]
2583
2682
  },
2584
2683
  {
2585
2684
  "name": "fork <source-component-id> [target-component-name]",
@@ -2853,7 +2952,13 @@
2853
2952
  "description": "remove lanes",
2854
2953
  "extendedDescription": "",
2855
2954
  "group": "ungrouped",
2856
- "private": true
2955
+ "private": true,
2956
+ "arguments": [
2957
+ {
2958
+ "name": "lanes...",
2959
+ "description": "A list of lane names, separated by spaces"
2960
+ }
2961
+ ]
2857
2962
  },
2858
2963
  {
2859
2964
  "name": "change-scope <lane-name> <remote-scope-name>",
@@ -2901,7 +3006,17 @@
2901
3006
  "extendedDescription": "",
2902
3007
  "group": "ungrouped",
2903
3008
  "private": true,
2904
- "skipWorkspace": false
3009
+ "skipWorkspace": false,
3010
+ "arguments": [
3011
+ {
3012
+ "name": "component-id",
3013
+ "description": "the component name or id of the component to use as the lane's readme"
3014
+ },
3015
+ {
3016
+ "name": "lane-name",
3017
+ "description": "the lane to attach the readme to (defaults to the current lane)"
3018
+ }
3019
+ ]
2905
3020
  },
2906
3021
  {
2907
3022
  "name": "remove-readme [laneName]",
@@ -2926,7 +3041,13 @@
2926
3041
  "description": "import a remote lane to your workspace",
2927
3042
  "extendedDescription": "",
2928
3043
  "group": "ungrouped",
2929
- "private": true
3044
+ "private": true,
3045
+ "arguments": [
3046
+ {
3047
+ "name": "lane",
3048
+ "description": "the remote lane name"
3049
+ }
3050
+ ]
2930
3051
  }
2931
3052
  ]
2932
3053
  },
@@ -2966,7 +3087,7 @@
2966
3087
  "private": true
2967
3088
  },
2968
3089
  {
2969
- "name": "eject <pattern>",
3090
+ "name": "eject <component-pattern>",
2970
3091
  "alias": "E",
2971
3092
  "options": [
2972
3093
  [
@@ -2985,10 +3106,16 @@
2985
3106
  "keep the component files in the workspace intact"
2986
3107
  ]
2987
3108
  ],
2988
- "description": "replaces the components from the local scope with the corresponding packages",
2989
- "extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit eject \"org.scope/utils/**\"`.\nuse comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n",
3109
+ "description": "replace components maintained in the workspace with their corresponding packages",
3110
+ "extendedDescription": "",
2990
3111
  "group": "development",
2991
- "private": false
3112
+ "private": false,
3113
+ "arguments": [
3114
+ {
3115
+ "name": "component-pattern",
3116
+ "description": "component name, component id, or component pattern.\nuse component pattern to select multiple components. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\"\nwrap the pattern with quotes"
3117
+ }
3118
+ ]
2992
3119
  },
2993
3120
  {
2994
3121
  "name": "resume-export <export-id> <remotes...>",
@@ -3042,7 +3169,7 @@
3042
3169
  [
3043
3170
  "",
3044
3171
  "origin-directly",
3045
- "HARMONY ONLY. avoid export to the central hub, instead, export directly to the original scopes. not recommended!"
3172
+ "EXPERIMENTAL. avoid export to the central hub, instead, export directly to the original scopes. not recommended!"
3046
3173
  ],
3047
3174
  [
3048
3175
  "",