@teambit/harmony.content.cli-reference 1.95.43 → 1.95.46
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 +15 -10
- package/cli-reference.mdx +7 -7
- package/dist/cli-reference.json +15 -10
- package/dist/cli-reference.mdx.js +19 -11
- package/dist/cli-reference.mdx.js.map +1 -1
- package/package-tar/teambit-harmony.content.cli-reference-1.95.46.tgz +0 -0
- package/package.json +2 -2
- package/{preview-1658028499572.js → preview-1658806155716.js} +2 -2
- package/package-tar/teambit-harmony.content.cli-reference-1.95.43.tgz +0 -0
package/cli-reference.json
CHANGED
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
"reset-hard",
|
|
34
34
|
"delete all Bit files and directories, including Bit configuration, tracking and model data. Useful for re-start using Bit from scratch"
|
|
35
35
|
],
|
|
36
|
+
[
|
|
37
|
+
"",
|
|
38
|
+
"reset-scope",
|
|
39
|
+
"removes local scope (.bit or .git/bit). snaps that were not exported will be lost. workspace left intact"
|
|
40
|
+
],
|
|
36
41
|
[
|
|
37
42
|
"d",
|
|
38
43
|
"default-directory <default-directory>",
|
|
@@ -1458,7 +1463,7 @@
|
|
|
1458
1463
|
"skipWorkspace": true
|
|
1459
1464
|
},
|
|
1460
1465
|
{
|
|
1461
|
-
"name": "import [component-
|
|
1466
|
+
"name": "import [component-patterns...]",
|
|
1462
1467
|
"alias": "",
|
|
1463
1468
|
"options": [
|
|
1464
1469
|
[
|
|
@@ -1532,15 +1537,15 @@
|
|
|
1532
1537
|
"relevant for fetching all components objects. avoid optimizations, fetch all history versions, always"
|
|
1533
1538
|
]
|
|
1534
1539
|
],
|
|
1535
|
-
"description": "import components from remote scopes to the local workspace",
|
|
1540
|
+
"description": "import components from their remote scopes to the local workspace",
|
|
1536
1541
|
"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)",
|
|
1537
1542
|
"group": "collaborate",
|
|
1538
1543
|
"private": false,
|
|
1539
1544
|
"remoteOp": true,
|
|
1540
1545
|
"arguments": [
|
|
1541
1546
|
{
|
|
1542
|
-
"name": "component-
|
|
1543
|
-
"description": "
|
|
1547
|
+
"name": "component-patterns...",
|
|
1548
|
+
"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)"
|
|
1544
1549
|
}
|
|
1545
1550
|
]
|
|
1546
1551
|
},
|
|
@@ -2005,7 +2010,7 @@
|
|
|
2005
2010
|
]
|
|
2006
2011
|
],
|
|
2007
2012
|
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
2008
|
-
"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
|
|
2013
|
+
"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",
|
|
2009
2014
|
"group": "development",
|
|
2010
2015
|
"private": false,
|
|
2011
2016
|
"remoteOp": true,
|
|
@@ -3121,7 +3126,7 @@
|
|
|
3121
3126
|
"remoteOp": true
|
|
3122
3127
|
},
|
|
3123
3128
|
{
|
|
3124
|
-
"name": "export [component-
|
|
3129
|
+
"name": "export [component-patterns...]",
|
|
3125
3130
|
"alias": "e",
|
|
3126
3131
|
"options": [
|
|
3127
3132
|
[
|
|
@@ -3132,12 +3137,12 @@
|
|
|
3132
3137
|
[
|
|
3133
3138
|
"a",
|
|
3134
3139
|
"all",
|
|
3135
|
-
"export all components, including non-staged"
|
|
3140
|
+
"export all components, including non-staged (useful when components in the remote scope are corrupted or missing)"
|
|
3136
3141
|
],
|
|
3137
3142
|
[
|
|
3138
3143
|
"",
|
|
3139
3144
|
"all-versions",
|
|
3140
|
-
"export not only staged versions but all of them"
|
|
3145
|
+
"export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing)"
|
|
3141
3146
|
],
|
|
3142
3147
|
[
|
|
3143
3148
|
"",
|
|
@@ -3167,8 +3172,8 @@
|
|
|
3167
3172
|
"remoteOp": true,
|
|
3168
3173
|
"arguments": [
|
|
3169
3174
|
{
|
|
3170
|
-
"name": "component-
|
|
3171
|
-
"description": "
|
|
3175
|
+
"name": "component-patterns...",
|
|
3176
|
+
"description": "component IDs, component names, or component patterns (separated by space). Use patterns to export groups of components using a common scope or namespace. E.g., \"utils/*\" (wrap with double quotes)"
|
|
3172
3177
|
}
|
|
3173
3178
|
]
|
|
3174
3179
|
},
|
package/cli-reference.mdx
CHANGED
|
@@ -517,13 +517,13 @@ bit export => export all staged components to their current scope, if checked ou
|
|
|
517
517
|
https://bit.dev/docs/components/exporting-components
|
|
518
518
|
you can use a pattern for multiple ids, such as bit export remote-scope "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
519
519
|
|
|
520
|
-
`bit export [component-
|
|
520
|
+
`bit export [component-patterns...]`
|
|
521
521
|
|
|
522
522
|
| **Option** | **Option alias** | **Description** |
|
|
523
523
|
| ---------------------------- | :--------------: | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
524
524
|
| `--eject` | `-e` | replace the exported components with their corresponding packages (to use these components without further maintaining them) |
|
|
525
|
-
| `--all` | `-a` | export all components, including non-staged
|
|
526
|
-
| `--all-versions` | | export not only staged versions but all of them
|
|
525
|
+
| `--all` | `-a` | export all components, including non-staged (useful when components in the remote scope are corrupted or missing) |
|
|
526
|
+
| `--all-versions` | | export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing) |
|
|
527
527
|
| `--origin-directly` | | EXPERIMENTAL. avoid export to the central hub, instead, export directly to the original scopes. not recommended! |
|
|
528
528
|
| `--resume <string>` | | in case the previous export failed and suggested to resume with an export-id, enter the id |
|
|
529
529
|
| `--ignore-missing-artifacts` | | EXPERIMENTAL. don't throw an error when artifact files are missing. not recommended, unless you're sure the artifacts are in the remote |
|
|
@@ -604,11 +604,11 @@ you can use a pattern for multiple ids, such as bit export remote-scope "utils/\
|
|
|
604
604
|
## import
|
|
605
605
|
|
|
606
606
|
**Workspace only**: yes
|
|
607
|
-
**Description**: import components from remote scopes to the local workspace
|
|
607
|
+
**Description**: import components from their remote scopes to the local workspace
|
|
608
608
|
https://bit.dev/docs/components/importing-components
|
|
609
609
|
you can use a pattern for multiple ids, such as bit import "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
610
610
|
|
|
611
|
-
`bit import [component-
|
|
611
|
+
`bit import [component-patterns...]`
|
|
612
612
|
|
|
613
613
|
| **Option** | **Option alias** | **Description** |
|
|
614
614
|
| -------------------------------- | :--------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
@@ -645,6 +645,7 @@ https://bit.dev/docs/workspace/creating-workspaces#initialize-a-workspace-on-an-
|
|
|
645
645
|
| `--reset` | `-r` | write missing or damaged Bit files |
|
|
646
646
|
| `--reset-new` | | reset .bitmap file as if the components were newly added and remove all model data (objects) |
|
|
647
647
|
| `--reset-hard` | | delete all Bit files and directories, including Bit configuration, tracking and model data. Useful for re-start using Bit from scratch |
|
|
648
|
+
| `--reset-scope` | | removes local scope (.bit or .git/bit). snaps that were not exported will be lost. workspace left intact |
|
|
648
649
|
| `--default-directory <default-directory>` | `-d` | set up default directory to import components into |
|
|
649
650
|
| `--package-manager <package-manager>` | `-p` | set up package manager (npm or yarn) |
|
|
650
651
|
| `--force` | `-f` | force workspace initialization without clearing local objects |
|
|
@@ -1125,8 +1126,7 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
|
|
|
1125
1126
|
**Workspace only**: yes
|
|
1126
1127
|
**Description**: create an immutable and exportable component snapshot, tagged with a release version.
|
|
1127
1128
|
if no patterns are provided, it will tag all new and modified components.
|
|
1128
|
-
if patterns are entered, you can specify a version per pattern using "@" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major
|
|
1129
|
-
https://bit.dev/components/tags
|
|
1129
|
+
if patterns are entered, you can specify a version per pattern using "@" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major
|
|
1130
1130
|
|
|
1131
1131
|
`bit tag [component-patterns...]`
|
|
1132
1132
|
|
package/dist/cli-reference.json
CHANGED
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
"reset-hard",
|
|
34
34
|
"delete all Bit files and directories, including Bit configuration, tracking and model data. Useful for re-start using Bit from scratch"
|
|
35
35
|
],
|
|
36
|
+
[
|
|
37
|
+
"",
|
|
38
|
+
"reset-scope",
|
|
39
|
+
"removes local scope (.bit or .git/bit). snaps that were not exported will be lost. workspace left intact"
|
|
40
|
+
],
|
|
36
41
|
[
|
|
37
42
|
"d",
|
|
38
43
|
"default-directory <default-directory>",
|
|
@@ -1458,7 +1463,7 @@
|
|
|
1458
1463
|
"skipWorkspace": true
|
|
1459
1464
|
},
|
|
1460
1465
|
{
|
|
1461
|
-
"name": "import [component-
|
|
1466
|
+
"name": "import [component-patterns...]",
|
|
1462
1467
|
"alias": "",
|
|
1463
1468
|
"options": [
|
|
1464
1469
|
[
|
|
@@ -1532,15 +1537,15 @@
|
|
|
1532
1537
|
"relevant for fetching all components objects. avoid optimizations, fetch all history versions, always"
|
|
1533
1538
|
]
|
|
1534
1539
|
],
|
|
1535
|
-
"description": "import components from remote scopes to the local workspace",
|
|
1540
|
+
"description": "import components from their remote scopes to the local workspace",
|
|
1536
1541
|
"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)",
|
|
1537
1542
|
"group": "collaborate",
|
|
1538
1543
|
"private": false,
|
|
1539
1544
|
"remoteOp": true,
|
|
1540
1545
|
"arguments": [
|
|
1541
1546
|
{
|
|
1542
|
-
"name": "component-
|
|
1543
|
-
"description": "
|
|
1547
|
+
"name": "component-patterns...",
|
|
1548
|
+
"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)"
|
|
1544
1549
|
}
|
|
1545
1550
|
]
|
|
1546
1551
|
},
|
|
@@ -2005,7 +2010,7 @@
|
|
|
2005
2010
|
]
|
|
2006
2011
|
],
|
|
2007
2012
|
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
2008
|
-
"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
|
|
2013
|
+
"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",
|
|
2009
2014
|
"group": "development",
|
|
2010
2015
|
"private": false,
|
|
2011
2016
|
"remoteOp": true,
|
|
@@ -3121,7 +3126,7 @@
|
|
|
3121
3126
|
"remoteOp": true
|
|
3122
3127
|
},
|
|
3123
3128
|
{
|
|
3124
|
-
"name": "export [component-
|
|
3129
|
+
"name": "export [component-patterns...]",
|
|
3125
3130
|
"alias": "e",
|
|
3126
3131
|
"options": [
|
|
3127
3132
|
[
|
|
@@ -3132,12 +3137,12 @@
|
|
|
3132
3137
|
[
|
|
3133
3138
|
"a",
|
|
3134
3139
|
"all",
|
|
3135
|
-
"export all components, including non-staged"
|
|
3140
|
+
"export all components, including non-staged (useful when components in the remote scope are corrupted or missing)"
|
|
3136
3141
|
],
|
|
3137
3142
|
[
|
|
3138
3143
|
"",
|
|
3139
3144
|
"all-versions",
|
|
3140
|
-
"export not only staged versions but all of them"
|
|
3145
|
+
"export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing)"
|
|
3141
3146
|
],
|
|
3142
3147
|
[
|
|
3143
3148
|
"",
|
|
@@ -3167,8 +3172,8 @@
|
|
|
3167
3172
|
"remoteOp": true,
|
|
3168
3173
|
"arguments": [
|
|
3169
3174
|
{
|
|
3170
|
-
"name": "component-
|
|
3171
|
-
"description": "
|
|
3175
|
+
"name": "component-patterns...",
|
|
3176
|
+
"description": "component IDs, component names, or component patterns (separated by space). Use patterns to export groups of components using a common scope or namespace. E.g., \"utils/*\" (wrap with double quotes)"
|
|
3172
3177
|
}
|
|
3173
3178
|
]
|
|
3174
3179
|
},
|
|
@@ -1998,7 +1998,7 @@ function MDXContent(_ref) {
|
|
|
1998
1998
|
parentName: "p"
|
|
1999
1999
|
}), "\n", "you can use a pattern for multiple ids, such as bit export remote-scope \"utils/", "*", "\". (wrap the pattern with quotes to avoid collision with shell commands)"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
2000
2000
|
parentName: "p"
|
|
2001
|
-
}, "bit export [component-
|
|
2001
|
+
}, "bit export [component-patterns...]")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
|
|
2002
2002
|
parentName: "table"
|
|
2003
2003
|
}, (0, _react2.mdx)("tr", {
|
|
2004
2004
|
parentName: "thead"
|
|
@@ -2049,7 +2049,7 @@ function MDXContent(_ref) {
|
|
|
2049
2049
|
}, "-a")), (0, _react2.mdx)("td", {
|
|
2050
2050
|
parentName: "tr",
|
|
2051
2051
|
"align": null
|
|
2052
|
-
}, "export all components, including non-staged")), (0, _react2.mdx)("tr", {
|
|
2052
|
+
}, "export all components, including non-staged (useful when components in the remote scope are corrupted or missing)")), (0, _react2.mdx)("tr", {
|
|
2053
2053
|
parentName: "tbody"
|
|
2054
2054
|
}, (0, _react2.mdx)("td", {
|
|
2055
2055
|
parentName: "tr",
|
|
@@ -2062,7 +2062,7 @@ function MDXContent(_ref) {
|
|
|
2062
2062
|
}), (0, _react2.mdx)("td", {
|
|
2063
2063
|
parentName: "tr",
|
|
2064
2064
|
"align": null
|
|
2065
|
-
}, "export not only staged versions but all of them")), (0, _react2.mdx)("tr", {
|
|
2065
|
+
}, "export not only staged versions but all of them (useful when versions in the remote scope are corrupted or missing)")), (0, _react2.mdx)("tr", {
|
|
2066
2066
|
parentName: "tbody"
|
|
2067
2067
|
}, (0, _react2.mdx)("td", {
|
|
2068
2068
|
parentName: "tr",
|
|
@@ -2426,7 +2426,7 @@ function MDXContent(_ref) {
|
|
|
2426
2426
|
parentName: "p"
|
|
2427
2427
|
}), "\n", (0, _react2.mdx)("strong", {
|
|
2428
2428
|
parentName: "p"
|
|
2429
|
-
}, "Description"), ": import components from remote scopes to the local workspace", (0, _react2.mdx)("br", {
|
|
2429
|
+
}, "Description"), ": import components from their remote scopes to the local workspace", (0, _react2.mdx)("br", {
|
|
2430
2430
|
parentName: "p"
|
|
2431
2431
|
}), "\n", (0, _react2.mdx)("a", {
|
|
2432
2432
|
parentName: "p",
|
|
@@ -2435,7 +2435,7 @@ function MDXContent(_ref) {
|
|
|
2435
2435
|
parentName: "p"
|
|
2436
2436
|
}), "\n", "you can use a pattern for multiple ids, such as bit import \"utils/", "*", "\". (wrap the pattern with quotes to avoid collision with shell commands)"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
2437
2437
|
parentName: "p"
|
|
2438
|
-
}, "bit import [component-
|
|
2438
|
+
}, "bit import [component-patterns...]")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
|
|
2439
2439
|
parentName: "table"
|
|
2440
2440
|
}, (0, _react2.mdx)("tr", {
|
|
2441
2441
|
parentName: "thead"
|
|
@@ -2779,6 +2779,19 @@ function MDXContent(_ref) {
|
|
|
2779
2779
|
"align": null
|
|
2780
2780
|
}, (0, _react2.mdx)("inlineCode", {
|
|
2781
2781
|
parentName: "td"
|
|
2782
|
+
}, "--reset-scope")), (0, _react2.mdx)("td", {
|
|
2783
|
+
parentName: "tr",
|
|
2784
|
+
"align": "center"
|
|
2785
|
+
}), (0, _react2.mdx)("td", {
|
|
2786
|
+
parentName: "tr",
|
|
2787
|
+
"align": null
|
|
2788
|
+
}, "removes local scope (.bit or .git/bit). snaps that were not exported will be lost. workspace left intact")), (0, _react2.mdx)("tr", {
|
|
2789
|
+
parentName: "tbody"
|
|
2790
|
+
}, (0, _react2.mdx)("td", {
|
|
2791
|
+
parentName: "tr",
|
|
2792
|
+
"align": null
|
|
2793
|
+
}, (0, _react2.mdx)("inlineCode", {
|
|
2794
|
+
parentName: "td"
|
|
2782
2795
|
}, "--default-directory <default-directory>")), (0, _react2.mdx)("td", {
|
|
2783
2796
|
parentName: "tr",
|
|
2784
2797
|
"align": "center"
|
|
@@ -4923,12 +4936,7 @@ function MDXContent(_ref) {
|
|
|
4923
4936
|
}), "\n", "if patterns are entered, you can specify a version per pattern using \"@\" sign, e.g. bit tag ", (0, _react2.mdx)("a", {
|
|
4924
4937
|
parentName: "p",
|
|
4925
4938
|
"href": "mailto:foo@1.0.0"
|
|
4926
|
-
}, "foo@1.0.0"), " bar@minor baz@major", (0, _react2.mdx)("
|
|
4927
|
-
parentName: "p"
|
|
4928
|
-
}), "\n", (0, _react2.mdx)("a", {
|
|
4929
|
-
parentName: "p",
|
|
4930
|
-
"href": "https://bit.dev/components/tags"
|
|
4931
|
-
}, "https://bit.dev/components/tags")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
4939
|
+
}, "foo@1.0.0"), " bar@minor baz@major"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
4932
4940
|
parentName: "p"
|
|
4933
4941
|
}, "bit tag [component-patterns...]")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
|
|
4934
4942
|
parentName: "table"
|