@teambit/harmony.content.cli-reference 1.95.37 → 1.95.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli-reference.json +38 -117
- package/cli-reference.mdx +17 -23
- package/dist/cli-reference.json +38 -117
- package/dist/cli-reference.mdx.js +10 -78
- package/dist/cli-reference.mdx.js.map +1 -1
- package/package-tar/teambit-harmony.content.cli-reference-1.95.40.tgz +0 -0
- package/package.json +2 -32
- package/{preview-1656646049209.js → preview-1657769253704.js} +3 -3
- package/package-tar/teambit-harmony.content.cli-reference-1.95.37.tgz +0 -0
package/cli-reference.json
CHANGED
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"private": true
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"name": "dependents <
|
|
213
|
+
"name": "dependents <component-name>",
|
|
214
214
|
"alias": "",
|
|
215
215
|
"options": [],
|
|
216
216
|
"description": "EXPERIMENTAL. show dependents of the given component",
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"private": false
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
"name": "dependencies <
|
|
222
|
+
"name": "dependencies <component-name>",
|
|
223
223
|
"alias": "",
|
|
224
224
|
"options": [
|
|
225
225
|
[
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"show the immediate dependencies and how their version was determined"
|
|
234
234
|
]
|
|
235
235
|
],
|
|
236
|
-
"description": "EXPERIMENTAL. show
|
|
236
|
+
"description": "EXPERIMENTAL. show direct and indirect dependencies of the given component",
|
|
237
237
|
"extendedDescription": "",
|
|
238
238
|
"group": "info",
|
|
239
239
|
"private": false
|
|
@@ -324,21 +324,6 @@
|
|
|
324
324
|
"private": true,
|
|
325
325
|
"internal": true
|
|
326
326
|
},
|
|
327
|
-
{
|
|
328
|
-
"name": "inject-conf [id]",
|
|
329
|
-
"alias": "",
|
|
330
|
-
"options": [
|
|
331
|
-
[
|
|
332
|
-
"f",
|
|
333
|
-
"force",
|
|
334
|
-
"force injecting even if there are config files changes"
|
|
335
|
-
]
|
|
336
|
-
],
|
|
337
|
-
"description": "injecting components configuration",
|
|
338
|
-
"extendedDescription": "",
|
|
339
|
-
"group": "ungrouped",
|
|
340
|
-
"private": true
|
|
341
|
-
},
|
|
342
327
|
{
|
|
343
328
|
"name": "_scope <path> <args>",
|
|
344
329
|
"alias": "",
|
|
@@ -349,36 +334,6 @@
|
|
|
349
334
|
"private": true,
|
|
350
335
|
"internal": true
|
|
351
336
|
},
|
|
352
|
-
{
|
|
353
|
-
"name": "ci-update <id> [scopePath]",
|
|
354
|
-
"alias": "",
|
|
355
|
-
"options": [
|
|
356
|
-
[
|
|
357
|
-
"d",
|
|
358
|
-
"directory [file]",
|
|
359
|
-
"directory to run ci-update"
|
|
360
|
-
],
|
|
361
|
-
[
|
|
362
|
-
"k",
|
|
363
|
-
"keep",
|
|
364
|
-
"keep test environment after run (default false)"
|
|
365
|
-
],
|
|
366
|
-
[
|
|
367
|
-
"c",
|
|
368
|
-
"no-cache",
|
|
369
|
-
"ignore component cache when creating dist file"
|
|
370
|
-
],
|
|
371
|
-
[
|
|
372
|
-
"o",
|
|
373
|
-
"output [file]",
|
|
374
|
-
"save ci results to file system"
|
|
375
|
-
]
|
|
376
|
-
],
|
|
377
|
-
"description": "run an update for build and test of a certain bit-component",
|
|
378
|
-
"extendedDescription": "",
|
|
379
|
-
"group": "ungrouped",
|
|
380
|
-
"private": true
|
|
381
|
-
},
|
|
382
337
|
{
|
|
383
338
|
"name": "cat-scope [scopePath]",
|
|
384
339
|
"alias": "",
|
|
@@ -474,21 +429,11 @@
|
|
|
474
429
|
"main <file>",
|
|
475
430
|
"define entry point for the components"
|
|
476
431
|
],
|
|
477
|
-
[
|
|
478
|
-
"t",
|
|
479
|
-
"tests <file>/\"<file>,<file>\"",
|
|
480
|
-
"LEGACY ONLY. specify test files to track. use quotation marks to list files or use a glob pattern"
|
|
481
|
-
],
|
|
482
432
|
[
|
|
483
433
|
"n",
|
|
484
434
|
"namespace <namespace>",
|
|
485
435
|
"organize component in a namespace"
|
|
486
436
|
],
|
|
487
|
-
[
|
|
488
|
-
"e",
|
|
489
|
-
"exclude <file>/\"<file>,<file>\"",
|
|
490
|
-
"LEGACY ONLY. exclude file from being tracked. use quotation marks to list files or use a glob pattern"
|
|
491
|
-
],
|
|
492
437
|
[
|
|
493
438
|
"o",
|
|
494
439
|
"override <boolean>",
|
|
@@ -505,21 +450,6 @@
|
|
|
505
450
|
"group": "development",
|
|
506
451
|
"private": false
|
|
507
452
|
},
|
|
508
|
-
{
|
|
509
|
-
"name": "untrack [ids...]",
|
|
510
|
-
"alias": "u",
|
|
511
|
-
"options": [
|
|
512
|
-
[
|
|
513
|
-
"a",
|
|
514
|
-
"all",
|
|
515
|
-
"revert add for all tracked components"
|
|
516
|
-
]
|
|
517
|
-
],
|
|
518
|
-
"description": "DEPRECATED (use \"bit remove\" instead). untrack a new component(s)\n https://legacy-docs.bit.dev/docs/add-and-isolate-components#untracking-components\n you can use a pattern for multiple ids, such as bit untrack \"utils/*\". (wrap the pattern with quotes to avoid collision with shell commands)",
|
|
519
|
-
"extendedDescription": "",
|
|
520
|
-
"group": "ungrouped",
|
|
521
|
-
"private": true
|
|
522
|
-
},
|
|
523
453
|
{
|
|
524
454
|
"name": "untag [component-name] [component-version]",
|
|
525
455
|
"alias": "",
|
|
@@ -548,13 +478,7 @@
|
|
|
548
478
|
{
|
|
549
479
|
"name": "move <current-component-dir> <new-component-dir>",
|
|
550
480
|
"alias": "mv",
|
|
551
|
-
"options": [
|
|
552
|
-
[
|
|
553
|
-
"c",
|
|
554
|
-
"component",
|
|
555
|
-
"LEGACY ONLY. move component files that are spread over multiple directories to one directory. synopsis: `move <component-id> <directory>`"
|
|
556
|
-
]
|
|
557
|
-
],
|
|
481
|
+
"options": [],
|
|
558
482
|
"description": "move a component to a different filesystem path",
|
|
559
483
|
"extendedDescription": "move files or directories of component(s)\n https://bit.dev/docs/workspace/moving-components",
|
|
560
484
|
"group": "development",
|
|
@@ -611,26 +535,6 @@
|
|
|
611
535
|
"private": true,
|
|
612
536
|
"internal": true
|
|
613
537
|
},
|
|
614
|
-
{
|
|
615
|
-
"name": "_deprecate <path> <args>",
|
|
616
|
-
"alias": "",
|
|
617
|
-
"options": [],
|
|
618
|
-
"description": "deprecate a component from a scope",
|
|
619
|
-
"extendedDescription": "",
|
|
620
|
-
"group": "ungrouped",
|
|
621
|
-
"private": true,
|
|
622
|
-
"internal": true
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"name": "_undeprecate <path> <args>",
|
|
626
|
-
"alias": "",
|
|
627
|
-
"options": [],
|
|
628
|
-
"description": "undeprecate a component from a scope",
|
|
629
|
-
"extendedDescription": "",
|
|
630
|
-
"group": "ungrouped",
|
|
631
|
-
"private": true,
|
|
632
|
-
"internal": true
|
|
633
|
-
},
|
|
634
538
|
{
|
|
635
539
|
"name": "_latest <path> <args>",
|
|
636
540
|
"alias": "",
|
|
@@ -668,7 +572,7 @@
|
|
|
668
572
|
[
|
|
669
573
|
"r",
|
|
670
574
|
"reset",
|
|
671
|
-
"
|
|
575
|
+
"revert changes that were not snapped"
|
|
672
576
|
],
|
|
673
577
|
[
|
|
674
578
|
"a",
|
|
@@ -784,11 +688,6 @@
|
|
|
784
688
|
"v",
|
|
785
689
|
"verbose",
|
|
786
690
|
"showing logs for the migration process"
|
|
787
|
-
],
|
|
788
|
-
[
|
|
789
|
-
"h",
|
|
790
|
-
"harmony",
|
|
791
|
-
"migrate workspace from legacy to Harmony"
|
|
792
691
|
]
|
|
793
692
|
],
|
|
794
693
|
"description": "migrate scope to the current version",
|
|
@@ -1187,7 +1086,7 @@
|
|
|
1187
1086
|
[
|
|
1188
1087
|
"r",
|
|
1189
1088
|
"refactor",
|
|
1190
|
-
"
|
|
1089
|
+
"update the import statements in all dependent components to the new package name (that contains the new scope name)"
|
|
1191
1090
|
]
|
|
1192
1091
|
],
|
|
1193
1092
|
"description": "Renames the scope name for all components with the specified 'current scope name'",
|
|
@@ -1620,7 +1519,7 @@
|
|
|
1620
1519
|
[
|
|
1621
1520
|
"",
|
|
1622
1521
|
"dependents",
|
|
1623
|
-
"EXPERIMENTAL. import
|
|
1522
|
+
"EXPERIMENTAL. import the components' dependents. this enables changes to propagate from (modified) components to their dependents"
|
|
1624
1523
|
],
|
|
1625
1524
|
[
|
|
1626
1525
|
"",
|
|
@@ -2072,7 +1971,7 @@
|
|
|
2072
1971
|
[
|
|
2073
1972
|
"i",
|
|
2074
1973
|
"ignore-issues [issues]",
|
|
2075
|
-
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingComponents, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors,
|
|
1974
|
+
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingComponents, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, CustomModuleResolutionUsed, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\"."
|
|
2076
1975
|
],
|
|
2077
1976
|
[
|
|
2078
1977
|
"I",
|
|
@@ -2124,7 +2023,7 @@
|
|
|
2124
2023
|
]
|
|
2125
2024
|
},
|
|
2126
2025
|
{
|
|
2127
|
-
"name": "snap [component-
|
|
2026
|
+
"name": "snap [component-pattern]",
|
|
2128
2027
|
"alias": "",
|
|
2129
2028
|
"options": [
|
|
2130
2029
|
[
|
|
@@ -2165,7 +2064,7 @@
|
|
|
2165
2064
|
[
|
|
2166
2065
|
"i",
|
|
2167
2066
|
"ignore-issues [issues]",
|
|
2168
|
-
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingComponents, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors,
|
|
2067
|
+
"ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[MissingPackagesDependenciesOnFs, MissingComponents, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, CustomModuleResolutionUsed, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\"."
|
|
2169
2068
|
],
|
|
2170
2069
|
[
|
|
2171
2070
|
"a",
|
|
@@ -2184,8 +2083,8 @@
|
|
|
2184
2083
|
"private": true,
|
|
2185
2084
|
"arguments": [
|
|
2186
2085
|
{
|
|
2187
|
-
"name": "
|
|
2188
|
-
"description": "component
|
|
2086
|
+
"name": "component-pattern",
|
|
2087
|
+
"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. By default, all new and modified components are snapped."
|
|
2189
2088
|
}
|
|
2190
2089
|
]
|
|
2191
2090
|
},
|
|
@@ -2673,7 +2572,7 @@
|
|
|
2673
2572
|
]
|
|
2674
2573
|
},
|
|
2675
2574
|
{
|
|
2676
|
-
"name": "deprecate <
|
|
2575
|
+
"name": "deprecate <component-name>",
|
|
2677
2576
|
"alias": "d",
|
|
2678
2577
|
"options": [
|
|
2679
2578
|
[
|
|
@@ -2687,7 +2586,13 @@
|
|
|
2687
2586
|
"group": "collaborate",
|
|
2688
2587
|
"private": false,
|
|
2689
2588
|
"remoteOp": true,
|
|
2690
|
-
"skipWorkspace": true
|
|
2589
|
+
"skipWorkspace": true,
|
|
2590
|
+
"arguments": [
|
|
2591
|
+
{
|
|
2592
|
+
"name": "component-name",
|
|
2593
|
+
"description": "component name or component id"
|
|
2594
|
+
}
|
|
2595
|
+
]
|
|
2691
2596
|
},
|
|
2692
2597
|
{
|
|
2693
2598
|
"name": "undeprecate <id>",
|
|
@@ -2923,7 +2828,13 @@
|
|
|
2923
2828
|
"description": "creates a new lane and switches to it",
|
|
2924
2829
|
"extendedDescription": "a lane created from main (default-lane) is empty until components are snapped.\na lane created from another lane has all the components of the original lane.",
|
|
2925
2830
|
"group": "ungrouped",
|
|
2926
|
-
"private": true
|
|
2831
|
+
"private": true,
|
|
2832
|
+
"arguments": [
|
|
2833
|
+
{
|
|
2834
|
+
"name": "lane-name",
|
|
2835
|
+
"description": "the name for the new lane"
|
|
2836
|
+
}
|
|
2837
|
+
]
|
|
2927
2838
|
},
|
|
2928
2839
|
{
|
|
2929
2840
|
"name": "merge <lane>",
|
|
@@ -2977,7 +2888,17 @@
|
|
|
2977
2888
|
[
|
|
2978
2889
|
"",
|
|
2979
2890
|
"squash",
|
|
2980
|
-
"squash multiple snaps. keep the last one only"
|
|
2891
|
+
"EXPERIMENTAL. squash multiple snaps. keep the last one only"
|
|
2892
|
+
],
|
|
2893
|
+
[
|
|
2894
|
+
"",
|
|
2895
|
+
"pattern <component-pattern>",
|
|
2896
|
+
"EXPERIMENTAL. partially merge the lane with the specified component-pattern"
|
|
2897
|
+
],
|
|
2898
|
+
[
|
|
2899
|
+
"",
|
|
2900
|
+
"include-deps",
|
|
2901
|
+
"EXPERIMENTAL. relevant for \"--pattern\" and \"--existing\". merge also dependencies of the given components"
|
|
2981
2902
|
]
|
|
2982
2903
|
],
|
|
2983
2904
|
"description": "merge a local or a remote lane",
|
package/cli-reference.mdx
CHANGED
|
@@ -12,15 +12,13 @@ all flags support glob patterns and {PARENT} {FILE_NAME} annotations
|
|
|
12
12
|
|
|
13
13
|
`bit add [path...]`
|
|
14
14
|
|
|
15
|
-
| **Option**
|
|
16
|
-
|
|
|
17
|
-
| `--id <name>`
|
|
18
|
-
| `--main <file>`
|
|
19
|
-
| `--
|
|
20
|
-
| `--
|
|
21
|
-
| `--
|
|
22
|
-
| `--override <boolean>` | `-o` | override existing component if exists (default = false) |
|
|
23
|
-
| `--scope <string>` | `-s` | sets the component's scope-name. if not entered, the default-scope will be used |
|
|
15
|
+
| **Option** | **Option alias** | **Description** |
|
|
16
|
+
| ------------------------- | :--------------: | ------------------------------------------------------------------------------- |
|
|
17
|
+
| `--id <name>` | `-i` | manually set component id |
|
|
18
|
+
| `--main <file>` | `-m` | define entry point for the components |
|
|
19
|
+
| `--namespace <namespace>` | `-n` | organize component in a namespace |
|
|
20
|
+
| `--override <boolean>` | `-o` | override existing component if exists (default = false) |
|
|
21
|
+
| `--scope <string>` | `-s` | sets the component's scope-name. if not entered, the default-scope will be used |
|
|
24
22
|
|
|
25
23
|
---
|
|
26
24
|
|
|
@@ -216,7 +214,7 @@ with no args, only workspace's capsules are deleted
|
|
|
216
214
|
| `--ours` | `-o` | in case of a conflict, override the used version with the current modification |
|
|
217
215
|
| `--theirs` | `-t` | in case of a conflict, override the current modification with the specified version |
|
|
218
216
|
| `--manual` | `-m` | in case of a conflict, leave the files with a conflict state to resolve them manually later |
|
|
219
|
-
| `--reset` | `-r` |
|
|
217
|
+
| `--reset` | `-r` | revert changes that were not snapped |
|
|
220
218
|
| `--all` | `-a` | all components |
|
|
221
219
|
| `--verbose` | `-v` | showing verbose output for inspection |
|
|
222
220
|
| `--skip-npm-install` | | DEPRECATED. use "--skip-dependency-installation" instead |
|
|
@@ -359,9 +357,9 @@ https://bit.dev/docs/config/bit-config
|
|
|
359
357
|
## dependencies
|
|
360
358
|
|
|
361
359
|
**Workspace only**: yes
|
|
362
|
-
**Description**: EXPERIMENTAL. show
|
|
360
|
+
**Description**: EXPERIMENTAL. show direct and indirect dependencies of the given component
|
|
363
361
|
|
|
364
|
-
`bit dependencies <
|
|
362
|
+
`bit dependencies <component-name>`
|
|
365
363
|
|
|
366
364
|
| **Option** | **Option alias** | **Description** |
|
|
367
365
|
| ---------- | :--------------: | -------------------------------------------------------------------- |
|
|
@@ -375,7 +373,7 @@ https://bit.dev/docs/config/bit-config
|
|
|
375
373
|
**Workspace only**: yes
|
|
376
374
|
**Description**: EXPERIMENTAL. show dependents of the given component
|
|
377
375
|
|
|
378
|
-
`bit dependents <
|
|
376
|
+
`bit dependents <component-name>`
|
|
379
377
|
|
|
380
378
|
---
|
|
381
379
|
|
|
@@ -385,7 +383,7 @@ https://bit.dev/docs/config/bit-config
|
|
|
385
383
|
**Workspace only**: no
|
|
386
384
|
**Description**: deprecate a component
|
|
387
385
|
|
|
388
|
-
`bit deprecate <
|
|
386
|
+
`bit deprecate <component-name>`
|
|
389
387
|
|
|
390
388
|
| **Option** | **Option alias** | **Description** |
|
|
391
389
|
| ------------------- | :--------------: | ------------------------------------------------------------ |
|
|
@@ -624,7 +622,7 @@ you can use a pattern for multiple ids, such as bit import "utils/\*". (wrap the
|
|
|
624
622
|
| `--skip-dependency-installation` | | do not install packages of the imported components |
|
|
625
623
|
| `--merge [strategy]` | `-m` | merge local changes with the imported version. strategy should be "theirs", "ours" or "manual" |
|
|
626
624
|
| `--dependencies` | | EXPERIMENTAL. import all dependencies and write them to the workspace |
|
|
627
|
-
| `--dependents` | | EXPERIMENTAL. import
|
|
625
|
+
| `--dependents` | | EXPERIMENTAL. import the components' dependents. this enables changes to propagate from (modified) components to their dependents |
|
|
628
626
|
| `--save-in-lane` | | 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) |
|
|
629
627
|
| `--all-history` | | relevant for fetching all components objects. avoid optimizations, fetch all history versions, always |
|
|
630
628
|
|
|
@@ -804,10 +802,6 @@ move files or directories of component(s)
|
|
|
804
802
|
|
|
805
803
|
`bit move <current-component-dir> <new-component-dir>`
|
|
806
804
|
|
|
807
|
-
| **Option** | **Option alias** | **Description** |
|
|
808
|
-
| ------------- | :--------------: | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
809
|
-
| `--component` | `-c` | LEGACY ONLY. move component files that are spread over multiple directories to one directory. synopsis: `move <component-id> <directory>` |
|
|
810
|
-
|
|
811
805
|
---
|
|
812
806
|
|
|
813
807
|
## new
|
|
@@ -1027,9 +1021,9 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
|
|
|
1027
1021
|
|
|
1028
1022
|
**Description**: Renames the scope name for all components with the specified 'current scope name'
|
|
1029
1023
|
|
|
1030
|
-
| **Option** | **Option alias** | **Description**
|
|
1031
|
-
| ------------ | :--------------: |
|
|
1032
|
-
| `--refactor` | `-r` |
|
|
1024
|
+
| **Option** | **Option alias** | **Description** |
|
|
1025
|
+
| ------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------- |
|
|
1026
|
+
| `--refactor` | `-r` | update the import statements in all dependent components to the new package name (that contains the new scope name) |
|
|
1033
1027
|
|
|
1034
1028
|
### scope fork
|
|
1035
1029
|
|
|
@@ -1155,7 +1149,7 @@ https://bit.dev/components/tags
|
|
|
1155
1149
|
| `--increment-by <number>` | | (default to 1) increment semver flag (patch/minor/major) by. e.g. incrementing patch by 2: 0.0.1 -> 0.0.3. |
|
|
1156
1150
|
| `--ignore-issues [issues]` | `-i` | ignore component issues (shown in "bit status" as "issues found"), issues to ignore: |
|
|
1157
1151
|
|
|
1158
|
-
[MissingPackagesDependenciesOnFs, MissingComponents, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors,
|
|
1152
|
+
[MissingPackagesDependenciesOnFs, MissingComponents, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, CustomModuleResolutionUsed, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies]
|
|
1159
1153
|
to ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify "\*".|
|
|
1160
1154
|
|`--ignore-newest-version`|`-I`|ignore existing of newer versions (default = false)|
|
|
1161
1155
|
|`--build`|`-b`|EXPERIMENTAL. not needed for now. run the pipeline build and complete the tag|
|