@teambit/harmony.content.cli-reference 1.95.30 → 1.95.31
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 +32 -20
- package/cli-reference.mdx +50 -35
- package/dist/cli-reference.json +32 -20
- package/dist/cli-reference.mdx.js +92 -37
- package/dist/cli-reference.mdx.js.map +1 -1
- package/package-tar/teambit-harmony.content.cli-reference-1.95.31.tgz +0 -0
- package/package.json +2 -2
- package/{preview-1655263660719.js → preview-1655436530187.js} +2 -2
- package/package-tar/teambit-harmony.content.cli-reference-1.95.30.tgz +0 -0
package/cli-reference.json
CHANGED
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
"name": "unset <component-pattern>",
|
|
1131
1131
|
"options": [],
|
|
1132
1132
|
"description": "un-sets an env from components that were previously set by \"bit env set\" or by a component template",
|
|
1133
|
-
"extendedDescription": "keep in mind that this doesn't remove envs that are set in the 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 remove the specific settings and let the the variants in workspace.jsonc to control the env.\nyou can use a `<pattern>` for multiple component ids, such as `bit env unset \"org.scope/utils/**\"
|
|
1133
|
+
"extendedDescription": "keep in mind that this doesn't remove envs that are set in the 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 remove the specific settings and let the the variants in workspace.jsonc to control the 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\"\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",
|
|
1134
1134
|
"group": "development",
|
|
1135
1135
|
"arguments": [
|
|
1136
1136
|
{
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
"name": "set <scope-name> [component-pattern]",
|
|
1226
1226
|
"options": [],
|
|
1227
1227
|
"description": "Sets components with a default-scope. If no component is specified, sets the workspace with a default scope",
|
|
1228
|
-
"extendedDescription": "default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc. a 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/**\"
|
|
1228
|
+
"extendedDescription": "default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc. a 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\"\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",
|
|
1229
1229
|
"group": "development",
|
|
1230
1230
|
"arguments": [
|
|
1231
1231
|
{
|
|
@@ -1353,7 +1353,7 @@
|
|
|
1353
1353
|
]
|
|
1354
1354
|
],
|
|
1355
1355
|
"description": "eject components configuration (create a `component.json` file)",
|
|
1356
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit eject-conf \"org.scope/utils/**\"
|
|
1356
|
+
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit eject-conf \"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",
|
|
1357
1357
|
"group": "development",
|
|
1358
1358
|
"private": false
|
|
1359
1359
|
},
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
]
|
|
1525
1525
|
],
|
|
1526
1526
|
"description": "list the component ids matching the given pattern",
|
|
1527
|
-
"extendedDescription": "",
|
|
1527
|
+
"extendedDescription": "this command helps validating a pattern before using it in other commands.\na pattern can be a simple component-id or component-name. e.g. \"ui/button\".\na pattern can be used with wildcards for multiple component ids, e.g. \"org.scope/utils/**\".\nto enter multiple patterns, separate them by a comma, e.g. \"ui/*, lib/*\"\nto exclude, use \"!\". e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nthe matching algorithm is done by multimatch (@see https://github.com/sindresorhus/multimatch)\n",
|
|
1528
1528
|
"group": "development",
|
|
1529
1529
|
"private": false
|
|
1530
1530
|
},
|
|
@@ -1734,7 +1734,7 @@
|
|
|
1734
1734
|
]
|
|
1735
1735
|
},
|
|
1736
1736
|
{
|
|
1737
|
-
"name": "build [pattern]",
|
|
1737
|
+
"name": "build [component-pattern]",
|
|
1738
1738
|
"alias": "",
|
|
1739
1739
|
"options": [
|
|
1740
1740
|
[
|
|
@@ -1776,7 +1776,13 @@
|
|
|
1776
1776
|
"description": "run set of tasks for build",
|
|
1777
1777
|
"extendedDescription": "",
|
|
1778
1778
|
"group": "development",
|
|
1779
|
-
"private": false
|
|
1779
|
+
"private": false,
|
|
1780
|
+
"arguments": [
|
|
1781
|
+
{
|
|
1782
|
+
"name": "component-pattern",
|
|
1783
|
+
"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"
|
|
1784
|
+
}
|
|
1785
|
+
]
|
|
1780
1786
|
},
|
|
1781
1787
|
{
|
|
1782
1788
|
"name": "artifacts <pattern...>",
|
|
@@ -1924,7 +1930,7 @@
|
|
|
1924
1930
|
"private": true
|
|
1925
1931
|
},
|
|
1926
1932
|
{
|
|
1927
|
-
"name": "tag [
|
|
1933
|
+
"name": "tag [patterns...]",
|
|
1928
1934
|
"alias": "t",
|
|
1929
1935
|
"options": [
|
|
1930
1936
|
[
|
|
@@ -2054,14 +2060,14 @@
|
|
|
2054
2060
|
]
|
|
2055
2061
|
],
|
|
2056
2062
|
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
2057
|
-
"extendedDescription": "if no
|
|
2063
|
+
"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\nhttps://bit.dev/components/tags",
|
|
2058
2064
|
"group": "development",
|
|
2059
2065
|
"private": false,
|
|
2060
2066
|
"remoteOp": true,
|
|
2061
2067
|
"arguments": [
|
|
2062
2068
|
{
|
|
2063
|
-
"name": "
|
|
2064
|
-
"description": "a list of
|
|
2069
|
+
"name": "patterns...",
|
|
2070
|
+
"description": "a list of patterns (separated by space). run \"bit pattern --help\" to get more data about patterns. By default, all modified are tagged."
|
|
2065
2071
|
}
|
|
2066
2072
|
],
|
|
2067
2073
|
"examples": [
|
|
@@ -2352,7 +2358,7 @@
|
|
|
2352
2358
|
[
|
|
2353
2359
|
"s",
|
|
2354
2360
|
"scope <scope-name>",
|
|
2355
|
-
"name of the scope to test"
|
|
2361
|
+
"DEPRECATED. (use the pattern instead, e.g. \"scopeName/**\"). name of the scope to test"
|
|
2356
2362
|
]
|
|
2357
2363
|
],
|
|
2358
2364
|
"description": "test components in the workspace",
|
|
@@ -2362,7 +2368,7 @@
|
|
|
2362
2368
|
"arguments": [
|
|
2363
2369
|
{
|
|
2364
2370
|
"name": "component-pattern",
|
|
2365
|
-
"description": "
|
|
2371
|
+
"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"
|
|
2366
2372
|
}
|
|
2367
2373
|
]
|
|
2368
2374
|
},
|
|
@@ -2377,12 +2383,12 @@
|
|
|
2377
2383
|
]
|
|
2378
2384
|
],
|
|
2379
2385
|
"description": "shows the API schema of a certain component.",
|
|
2380
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"
|
|
2386
|
+
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit schema \"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",
|
|
2381
2387
|
"group": "development",
|
|
2382
2388
|
"private": false
|
|
2383
2389
|
},
|
|
2384
2390
|
{
|
|
2385
|
-
"name": "check-types [pattern]",
|
|
2391
|
+
"name": "check-types [component-pattern]",
|
|
2386
2392
|
"alias": "",
|
|
2387
2393
|
"options": [
|
|
2388
2394
|
[
|
|
@@ -2399,7 +2405,13 @@
|
|
|
2399
2405
|
"description": "check typescript types",
|
|
2400
2406
|
"extendedDescription": "",
|
|
2401
2407
|
"group": "development",
|
|
2402
|
-
"private": false
|
|
2408
|
+
"private": false,
|
|
2409
|
+
"arguments": [
|
|
2410
|
+
{
|
|
2411
|
+
"name": "component-pattern",
|
|
2412
|
+
"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"
|
|
2413
|
+
}
|
|
2414
|
+
]
|
|
2403
2415
|
},
|
|
2404
2416
|
{
|
|
2405
2417
|
"name": "aspect <sub-command>",
|
|
@@ -2421,7 +2433,7 @@
|
|
|
2421
2433
|
]
|
|
2422
2434
|
],
|
|
2423
2435
|
"description": "list all aspects configured on component(s)",
|
|
2424
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit aspect list \"org.scope/utils/**\"
|
|
2436
|
+
"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",
|
|
2425
2437
|
"group": "development",
|
|
2426
2438
|
"private": false
|
|
2427
2439
|
},
|
|
@@ -2450,7 +2462,7 @@
|
|
|
2450
2462
|
"alias": "",
|
|
2451
2463
|
"options": [],
|
|
2452
2464
|
"description": "set an aspect to component(s) with optional config.",
|
|
2453
|
-
"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/**\"
|
|
2465
|
+
"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",
|
|
2454
2466
|
"group": "development",
|
|
2455
2467
|
"private": false
|
|
2456
2468
|
},
|
|
@@ -2459,7 +2471,7 @@
|
|
|
2459
2471
|
"alias": "",
|
|
2460
2472
|
"options": [],
|
|
2461
2473
|
"description": "unset an aspect from component(s).",
|
|
2462
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit aspect unset \"org.scope/utils/**\"
|
|
2474
|
+
"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",
|
|
2463
2475
|
"group": "development",
|
|
2464
2476
|
"private": false
|
|
2465
2477
|
},
|
|
@@ -2468,7 +2480,7 @@
|
|
|
2468
2480
|
"alias": "",
|
|
2469
2481
|
"options": [],
|
|
2470
2482
|
"description": "update a version of an aspect",
|
|
2471
|
-
"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/**\"
|
|
2483
|
+
"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.",
|
|
2472
2484
|
"group": "development",
|
|
2473
2485
|
"private": false
|
|
2474
2486
|
}
|
|
@@ -2983,7 +2995,7 @@
|
|
|
2983
2995
|
]
|
|
2984
2996
|
],
|
|
2985
2997
|
"description": "replaces the components from the local scope with the corresponding packages",
|
|
2986
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit eject \"org.scope/utils/**\"
|
|
2998
|
+
"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",
|
|
2987
2999
|
"group": "development",
|
|
2988
3000
|
"private": false
|
|
2989
3001
|
},
|
package/cli-reference.mdx
CHANGED
|
@@ -74,9 +74,10 @@ and a package.tgz file generated by pkg aspect.
|
|
|
74
74
|
**Usage**: `aspect list [pattern]`
|
|
75
75
|
|
|
76
76
|
**Description**: list all aspects configured on component(s)
|
|
77
|
-
you can use a `<pattern>` for multiple component ids, such as `bit aspect list "org.scope/utils/**"`.
|
|
77
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect list "org.scope/utils/**"`.
|
|
78
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
78
79
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
79
|
-
|
|
80
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
80
81
|
|
|
81
82
|
| **Option** | **Option alias** | **Description** |
|
|
82
83
|
| ---------- | :--------------: | ------------------------------------------------- |
|
|
@@ -100,18 +101,20 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
100
101
|
**Description**: set an aspect to component(s) with optional config.
|
|
101
102
|
enter the config as stringified JSON (e.g. '{"foo":"bar"}' ).
|
|
102
103
|
if no config entered, the aspect will be set with empty config ({}).
|
|
103
|
-
you can use a `<pattern>` for multiple component ids, such as `bit aspect set "org.scope/utils/**"`.
|
|
104
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect set "org.scope/utils/**"`.
|
|
105
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
104
106
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
105
|
-
|
|
107
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
106
108
|
|
|
107
109
|
### aspect unset
|
|
108
110
|
|
|
109
111
|
**Usage**: `aspect unset <pattern> <aspect-id>`
|
|
110
112
|
|
|
111
113
|
**Description**: unset an aspect from component(s).
|
|
112
|
-
you can use a `<pattern>` for multiple component ids, such as `bit aspect unset "org.scope/utils/**"`.
|
|
114
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect unset "org.scope/utils/**"`.
|
|
115
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
113
116
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
114
|
-
|
|
117
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
115
118
|
|
|
116
119
|
### aspect update
|
|
117
120
|
|
|
@@ -119,9 +122,10 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
119
122
|
|
|
120
123
|
**Description**: update a version of an aspect
|
|
121
124
|
default to all components using the aspect, unless "pattern" is provided.
|
|
122
|
-
you can use a `<pattern>` for multiple component ids, such as `bit aspect update <aspect-id> "org.scope/utils/**"`.
|
|
125
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect update <aspect-id> "org.scope/utils/**"`.
|
|
126
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
123
127
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
124
|
-
|
|
128
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
125
129
|
|
|
126
130
|
examples:
|
|
127
131
|
"bit aspect update scope.org/aspect '**/ui/**'" - update "ui" components that use scope.org/aspect to the latest version
|
|
@@ -134,7 +138,7 @@ examples:
|
|
|
134
138
|
**Workspace only**: yes
|
|
135
139
|
**Description**: run set of tasks for build
|
|
136
140
|
|
|
137
|
-
`bit build [pattern]`
|
|
141
|
+
`bit build [component-pattern]`
|
|
138
142
|
|
|
139
143
|
| **Option** | **Option alias** | **Description** |
|
|
140
144
|
| ----------------------------------------------------------------------------------------------------------- | :--------------: | ----------------------------------------------------------------------------------------------- |
|
|
@@ -206,7 +210,7 @@ with no args, only workspace's capsules are deleted
|
|
|
206
210
|
**Workspace only**: yes
|
|
207
211
|
**Description**: check typescript types
|
|
208
212
|
|
|
209
|
-
`bit check-types [pattern]`
|
|
213
|
+
`bit check-types [component-pattern]`
|
|
210
214
|
|
|
211
215
|
| **Option** | **Option alias** | **Description** |
|
|
212
216
|
| ---------- | :--------------: | --------------------------------------------------------- |
|
|
@@ -450,9 +454,10 @@ bit diff => compare all modified components to their model version
|
|
|
450
454
|
**Alias**: `E`
|
|
451
455
|
**Workspace only**: yes
|
|
452
456
|
**Description**: replaces the components from the local scope with the corresponding packages
|
|
453
|
-
you can use a `<pattern>` for multiple component ids, such as `bit eject "org.scope/utils/**"`.
|
|
457
|
+
you can use a `<pattern>` for multiple component ids, such as `bit eject "org.scope/utils/**"`.
|
|
458
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
454
459
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
455
|
-
|
|
460
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
456
461
|
|
|
457
462
|
`bit eject <pattern>`
|
|
458
463
|
|
|
@@ -468,9 +473,10 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
468
473
|
|
|
469
474
|
**Workspace only**: yes
|
|
470
475
|
**Description**: eject components configuration (create a `component.json` file)
|
|
471
|
-
you can use a `<pattern>` for multiple component ids, such as `bit eject-conf "org.scope/utils/**"`.
|
|
476
|
+
you can use a `<pattern>` for multiple component ids, such as `bit eject-conf "org.scope/utils/**"`.
|
|
477
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
472
478
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
473
|
-
|
|
479
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
474
480
|
|
|
475
481
|
`bit eject-conf <pattern>`
|
|
476
482
|
|
|
@@ -515,9 +521,10 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
515
521
|
keep in mind that this doesn't remove envs that are set in the variants.
|
|
516
522
|
in only removes envs that appear in the .bitmap file, which were previously configured via "bit env set".
|
|
517
523
|
the purpose of this command is to remove the specific settings and let the the variants in workspace.jsonc to control the env.
|
|
518
|
-
you can use a `<pattern>` for multiple component ids, such as `bit env unset "org.scope/utils/**"`.
|
|
524
|
+
you can use a `<pattern>` for multiple component ids, such as `bit env unset "org.scope/utils/**"`.
|
|
525
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
519
526
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
520
|
-
|
|
527
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
521
528
|
|
|
522
529
|
### envs replace
|
|
523
530
|
|
|
@@ -873,7 +880,14 @@ move files or directories of component(s)
|
|
|
873
880
|
## pattern
|
|
874
881
|
|
|
875
882
|
**Workspace only**: yes
|
|
876
|
-
**Description**: list the component ids matching the given pattern
|
|
883
|
+
**Description**: list the component ids matching the given pattern
|
|
884
|
+
this command helps validating a pattern before using it in other commands.
|
|
885
|
+
a pattern can be a simple component-id or component-name. e.g. "ui/button".
|
|
886
|
+
a pattern can be used with wildcards for multiple component ids, e.g. "org.scope/utils/**".
|
|
887
|
+
to enter multiple patterns, separate them by a comma, e.g. "ui/_, lib/_"
|
|
888
|
+
to exclude, use "!". e.g. "ui/**, !ui/button"
|
|
889
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
890
|
+
the matching algorithm is done by multimatch (@see https://github.com/sindresorhus/multimatch)
|
|
877
891
|
|
|
878
892
|
`bit pattern <pattern>`
|
|
879
893
|
|
|
@@ -993,9 +1007,10 @@ to assign a default-scope to this component, please use "--scope" flag
|
|
|
993
1007
|
|
|
994
1008
|
**Workspace only**: yes
|
|
995
1009
|
**Description**: shows the API schema of a certain component.
|
|
996
|
-
you can use a `<pattern>` for multiple component ids, such as `bit schema "org.scope/utils/**"`.
|
|
1010
|
+
you can use a `<pattern>` for multiple component ids, such as `bit schema "org.scope/utils/**"`.
|
|
1011
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
997
1012
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
998
|
-
|
|
1013
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
999
1014
|
|
|
1000
1015
|
`bit schema <pattern>`
|
|
1001
1016
|
|
|
@@ -1019,9 +1034,10 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
1019
1034
|
**Description**: Sets components with a default-scope. If no component is specified, sets the workspace with a default scope
|
|
1020
1035
|
default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc. a component is set with a scope (as oppose to default scope) only once it is versioned.'
|
|
1021
1036
|
|
|
1022
|
-
you can use a `<pattern>` for multiple component ids, such as `bit scope set scope-name "org.scope/utils/**"`.
|
|
1037
|
+
you can use a `<pattern>` for multiple component ids, such as `bit scope set scope-name "org.scope/utils/**"`.
|
|
1038
|
+
use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
1023
1039
|
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
1024
|
-
|
|
1040
|
+
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
1025
1041
|
|
|
1026
1042
|
### scope rename
|
|
1027
1043
|
|
|
@@ -1129,12 +1145,11 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
1129
1145
|
**Alias**: `t`
|
|
1130
1146
|
**Workspace only**: yes
|
|
1131
1147
|
**Description**: create an immutable and exportable component snapshot, tagged with a release version.
|
|
1132
|
-
if no
|
|
1133
|
-
if
|
|
1134
|
-
https://bit.dev/components/tags
|
|
1135
|
-
you can use a pattern for multiple ids, such as bit tag "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
1148
|
+
if no patterns are provided, it will tag all new and modified components.
|
|
1149
|
+
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
|
|
1150
|
+
https://bit.dev/components/tags
|
|
1136
1151
|
|
|
1137
|
-
`bit tag [
|
|
1152
|
+
`bit tag [patterns...]`
|
|
1138
1153
|
|
|
1139
1154
|
| **Option** | **Option alias** | **Description** |
|
|
1140
1155
|
| ---------------------------- | :--------------: | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
@@ -1191,15 +1206,15 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
|
|
|
1191
1206
|
|
|
1192
1207
|
`bit test [component-pattern]`
|
|
1193
1208
|
|
|
1194
|
-
| **Option** | **Option alias** | **Description**
|
|
1195
|
-
| ---------------------- | :--------------: |
|
|
1196
|
-
| `--watch` | `-w` | start the tester in watch mode.
|
|
1197
|
-
| `--debug` | `-d` | start the tester in debug mode.
|
|
1198
|
-
| `--all` | `-a` | test all components, not only new and modified
|
|
1199
|
-
| `--junit <filepath>` | | write tests results as JUnit XML format into the specified file path
|
|
1200
|
-
| `--coverage` | | show code coverage data
|
|
1201
|
-
| `--env <id>` | `-e` | test only the given env
|
|
1202
|
-
| `--scope <scope-name>` | `-s` | name of the scope to test
|
|
1209
|
+
| **Option** | **Option alias** | **Description** |
|
|
1210
|
+
| ---------------------- | :--------------: | --------------------------------------------------------------------------------------- |
|
|
1211
|
+
| `--watch` | `-w` | start the tester in watch mode. |
|
|
1212
|
+
| `--debug` | `-d` | start the tester in debug mode. |
|
|
1213
|
+
| `--all` | `-a` | test all components, not only new and modified |
|
|
1214
|
+
| `--junit <filepath>` | | write tests results as JUnit XML format into the specified file path |
|
|
1215
|
+
| `--coverage` | | show code coverage data |
|
|
1216
|
+
| `--env <id>` | `-e` | test only the given env |
|
|
1217
|
+
| `--scope <scope-name>` | `-s` | DEPRECATED. (use the pattern instead, e.g. "scopeName/\*\*"). name of the scope to test |
|
|
1203
1218
|
|
|
1204
1219
|
---
|
|
1205
1220
|
|
package/dist/cli-reference.json
CHANGED
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
"name": "unset <component-pattern>",
|
|
1131
1131
|
"options": [],
|
|
1132
1132
|
"description": "un-sets an env from components that were previously set by \"bit env set\" or by a component template",
|
|
1133
|
-
"extendedDescription": "keep in mind that this doesn't remove envs that are set in the 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 remove the specific settings and let the the variants in workspace.jsonc to control the env.\nyou can use a `<pattern>` for multiple component ids, such as `bit env unset \"org.scope/utils/**\"
|
|
1133
|
+
"extendedDescription": "keep in mind that this doesn't remove envs that are set in the 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 remove the specific settings and let the the variants in workspace.jsonc to control the 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\"\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",
|
|
1134
1134
|
"group": "development",
|
|
1135
1135
|
"arguments": [
|
|
1136
1136
|
{
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
"name": "set <scope-name> [component-pattern]",
|
|
1226
1226
|
"options": [],
|
|
1227
1227
|
"description": "Sets components with a default-scope. If no component is specified, sets the workspace with a default scope",
|
|
1228
|
-
"extendedDescription": "default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc. a 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/**\"
|
|
1228
|
+
"extendedDescription": "default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc. a 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\"\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",
|
|
1229
1229
|
"group": "development",
|
|
1230
1230
|
"arguments": [
|
|
1231
1231
|
{
|
|
@@ -1353,7 +1353,7 @@
|
|
|
1353
1353
|
]
|
|
1354
1354
|
],
|
|
1355
1355
|
"description": "eject components configuration (create a `component.json` file)",
|
|
1356
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit eject-conf \"org.scope/utils/**\"
|
|
1356
|
+
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit eject-conf \"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",
|
|
1357
1357
|
"group": "development",
|
|
1358
1358
|
"private": false
|
|
1359
1359
|
},
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
]
|
|
1525
1525
|
],
|
|
1526
1526
|
"description": "list the component ids matching the given pattern",
|
|
1527
|
-
"extendedDescription": "",
|
|
1527
|
+
"extendedDescription": "this command helps validating a pattern before using it in other commands.\na pattern can be a simple component-id or component-name. e.g. \"ui/button\".\na pattern can be used with wildcards for multiple component ids, e.g. \"org.scope/utils/**\".\nto enter multiple patterns, separate them by a comma, e.g. \"ui/*, lib/*\"\nto exclude, use \"!\". e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nthe matching algorithm is done by multimatch (@see https://github.com/sindresorhus/multimatch)\n",
|
|
1528
1528
|
"group": "development",
|
|
1529
1529
|
"private": false
|
|
1530
1530
|
},
|
|
@@ -1734,7 +1734,7 @@
|
|
|
1734
1734
|
]
|
|
1735
1735
|
},
|
|
1736
1736
|
{
|
|
1737
|
-
"name": "build [pattern]",
|
|
1737
|
+
"name": "build [component-pattern]",
|
|
1738
1738
|
"alias": "",
|
|
1739
1739
|
"options": [
|
|
1740
1740
|
[
|
|
@@ -1776,7 +1776,13 @@
|
|
|
1776
1776
|
"description": "run set of tasks for build",
|
|
1777
1777
|
"extendedDescription": "",
|
|
1778
1778
|
"group": "development",
|
|
1779
|
-
"private": false
|
|
1779
|
+
"private": false,
|
|
1780
|
+
"arguments": [
|
|
1781
|
+
{
|
|
1782
|
+
"name": "component-pattern",
|
|
1783
|
+
"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"
|
|
1784
|
+
}
|
|
1785
|
+
]
|
|
1780
1786
|
},
|
|
1781
1787
|
{
|
|
1782
1788
|
"name": "artifacts <pattern...>",
|
|
@@ -1924,7 +1930,7 @@
|
|
|
1924
1930
|
"private": true
|
|
1925
1931
|
},
|
|
1926
1932
|
{
|
|
1927
|
-
"name": "tag [
|
|
1933
|
+
"name": "tag [patterns...]",
|
|
1928
1934
|
"alias": "t",
|
|
1929
1935
|
"options": [
|
|
1930
1936
|
[
|
|
@@ -2054,14 +2060,14 @@
|
|
|
2054
2060
|
]
|
|
2055
2061
|
],
|
|
2056
2062
|
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
2057
|
-
"extendedDescription": "if no
|
|
2063
|
+
"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\nhttps://bit.dev/components/tags",
|
|
2058
2064
|
"group": "development",
|
|
2059
2065
|
"private": false,
|
|
2060
2066
|
"remoteOp": true,
|
|
2061
2067
|
"arguments": [
|
|
2062
2068
|
{
|
|
2063
|
-
"name": "
|
|
2064
|
-
"description": "a list of
|
|
2069
|
+
"name": "patterns...",
|
|
2070
|
+
"description": "a list of patterns (separated by space). run \"bit pattern --help\" to get more data about patterns. By default, all modified are tagged."
|
|
2065
2071
|
}
|
|
2066
2072
|
],
|
|
2067
2073
|
"examples": [
|
|
@@ -2352,7 +2358,7 @@
|
|
|
2352
2358
|
[
|
|
2353
2359
|
"s",
|
|
2354
2360
|
"scope <scope-name>",
|
|
2355
|
-
"name of the scope to test"
|
|
2361
|
+
"DEPRECATED. (use the pattern instead, e.g. \"scopeName/**\"). name of the scope to test"
|
|
2356
2362
|
]
|
|
2357
2363
|
],
|
|
2358
2364
|
"description": "test components in the workspace",
|
|
@@ -2362,7 +2368,7 @@
|
|
|
2362
2368
|
"arguments": [
|
|
2363
2369
|
{
|
|
2364
2370
|
"name": "component-pattern",
|
|
2365
|
-
"description": "
|
|
2371
|
+
"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"
|
|
2366
2372
|
}
|
|
2367
2373
|
]
|
|
2368
2374
|
},
|
|
@@ -2377,12 +2383,12 @@
|
|
|
2377
2383
|
]
|
|
2378
2384
|
],
|
|
2379
2385
|
"description": "shows the API schema of a certain component.",
|
|
2380
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit schema \"org.scope/utils/**\"
|
|
2386
|
+
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit schema \"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",
|
|
2381
2387
|
"group": "development",
|
|
2382
2388
|
"private": false
|
|
2383
2389
|
},
|
|
2384
2390
|
{
|
|
2385
|
-
"name": "check-types [pattern]",
|
|
2391
|
+
"name": "check-types [component-pattern]",
|
|
2386
2392
|
"alias": "",
|
|
2387
2393
|
"options": [
|
|
2388
2394
|
[
|
|
@@ -2399,7 +2405,13 @@
|
|
|
2399
2405
|
"description": "check typescript types",
|
|
2400
2406
|
"extendedDescription": "",
|
|
2401
2407
|
"group": "development",
|
|
2402
|
-
"private": false
|
|
2408
|
+
"private": false,
|
|
2409
|
+
"arguments": [
|
|
2410
|
+
{
|
|
2411
|
+
"name": "component-pattern",
|
|
2412
|
+
"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"
|
|
2413
|
+
}
|
|
2414
|
+
]
|
|
2403
2415
|
},
|
|
2404
2416
|
{
|
|
2405
2417
|
"name": "aspect <sub-command>",
|
|
@@ -2421,7 +2433,7 @@
|
|
|
2421
2433
|
]
|
|
2422
2434
|
],
|
|
2423
2435
|
"description": "list all aspects configured on component(s)",
|
|
2424
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit aspect list \"org.scope/utils/**\"
|
|
2436
|
+
"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",
|
|
2425
2437
|
"group": "development",
|
|
2426
2438
|
"private": false
|
|
2427
2439
|
},
|
|
@@ -2450,7 +2462,7 @@
|
|
|
2450
2462
|
"alias": "",
|
|
2451
2463
|
"options": [],
|
|
2452
2464
|
"description": "set an aspect to component(s) with optional config.",
|
|
2453
|
-
"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/**\"
|
|
2465
|
+
"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",
|
|
2454
2466
|
"group": "development",
|
|
2455
2467
|
"private": false
|
|
2456
2468
|
},
|
|
@@ -2459,7 +2471,7 @@
|
|
|
2459
2471
|
"alias": "",
|
|
2460
2472
|
"options": [],
|
|
2461
2473
|
"description": "unset an aspect from component(s).",
|
|
2462
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit aspect unset \"org.scope/utils/**\"
|
|
2474
|
+
"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",
|
|
2463
2475
|
"group": "development",
|
|
2464
2476
|
"private": false
|
|
2465
2477
|
},
|
|
@@ -2468,7 +2480,7 @@
|
|
|
2468
2480
|
"alias": "",
|
|
2469
2481
|
"options": [],
|
|
2470
2482
|
"description": "update a version of an aspect",
|
|
2471
|
-
"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/**\"
|
|
2483
|
+
"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.",
|
|
2472
2484
|
"group": "development",
|
|
2473
2485
|
"private": false
|
|
2474
2486
|
}
|
|
@@ -2983,7 +2995,7 @@
|
|
|
2983
2995
|
]
|
|
2984
2996
|
],
|
|
2985
2997
|
"description": "replaces the components from the local scope with the corresponding packages",
|
|
2986
|
-
"extendedDescription": "you can use a `<pattern>` for multiple component ids, such as `bit eject \"org.scope/utils/**\"
|
|
2998
|
+
"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",
|
|
2987
2999
|
"group": "development",
|
|
2988
3000
|
"private": false
|
|
2989
3001
|
},
|