@teambit/harmony.content.cli-reference 2.0.195 → 2.0.197
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.docs.mdx +4 -3
- package/cli-reference.json +1889 -3789
- package/cli-reference.mdx +543 -1476
- package/dist/cli-reference.docs.mdx +4 -3
- package/dist/cli-reference.json +1889 -3789
- package/dist/cli-reference.mdx.js +1944 -7682
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/preview-1710232535180.js +7 -0
- package/package.json +2 -2
- package/dist/preview-1710040632859.js +0 -7
package/cli-reference.mdx
CHANGED
|
@@ -1,47 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
```sh
|
|
6
|
-
bit --help
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Run the following to get help on a specific command:
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
bit COMMAND --help
|
|
13
|
-
```
|
|
1
|
+
---
|
|
2
|
+
id: cli-all
|
|
3
|
+
title: CLI Commands
|
|
4
|
+
---
|
|
14
5
|
|
|
15
|
-
|
|
6
|
+
# CLI Reference
|
|
16
7
|
|
|
17
|
-
|
|
18
|
-
bit COMMAND SUB_COMMAND --help
|
|
19
|
-
```
|
|
8
|
+
Commands that are marked as workspace only must be executed inside a workspace. Commands that are marked as not workspace only, can be executed from anywhere and will run on a remote server.
|
|
20
9
|
|
|
21
10
|
## add
|
|
22
11
|
|
|
23
12
|
**Alias**: `a`
|
|
24
|
-
**
|
|
25
|
-
|
|
13
|
+
**Workspace only**: yes
|
|
14
|
+
**Description**: add any subset of files to be tracked as a component(s)
|
|
15
|
+
all flags support glob patterns and {PARENT} {FILE_NAME} annotations
|
|
16
|
+
https://bit.dev/reference/components/adding-components
|
|
26
17
|
|
|
27
18
|
`bit add [path...]`
|
|
28
19
|
|
|
29
|
-
| **Option**
|
|
30
|
-
|
|
|
31
|
-
| `--id <name>`
|
|
32
|
-
| `--main <file>`
|
|
33
|
-
| `--
|
|
34
|
-
| `--
|
|
35
|
-
| `--
|
|
36
|
-
| `--
|
|
37
|
-
| `--json` | `-j` | output as json format |
|
|
20
|
+
| **Option** | **Option alias** | **Description** |
|
|
21
|
+
| ---------------------------------- | :--------------: | ---------------------------------------------------------------------------------------- |
|
|
22
|
+
| `--id <name>` | `-i` | manually set component id |
|
|
23
|
+
| `--main <file>` | `-m` | define entry point for the components |
|
|
24
|
+
| `--tests <file>/"<file>,<file>"` | `-t` | specify test files to track. use quotation marks to list files or use a glob pattern |
|
|
25
|
+
| `--namespace <namespace>` | `-n` | organize component in a namespace |
|
|
26
|
+
| `--exclude <file>/"<file>,<file>"` | `-e` | exclude file from being tracked. use quotation marks to list files or use a glob pattern |
|
|
27
|
+
| `--override <boolean>` | `-o` | override existing component if exists (default = false) |
|
|
38
28
|
|
|
39
29
|
---
|
|
40
30
|
|
|
41
31
|
## app
|
|
42
32
|
|
|
43
|
-
**
|
|
44
|
-
**Description**:
|
|
33
|
+
**Workspace only**: yes
|
|
34
|
+
**Description**: manage applications
|
|
45
35
|
|
|
46
36
|
`bit app <sub-command>`
|
|
47
37
|
|
|
@@ -49,43 +39,23 @@ Learn the recommended workflow for tracking directories as components, in the li
|
|
|
49
39
|
|
|
50
40
|
**Usage**: `app list`
|
|
51
41
|
|
|
52
|
-
**Description**: list all registered
|
|
42
|
+
**Description**: list all registered applications
|
|
53
43
|
|
|
54
44
|
| **Option** | **Option alias** | **Description** |
|
|
55
45
|
| ---------- | :--------------: | ---------------------------------------- |
|
|
56
46
|
| `--json` | `-j` | return the component data in json format |
|
|
57
47
|
|
|
58
|
-
### app run
|
|
59
|
-
|
|
60
|
-
**Usage**: `app run <app-name>`
|
|
61
|
-
|
|
62
|
-
**Description**: locally run an app component (independent of bit's dev server)
|
|
63
|
-
|
|
64
|
-
| **Arg** | **Description** |
|
|
65
|
-
| ---------- | :--------------------------------------------------------------------------------------------------: |
|
|
66
|
-
| `app-name` | the app's name is registered by the app (run 'bit app list' to list the names of the available apps) |
|
|
67
|
-
|
|
68
|
-
| **Option** | **Option alias** | **Description** |
|
|
69
|
-
| ---------------------- | :--------------: | -------------------------------------------------------- |
|
|
70
|
-
| `--dev` | `-d` | start the application in dev mode. |
|
|
71
|
-
| `--port [port-number]` | `-p` | port to run the app on |
|
|
72
|
-
| `--verbose` | `-v` | show verbose output for inspection and print stack trace |
|
|
73
|
-
| `--watch` | `-w` | watch and compile your components upon changes |
|
|
74
|
-
|
|
75
48
|
---
|
|
76
49
|
|
|
77
50
|
## artifacts
|
|
78
51
|
|
|
79
|
-
**
|
|
52
|
+
**Workspace only**: yes
|
|
53
|
+
**Description**: EXPERIMENTAL. list and download components artifacts.
|
|
80
54
|
artifacts are created on isolated capsules during tag or snap commands.
|
|
81
55
|
example of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester
|
|
82
56
|
and a package.tgz file generated by pkg aspect.
|
|
83
57
|
|
|
84
|
-
`bit artifacts <
|
|
85
|
-
|
|
86
|
-
| **Arg** | **Description** |
|
|
87
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
88
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
58
|
+
`bit artifacts <pattern...>`
|
|
89
59
|
|
|
90
60
|
| **Option** | **Option alias** | **Description** |
|
|
91
61
|
| ---------------------- | :--------------: | -------------------------------------------------------------------------------------------------------- |
|
|
@@ -98,7 +68,8 @@ and a package.tgz file generated by pkg aspect.
|
|
|
98
68
|
|
|
99
69
|
## aspect
|
|
100
70
|
|
|
101
|
-
**
|
|
71
|
+
**Workspace only**: yes
|
|
72
|
+
**Description**: EXPERIMENTAL. manage aspects
|
|
102
73
|
|
|
103
74
|
`bit aspect <sub-command>`
|
|
104
75
|
|
|
@@ -106,114 +77,98 @@ and a package.tgz file generated by pkg aspect.
|
|
|
106
77
|
|
|
107
78
|
**Usage**: `aspect list [pattern]`
|
|
108
79
|
|
|
109
|
-
**Description**: list all aspects configured on component(s)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
| `pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
80
|
+
**Description**: list all aspects configured on component(s)
|
|
81
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect list "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
82
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
83
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
114
84
|
|
|
115
|
-
| **Option** | **Option alias** | **Description**
|
|
116
|
-
| ---------- | :--------------: |
|
|
117
|
-
| `--debug` | `-d` | show the origins
|
|
85
|
+
| **Option** | **Option alias** | **Description** |
|
|
86
|
+
| ---------- | :--------------: | ------------------------------------------------- |
|
|
87
|
+
| `--debug` | `-d` | show the origins were the aspects were taken from |
|
|
118
88
|
|
|
119
89
|
### aspect get
|
|
120
90
|
|
|
121
|
-
**Usage**: `aspect get <component-
|
|
91
|
+
**Usage**: `aspect get <component-id>`
|
|
122
92
|
|
|
123
|
-
**Description**:
|
|
93
|
+
**Description**: show aspects' data and configuration of the given component
|
|
124
94
|
|
|
125
|
-
| **
|
|
126
|
-
|
|
|
127
|
-
| `
|
|
128
|
-
|
|
129
|
-
| **Option** | **Option alias** | **Description** |
|
|
130
|
-
| ---------- | :--------------: | -------------------------------------------------- |
|
|
131
|
-
| `--debug` | `-d` | show the origins where the aspects were taken from |
|
|
132
|
-
| `--json` | `-j` | format as json |
|
|
95
|
+
| **Option** | **Option alias** | **Description** |
|
|
96
|
+
| ---------- | :--------------: | ------------------------------------------------- |
|
|
97
|
+
| `--debug` | `-d` | show the origins were the aspects were taken from |
|
|
98
|
+
| `--json` | `-j` | format as json |
|
|
133
99
|
|
|
134
100
|
### aspect set
|
|
135
101
|
|
|
136
102
|
**Usage**: `aspect set <pattern> <aspect-id> [config]`
|
|
137
103
|
|
|
138
|
-
**Description**: set
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
| `config` | 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 ({}). |
|
|
145
|
-
|
|
146
|
-
| **Option** | **Option alias** | **Description** |
|
|
147
|
-
| ---------- | :--------------: | ---------------------------------------------------------------------------------------------- |
|
|
148
|
-
| `--merge` | `-m` | merge with an existing config if exits. (by default, it replaces overlapping existing configs) |
|
|
104
|
+
**Description**: set an aspect to component(s) with optional config.
|
|
105
|
+
enter the config as stringified JSON (e.g. '{"foo":"bar"}' ).
|
|
106
|
+
if no config entered, the aspect will be set with empty config ({}).
|
|
107
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect set "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
108
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
109
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
149
110
|
|
|
150
111
|
### aspect unset
|
|
151
112
|
|
|
152
113
|
**Usage**: `aspect unset <pattern> <aspect-id>`
|
|
153
114
|
|
|
154
|
-
**Description**: unset an aspect from component(s).
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
| `pattern` | the components to target. component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
159
|
-
| `aspect-id` | the aspect's component id |
|
|
115
|
+
**Description**: unset an aspect from component(s).
|
|
116
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect unset "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
117
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
118
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
160
119
|
|
|
161
120
|
### aspect update
|
|
162
121
|
|
|
163
122
|
**Usage**: `aspect update <aspect-id> [pattern]`
|
|
164
123
|
|
|
165
|
-
**Description**: update a version of an aspect
|
|
124
|
+
**Description**: update a version of an aspect
|
|
125
|
+
default to all components using the aspect, unless "pattern" is provided.
|
|
126
|
+
you can use a `<pattern>` for multiple component ids, such as `bit aspect update <aspect-id> "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
127
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
128
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
166
129
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
| `pattern` | the components to update (defaults to all components). component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
130
|
+
examples:
|
|
131
|
+
"bit aspect update scope.org/aspect '**/ui/**'" - update "ui" components that use scope.org/aspect to the latest version
|
|
132
|
+
"bit aspect update scope.org/aspect@2.0.0" - updates all components using scope.org/aspect to version 2.0.0.
|
|
171
133
|
|
|
172
134
|
---
|
|
173
135
|
|
|
174
136
|
## build
|
|
175
137
|
|
|
176
|
-
**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
`bit build [component-pattern]`
|
|
138
|
+
**Workspace only**: yes
|
|
139
|
+
**Description**: run set of tasks for build
|
|
180
140
|
|
|
181
|
-
|
|
182
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
183
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
141
|
+
`bit build [pattern]`
|
|
184
142
|
|
|
185
|
-
| **Option**
|
|
186
|
-
|
|
|
187
|
-
| `--all`
|
|
188
|
-
| `--
|
|
189
|
-
| `--
|
|
190
|
-
| `--
|
|
191
|
-
| `--
|
|
192
|
-
|
|
|
193
|
-
| `--cache-packages-on-capsule-root`
|
|
194
|
-
| `--list-tasks <string>`
|
|
195
|
-
| `--skip-tests` | | skip running component tests during build process |
|
|
196
|
-
| `--fail-fast` | | stop pipeline execution on the first failed task (by default a task is skipped only when its dependency failed) |
|
|
197
|
-
| `--include-snap` | | EXPERIMENTAL. include snap pipeline tasks. Warning: this may deploy/publish if you have such tasks |
|
|
198
|
-
| `--include-tag` | | EXPERIMENTAL. include tag pipeline tasks. Warning: this may deploy/publish if you have such tasks |
|
|
143
|
+
| **Option** | **Option alias** | **Description** |
|
|
144
|
+
| ----------------------------------------------------------------------------------------------------------- | :--------------: | ----------------------------------------------------------------------------------------------- |
|
|
145
|
+
| `--all` | `-a` | build all components, not only modified and new |
|
|
146
|
+
| `--dev` | `-d` | run the pipeline in dev mode |
|
|
147
|
+
| `--install` | | install core aspects in capsules |
|
|
148
|
+
| `--reuse-capsules` | | avoid deleting the capsules root-dir before starting the build |
|
|
149
|
+
| `--tasks <string>` | | build the specified task(s) only. for multiple tasks, separate by a comma and wrap with quotes. |
|
|
150
|
+
| specify the task-name (e.g. "TypescriptCompiler") or the task-aspect-id (e.g. teambit.compilation/compiler) |
|
|
151
|
+
| `--cache-packages-on-capsule-root` | | set the package-manager cache on the capsule root |
|
|
152
|
+
| `--list-tasks <string>` | | list tasks of an env or a component-id for each one of the pipelines: build, tag and snap |
|
|
199
153
|
|
|
200
154
|
---
|
|
201
155
|
|
|
202
156
|
## capsule
|
|
203
157
|
|
|
204
|
-
**
|
|
205
|
-
|
|
158
|
+
**Workspace only**: yes
|
|
159
|
+
**Description**: manage capsules.
|
|
160
|
+
a capsule is a directory contains the component code, isolated from the workspace.
|
|
206
161
|
normally, capsules are created during the build process, the component files are copied and the packages are installed
|
|
207
162
|
via the configured package-manager. the purpose is to compile/test them in isolation to make sure they will work for
|
|
208
163
|
other users after publishing/exporting them.
|
|
209
164
|
|
|
210
|
-
`bit capsule
|
|
165
|
+
`bit capsule <sub-command>`
|
|
211
166
|
|
|
212
167
|
### capsule list
|
|
213
168
|
|
|
214
169
|
**Usage**: `capsule list`
|
|
215
170
|
|
|
216
|
-
**Description**: list
|
|
171
|
+
**Description**: list all capsules
|
|
217
172
|
|
|
218
173
|
| **Option** | **Option alias** | **Description** |
|
|
219
174
|
| ---------- | :--------------: | --------------- |
|
|
@@ -221,9 +176,9 @@ other users after publishing/exporting them.
|
|
|
221
176
|
|
|
222
177
|
### capsule create
|
|
223
178
|
|
|
224
|
-
**Usage**: `capsule create [
|
|
179
|
+
**Usage**: `capsule create [componentIds...]`
|
|
225
180
|
|
|
226
|
-
**Description**: create capsules
|
|
181
|
+
**Description**: create capsules
|
|
227
182
|
|
|
228
183
|
| **Option** | **Option alias** | **Description** |
|
|
229
184
|
| -------------------------- | :--------------: | ------------------------------------------------------------------------------------------------------- |
|
|
@@ -232,7 +187,6 @@ other users after publishing/exporting them.
|
|
|
232
187
|
| `--always-new` | `-a` | create new environment for capsule |
|
|
233
188
|
| `--seeders-only` | `-s` | create capsules for the seeders only (not for the entire graph) |
|
|
234
189
|
| `--id <name>` | `-i` | reuse capsule of certain name |
|
|
235
|
-
| `--use-hash` | | whether to use hash function (of base dir) as capsules root dir name |
|
|
236
190
|
| `--json` | `-j` | json format |
|
|
237
191
|
| `--install-packages` | `-d` | install packages by the package-manager |
|
|
238
192
|
| `--package-manager <name>` | `-p` | npm, yarn or pnpm, default to npm |
|
|
@@ -241,29 +195,21 @@ other users after publishing/exporting them.
|
|
|
241
195
|
|
|
242
196
|
**Usage**: `capsule delete`
|
|
243
197
|
|
|
244
|
-
**Description**: delete capsules
|
|
245
|
-
with no args, only workspace's capsules are deleted
|
|
198
|
+
**Description**: delete capsules. with no args, only workspace's capsules are deleted
|
|
246
199
|
|
|
247
200
|
| **Option** | **Option alias** | **Description** |
|
|
248
201
|
| ----------------- | :--------------: | ------------------------------------------------- |
|
|
249
202
|
| `--scope-aspects` | | delete scope-aspects capsules |
|
|
250
203
|
| `--all` | `-a` | delete all capsules for all workspaces and scopes |
|
|
251
204
|
|
|
252
|
-
| **Option** | **Option alias** | **Description** |
|
|
253
|
-
| ---------- | :--------------: | --------------- |
|
|
254
|
-
| `--json` | `-j` | json format |
|
|
255
|
-
|
|
256
205
|
---
|
|
257
206
|
|
|
258
207
|
## check-types
|
|
259
208
|
|
|
209
|
+
**Workspace only**: yes
|
|
260
210
|
**Description**: check typescript types
|
|
261
211
|
|
|
262
|
-
`bit check-types [
|
|
263
|
-
|
|
264
|
-
| **Arg** | **Description** |
|
|
265
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
266
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
212
|
+
`bit check-types [pattern]`
|
|
267
213
|
|
|
268
214
|
| **Option** | **Option alias** | **Description** |
|
|
269
215
|
| ---------- | :--------------: | --------------------------------------------------------- |
|
|
@@ -275,44 +221,43 @@ with no args, only workspace's capsules are deleted
|
|
|
275
221
|
## checkout
|
|
276
222
|
|
|
277
223
|
**Alias**: `U`
|
|
278
|
-
**
|
|
279
|
-
|
|
280
|
-
`bit checkout <version> [
|
|
281
|
-
`bit checkout
|
|
282
|
-
`bit checkout
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
|
289
|
-
|
|
|
290
|
-
| `
|
|
291
|
-
| `
|
|
292
|
-
|
|
293
|
-
|
|
|
294
|
-
|
|
|
295
|
-
| `--
|
|
296
|
-
| `--
|
|
297
|
-
| `--
|
|
298
|
-
| `--
|
|
299
|
-
| `--
|
|
300
|
-
| `--
|
|
301
|
-
| `--skip-dependency-installation` | `-x` | do not auto-install dependencies of the imported components |
|
|
302
|
-
| `--force-ours` | | do not merge, preserve local files as is |
|
|
303
|
-
| `--force-theirs` | | do not merge, just overwrite with incoming files |
|
|
224
|
+
**Workspace only**: yes
|
|
225
|
+
**Description**: switch between component versions or remove local changes
|
|
226
|
+
`bit checkout <version> [ids...]` => checkout the specified ids (or all components when --all is used) to the specified version
|
|
227
|
+
`bit checkout latest [ids...]` => checkout the specified ids (or all components when --all is used) to their latest versions
|
|
228
|
+
`bit checkout [ids...] --reset` => remove local modifications from the specified ids (or all components when --all is used)
|
|
229
|
+
you can use a pattern for multiple ids, such as bit checkout 0.0.1 "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
230
|
+
|
|
231
|
+
`bit checkout [values...]`
|
|
232
|
+
|
|
233
|
+
| **Option** | **Option alias** | **Description** |
|
|
234
|
+
| -------------------------------- | :--------------: | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
235
|
+
| `--interactive-merge` | `-i` | when a component is modified and the merge process found conflicts, display options to resolve them |
|
|
236
|
+
| `--ours` | `-o` | in case of a conflict, override the used version with the current modification |
|
|
237
|
+
| `--theirs` | `-t` | in case of a conflict, override the current modification with the specified version |
|
|
238
|
+
| `--manual` | `-m` | in case of a conflict, leave the files with a conflict state to resolve them manually later |
|
|
239
|
+
| `--reset` | `-r` | remove local changes |
|
|
240
|
+
| `--all` | `-a` | all components |
|
|
241
|
+
| `--verbose` | `-v` | showing verbose output for inspection |
|
|
242
|
+
| `--skip-npm-install` | | DEPRECATED. use "--skip-dependency-installation" instead |
|
|
243
|
+
| `--skip-dependency-installation` | | do not install packages of the imported components |
|
|
244
|
+
| `--ignore-package-json` | | do not generate package.json for the imported component(s). (it automatically enables skip-npm-install and save-dependencies-as-components flags) |
|
|
245
|
+
| `--conf [path]` | | write the configuration file (bit.json) and the envs configuration files (use --conf without path to write to the default dir) |
|
|
246
|
+
| `--ignore-dist` | | do not write dist files (when exist) |
|
|
304
247
|
|
|
305
248
|
---
|
|
306
249
|
|
|
307
250
|
## clear-cache
|
|
308
251
|
|
|
309
252
|
**Alias**: `cc`
|
|
253
|
+
**Workspace only**: no
|
|
310
254
|
**Description**: clears Bit's cache from current working machine
|
|
311
255
|
The following gets removed by this command:
|
|
312
256
|
|
|
313
257
|
1. V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)
|
|
314
|
-
2. components cache on the filesystem (mainly the dependencies graph and
|
|
315
|
-
3. scope's index file, which maps the component-id:object-hash
|
|
258
|
+
2. components cache on the filesystem (mainly the dependencies graph and reference)
|
|
259
|
+
3. scope's index file, which maps the component-id:object-hash
|
|
260
|
+
https://bit.dev/reference/workspace/clearing-cache
|
|
316
261
|
|
|
317
262
|
`bit clear-cache`
|
|
318
263
|
|
|
@@ -324,6 +269,7 @@ The following gets removed by this command:
|
|
|
324
269
|
|
|
325
270
|
## cli
|
|
326
271
|
|
|
272
|
+
**Workspace only**: yes
|
|
327
273
|
**Description**: EXPERIMENTAL. enters bit cli program and generates commands list
|
|
328
274
|
|
|
329
275
|
`bit cli`
|
|
@@ -332,25 +278,20 @@ The following gets removed by this command:
|
|
|
332
278
|
|
|
333
279
|
**Usage**: `cli generate`
|
|
334
280
|
|
|
335
|
-
**Description**: generate an .md file with all commands details
|
|
281
|
+
**Description**: EXPERIMENTAL. generate an .md file with all commands details
|
|
336
282
|
|
|
337
283
|
| **Option** | **Option alias** | **Description** |
|
|
338
284
|
| ------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
339
285
|
| `--metadata` | | metadata/front-matter to place at the top of the .md file, enter as an object e.g. --metadata.id=cli --metadata.title=commands |
|
|
340
|
-
| `--docs` | | generate the cli-reference.docs.mdx file |
|
|
341
|
-
| `--json` | `-j` | output the commands info as JSON |
|
|
342
286
|
|
|
343
287
|
---
|
|
344
288
|
|
|
345
289
|
## compile
|
|
346
290
|
|
|
347
|
-
**
|
|
291
|
+
**Workspace only**: yes
|
|
292
|
+
**Description**: compile components in the development workspace
|
|
348
293
|
|
|
349
|
-
`bit compile [component
|
|
350
|
-
|
|
351
|
-
| **Arg** | **Description** |
|
|
352
|
-
| -------------------- | :---------------------------------------------------------------------: |
|
|
353
|
-
| `component-names...` | a list of component names or component IDs (defaults to all components) |
|
|
294
|
+
`bit compile [component...]`
|
|
354
295
|
|
|
355
296
|
| **Option** | **Option alias** | **Description** |
|
|
356
297
|
| ------------------- | :--------------: | ------------------------------------------------------------- |
|
|
@@ -363,16 +304,31 @@ The following gets removed by this command:
|
|
|
363
304
|
|
|
364
305
|
## completion
|
|
365
306
|
|
|
307
|
+
**Workspace only**: yes
|
|
366
308
|
**Description**: enable bash/zsh-completion shortcuts for commands and options
|
|
367
309
|
|
|
368
310
|
`bit completion`
|
|
369
311
|
|
|
370
312
|
---
|
|
371
313
|
|
|
314
|
+
## component-issues
|
|
315
|
+
|
|
316
|
+
**Workspace only**: yes
|
|
317
|
+
**Description**: list available component-issues
|
|
318
|
+
|
|
319
|
+
`bit component-issues`
|
|
320
|
+
|
|
321
|
+
| **Option** | **Option alias** | **Description** |
|
|
322
|
+
| ---------- | :--------------: | --------------- |
|
|
323
|
+
| `--json` | `-j` | json format |
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
372
327
|
## config
|
|
373
328
|
|
|
374
|
-
**
|
|
375
|
-
|
|
329
|
+
**Workspace only**: yes
|
|
330
|
+
**Description**: global config management.
|
|
331
|
+
https://bit.dev/reference/config/bit-config
|
|
376
332
|
|
|
377
333
|
`bit config`
|
|
378
334
|
|
|
@@ -380,9 +336,7 @@ https://bit.dev/reference/config/bit-config
|
|
|
380
336
|
|
|
381
337
|
**Usage**: `config set <key> <val>`
|
|
382
338
|
|
|
383
|
-
**Description**: set a global configuration
|
|
384
|
-
to set temporary configuration by env variable, prefix with "BIT*CONFIG", replace "." with "*" and change to upper case.
|
|
385
|
-
for example, "user.token" becomes "BIT_CONFIG_USER_TOKEN"
|
|
339
|
+
**Description**: set a global configuration
|
|
386
340
|
|
|
387
341
|
### config del
|
|
388
342
|
|
|
@@ -394,7 +348,7 @@ for example, "user.token" becomes "BIT_CONFIG_USER_TOKEN"
|
|
|
394
348
|
|
|
395
349
|
**Usage**: `config get <key>`
|
|
396
350
|
|
|
397
|
-
**Description**: get a
|
|
351
|
+
**Description**: get a global configuration
|
|
398
352
|
|
|
399
353
|
### config list
|
|
400
354
|
|
|
@@ -406,279 +360,132 @@ for example, "user.token" becomes "BIT_CONFIG_USER_TOKEN"
|
|
|
406
360
|
|
|
407
361
|
## create
|
|
408
362
|
|
|
409
|
-
**
|
|
410
|
-
|
|
411
|
-
`bit create <template-name> <component-names...>`
|
|
363
|
+
**Workspace only**: yes
|
|
364
|
+
**Description**: create a new component from a template
|
|
412
365
|
|
|
413
|
-
|
|
414
|
-
| -------------------- | :-----------------------------------------------------------------------------------------------: |
|
|
415
|
-
| `template-name` | the template for generating the component (run 'bit templates' for a list of available templates) |
|
|
416
|
-
| `component-names...` | a list of component names to generate |
|
|
366
|
+
`bit create <templateName> <componentNames...>`
|
|
417
367
|
|
|
418
368
|
| **Option** | **Option alias** | **Description** |
|
|
419
369
|
| ---------------------- | :--------------: | ----------------------------------------------------------------------------------- |
|
|
420
370
|
| `--namespace <string>` | `-n` | sets the component's namespace and nested dirs inside the scope |
|
|
421
371
|
| `--scope <string>` | `-s` | sets the component's scope-name. if not entered, the default-scope will be used |
|
|
422
372
|
| `--aspect <string>` | `-a` | aspect-id of the template. helpful when multiple aspects use the same template name |
|
|
423
|
-
| `--template <string>` | `-t` | env-id of the template. alias for --aspect. |
|
|
424
373
|
| `--path <string>` | `-p` | relative path in the workspace. by default the path is `<scope>/<namespace>/<name>` |
|
|
425
374
|
| `--env <string>` | `-e` | set the component's environment. (overrides the env from variants and the template) |
|
|
426
375
|
|
|
427
376
|
---
|
|
428
377
|
|
|
429
|
-
##
|
|
378
|
+
## dependencies
|
|
430
379
|
|
|
431
|
-
**
|
|
432
|
-
|
|
433
|
-
this command marks the components as deleted, and after snap/tag and export they will be marked as deleted from the remote scope as well.
|
|
380
|
+
**Workspace only**: yes
|
|
381
|
+
**Description**: EXPERIMENTAL. show dependencies (direct and indirect) of the given component
|
|
434
382
|
|
|
435
|
-
`bit
|
|
383
|
+
`bit dependencies <id>`
|
|
436
384
|
|
|
437
|
-
| **
|
|
438
|
-
|
|
|
439
|
-
| `
|
|
440
|
-
|
|
441
|
-
| **Option** | **Option alias** | **Description** |
|
|
442
|
-
| --------------- | :--------------: | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
443
|
-
| `--lane` | | when on a lane, delete the component from this lane only. avoid merging it to main or other lanes |
|
|
444
|
-
| `--update-main` | | EXPERIMENTAL. delete component/s on the main lane after merging this lane into main |
|
|
445
|
-
| `--silent` | `-s` | skip confirmation |
|
|
446
|
-
| `--hard` | | NOT-RECOMMENDED. delete a component completely from a remote scope. careful! this is a permanent change that could corrupt dependents. |
|
|
447
|
-
| `--force` | `-f` | relevant for --hard. allow the deletion even if used as a dependency. WARNING: components that depend on this component will corrupt |
|
|
385
|
+
| **Option** | **Option alias** | **Description** |
|
|
386
|
+
| ---------- | :--------------: | -------------------------------------------------------------------- |
|
|
387
|
+
| `--debug` | `-d` | show the immediate dependencies and how their version was determined |
|
|
448
388
|
|
|
449
389
|
---
|
|
450
390
|
|
|
451
391
|
## dependents
|
|
452
392
|
|
|
453
|
-
**
|
|
393
|
+
**Workspace only**: yes
|
|
394
|
+
**Description**: EXPERIMENTAL. show dependents of the given component
|
|
454
395
|
|
|
455
|
-
`bit dependents <
|
|
396
|
+
`bit dependents <id>`
|
|
456
397
|
|
|
457
398
|
---
|
|
458
399
|
|
|
459
400
|
## deprecate
|
|
460
401
|
|
|
461
402
|
**Alias**: `d`
|
|
403
|
+
**Workspace only**: no
|
|
462
404
|
**Description**: deprecate a component
|
|
463
405
|
|
|
464
|
-
`bit deprecate <
|
|
465
|
-
|
|
466
|
-
| **Arg** | **Description** |
|
|
467
|
-
| ---------------- | :----------------------------: |
|
|
468
|
-
| `component-name` | component name or component id |
|
|
469
|
-
|
|
470
|
-
| **Option** | **Option alias** | **Description** |
|
|
471
|
-
| ------------------- | :--------------: | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
472
|
-
| `--new-id <string>` | | if replaced by another component, enter the new component id. alternatively use "bit rename --deprecate" to do this automatically |
|
|
473
|
-
| `--range <string>` | | enter a Semver range to deprecate specific versions. see https://www.npmjs.com/package/semver#ranges for the range syntax |
|
|
474
|
-
|
|
475
|
-
---
|
|
476
|
-
|
|
477
|
-
## deps
|
|
478
|
-
|
|
479
|
-
**Alias**: `dependencies`
|
|
480
|
-
**Description**: manage dependencies
|
|
481
|
-
|
|
482
|
-
`bit deps <sub-command>`
|
|
483
|
-
|
|
484
|
-
### deps get
|
|
485
|
-
|
|
486
|
-
**Usage**: `deps get <component-name>`
|
|
487
|
-
|
|
488
|
-
**Description**: show direct and indirect dependencies of the given component
|
|
489
|
-
|
|
490
|
-
| **Arg** | **Description** |
|
|
491
|
-
| ---------------- | :----------------------------: |
|
|
492
|
-
| `component-name` | component name or component id |
|
|
493
|
-
|
|
494
|
-
| **Option** | **Option alias** | **Description** |
|
|
495
|
-
| ---------- | :--------------: | ---------------------------------------------------------------- |
|
|
496
|
-
| `--scope` | | get the data from the scope instead of the workspace |
|
|
497
|
-
| `--tree` | `-t` | EXPERIMENTAL. render dependencies as a tree, similar to "npm ls" |
|
|
498
|
-
|
|
499
|
-
### deps remove
|
|
500
|
-
|
|
501
|
-
**Usage**: `deps remove <component-pattern> <package...>`
|
|
502
|
-
|
|
503
|
-
**Description**: remove a dependency to component(s)
|
|
504
|
-
|
|
505
|
-
| **Arg** | **Description** |
|
|
506
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
507
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
508
|
-
| `package...` | package name with or without a version, e.g. "lodash@1.0.0" or just "lodash" which will remove all lodash instances of any version |
|
|
509
|
-
|
|
510
|
-
| **Option** | **Option alias** | **Description** |
|
|
511
|
-
| ---------- | :--------------: | ---------------------------- |
|
|
512
|
-
| `--dev` | `-d` | remove from devDependencies |
|
|
513
|
-
| `--peer` | `-p` | remove from peerDependencies |
|
|
514
|
-
|
|
515
|
-
### deps unset
|
|
516
|
-
|
|
517
|
-
**Usage**: `deps unset <component-pattern> <package...>`
|
|
518
|
-
|
|
519
|
-
**Description**: unset a dependency to component(s) that was previously set by "bit deps set"
|
|
520
|
-
|
|
521
|
-
| **Arg** | **Description** |
|
|
522
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
523
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
524
|
-
| `package...` | package name with or without a version, e.g. "lodash@1.0.0" or just "lodash" which will remove all lodash instances of any version |
|
|
525
|
-
|
|
526
|
-
| **Option** | **Option alias** | **Description** |
|
|
527
|
-
| ---------- | :--------------: | --------------------------- |
|
|
528
|
-
| `--dev` | `-d` | unset from devDependencies |
|
|
529
|
-
| `--peer` | `-p` | unset from peerDependencies |
|
|
530
|
-
|
|
531
|
-
### deps debug
|
|
532
|
-
|
|
533
|
-
**Usage**: `deps debug <component-name>`
|
|
534
|
-
|
|
535
|
-
**Description**: show the immediate dependencies and how their versions were determined
|
|
536
|
-
|
|
537
|
-
| **Arg** | **Description** |
|
|
538
|
-
| ---------------- | :----------------------------: |
|
|
539
|
-
| `component-name` | component name or component id |
|
|
540
|
-
|
|
541
|
-
### deps set
|
|
542
|
-
|
|
543
|
-
**Usage**: `deps set <component-pattern> <package...>`
|
|
544
|
-
|
|
545
|
-
**Description**: set a dependency to component(s)
|
|
546
|
-
|
|
547
|
-
| **Arg** | **Description** |
|
|
548
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
549
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
550
|
-
| `package...` | package name with or without a version, e.g. "lodash@1.0.0" or just "lodash" which will be resolved to the latest |
|
|
551
|
-
|
|
552
|
-
| **Option** | **Option alias** | **Description** |
|
|
553
|
-
| ------------ | :--------------: | ------------------------------- |
|
|
554
|
-
| `--dev` | `-d` | add to the devDependencies |
|
|
555
|
-
| `--optional` | `-o` | add to the optionalDependencies |
|
|
556
|
-
| `--peer` | `-p` | add to the peerDependencies |
|
|
557
|
-
|
|
558
|
-
### deps reset
|
|
559
|
-
|
|
560
|
-
**Usage**: `deps reset <component-pattern>`
|
|
561
|
-
|
|
562
|
-
**Description**: reset dependencies to the default values (revert any previously "bit deps set")
|
|
563
|
-
|
|
564
|
-
| **Arg** | **Description** |
|
|
565
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
566
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
567
|
-
|
|
568
|
-
### deps eject
|
|
569
|
-
|
|
570
|
-
**Usage**: `deps eject <component-pattern>`
|
|
571
|
-
|
|
572
|
-
**Description**: write dependencies that were previously set via "bit deps set" into .bitmap
|
|
573
|
-
|
|
574
|
-
| **Arg** | **Description** |
|
|
575
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
576
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
577
|
-
|
|
578
|
-
### deps blame
|
|
579
|
-
|
|
580
|
-
**Usage**: `deps blame <component-name> <dependency-name>`
|
|
581
|
-
|
|
582
|
-
**Description**: EXPERIMENTAL. find out which snap/tag changed a dependency version
|
|
583
|
-
|
|
584
|
-
| **Arg** | **Description** |
|
|
585
|
-
| ----------------- | :---------------------------------------------------------------------------: |
|
|
586
|
-
| `dependency-name` | package-name. for components, you can use either component-id or package-name |
|
|
587
|
-
|
|
588
|
-
### deps usage
|
|
589
|
-
|
|
590
|
-
**Usage**: `deps usage <dependency-name>`
|
|
591
|
-
|
|
592
|
-
**Description**: EXPERIMENTAL. find components that use the specified dependency
|
|
406
|
+
`bit deprecate <id>`
|
|
593
407
|
|
|
594
|
-
| **
|
|
595
|
-
|
|
|
596
|
-
|
|
|
597
|
-
|
|
598
|
-
| **Option** | **Option alias** | **Description** |
|
|
599
|
-
| ------------------ | :--------------: | ----------------------------------------- |
|
|
600
|
-
| `--depth <number>` | | max display depth of the dependency graph |
|
|
408
|
+
| **Option** | **Option alias** | **Description** |
|
|
409
|
+
| ------------------- | :--------------: | ------------------------------------------------------------ |
|
|
410
|
+
| `--new-id <string>` | | if replaced by another component, enter the new component id |
|
|
601
411
|
|
|
602
412
|
---
|
|
603
413
|
|
|
604
414
|
## diff
|
|
605
415
|
|
|
606
|
-
**
|
|
607
|
-
|
|
608
|
-
|
|
416
|
+
**Workspace only**: yes
|
|
417
|
+
**Description**: show diff between components files
|
|
418
|
+
bit diff => compare all modified components to their model version
|
|
419
|
+
bit diff [ids...] => compare the specified components against their modified states
|
|
420
|
+
bit diff [id] [version] => compare the specified version to used or modified files
|
|
421
|
+
bit diff [id] [version] [to_version] => compare the specified version files to to_version files
|
|
422
|
+
you can use a pattern for multiple ids, such as bit diff "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
609
423
|
|
|
610
|
-
|
|
611
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
612
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
613
|
-
| `version` | specific version to compare against |
|
|
614
|
-
| `to-version` | specific version to compare to |
|
|
424
|
+
`bit diff [values...]`
|
|
615
425
|
|
|
616
426
|
| **Option** | **Option alias** | **Description** |
|
|
617
427
|
| ----------- | :--------------: | ------------------------------------------------------- |
|
|
618
|
-
| `--verbose` | `-v` | show a more verbose output
|
|
428
|
+
| `--verbose` | `-v` | show a more verbose output when possible |
|
|
619
429
|
| `--table` | `-t` | show tables instead of plain text for dependencies diff |
|
|
620
430
|
|
|
621
431
|
---
|
|
622
432
|
|
|
623
433
|
## doctor
|
|
624
434
|
|
|
435
|
+
**Workspace only**: yes
|
|
625
436
|
**Description**: diagnose a bit workspace
|
|
626
437
|
|
|
627
438
|
`bit doctor [diagnosis-name]`
|
|
628
439
|
|
|
629
|
-
| **Option**
|
|
630
|
-
|
|
|
631
|
-
| `--json`
|
|
632
|
-
| `--list`
|
|
633
|
-
| `--save [filePath]`
|
|
634
|
-
| `--archive [filePath]` | `-a` | archive the workspace including diagnosis info |
|
|
440
|
+
| **Option** | **Option alias** | **Description** |
|
|
441
|
+
| ------------------- | :--------------: | ------------------------------- |
|
|
442
|
+
| `--json` | `-j` | return diagnoses in json format |
|
|
443
|
+
| `--list` | | list all available diagnoses |
|
|
444
|
+
| `--save [filePath]` | `-s` | save diagnoses to a file |
|
|
635
445
|
|
|
636
446
|
---
|
|
637
447
|
|
|
638
448
|
## eject
|
|
639
449
|
|
|
640
450
|
**Alias**: `E`
|
|
641
|
-
**
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
451
|
+
**Workspace only**: yes
|
|
452
|
+
**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/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
454
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
455
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
645
456
|
|
|
646
|
-
|
|
647
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
648
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
457
|
+
`bit eject <pattern>`
|
|
649
458
|
|
|
650
|
-
| **Option**
|
|
651
|
-
|
|
|
652
|
-
| `--force`
|
|
653
|
-
| `--
|
|
654
|
-
| `--
|
|
655
|
-
| `--keep-files` | | keep the component files in the workspace intact |
|
|
459
|
+
| **Option** | **Option alias** | **Description** |
|
|
460
|
+
| -------------- | :--------------: | --------------------------------------------------------------------------------- |
|
|
461
|
+
| `--force` | `-f` | ignore local version. remove the components even when they are staged or modified |
|
|
462
|
+
| `--json` | `-j` | print the results in JSON format |
|
|
463
|
+
| `--keep-files` | | keep the component files in the workspace intact |
|
|
656
464
|
|
|
657
465
|
---
|
|
658
466
|
|
|
659
467
|
## eject-conf
|
|
660
468
|
|
|
469
|
+
**Workspace only**: yes
|
|
661
470
|
**Description**: eject components configuration (create a `component.json` file)
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.
|
|
666
|
-
always wrap the pattern with single quotes to avoid collision with shell commands.
|
|
667
|
-
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
471
|
+
you can use a `<pattern>` for multiple component ids, such as `bit eject-conf "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
472
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
473
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
668
474
|
|
|
669
475
|
`bit eject-conf <pattern>`
|
|
670
476
|
|
|
671
|
-
| **Option** | **Option alias** | **Description**
|
|
672
|
-
| ------------- | :--------------: |
|
|
673
|
-
| `--propagate` | `-p` | mark propagate true in the config file
|
|
674
|
-
| `--override` | `-o` | override file if exist
|
|
477
|
+
| **Option** | **Option alias** | **Description** |
|
|
478
|
+
| ------------- | :--------------: | -------------------------------------- |
|
|
479
|
+
| `--propagate` | `-p` | mark propagate true in the config file |
|
|
480
|
+
| `--override` | `-o` | override file if exist |
|
|
675
481
|
|
|
676
482
|
---
|
|
677
483
|
|
|
678
484
|
## envs
|
|
679
485
|
|
|
680
486
|
**Alias**: `env`
|
|
681
|
-
**
|
|
487
|
+
**Workspace only**: yes
|
|
488
|
+
**Description**: list all components envs
|
|
682
489
|
|
|
683
490
|
`bit envs`
|
|
684
491
|
|
|
@@ -686,139 +493,91 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
|
|
|
686
493
|
|
|
687
494
|
**Usage**: `envs list`
|
|
688
495
|
|
|
689
|
-
**Description**: list all envs
|
|
496
|
+
**Description**: list all envs available in the workspace
|
|
690
497
|
|
|
691
498
|
### envs get
|
|
692
499
|
|
|
693
|
-
**Usage**: `envs get <
|
|
500
|
+
**Usage**: `envs get <name>`
|
|
694
501
|
|
|
695
|
-
**Description**: show
|
|
696
|
-
|
|
697
|
-
| **Arg** | **Description** |
|
|
698
|
-
| ---------------- | :-------------------------------------------------------------------------------------: |
|
|
699
|
-
| `component-name` | the 'component name' or 'component id' of the component whose env you'd like to inspect |
|
|
700
|
-
|
|
701
|
-
| **Option** | **Option alias** | **Description** |
|
|
702
|
-
| --------------------- | :--------------: | ------------------------------------------------------------------------------------------------------------------ |
|
|
703
|
-
| `--services <string>` | | show information about the specific services only. for multiple services, separate by a comma and wrap with quotes |
|
|
502
|
+
**Description**: show component's env details
|
|
704
503
|
|
|
705
504
|
### envs set
|
|
706
505
|
|
|
707
|
-
**Usage**: `envs set <
|
|
708
|
-
|
|
709
|
-
**Description**: Assigns one or more components a development environment (env)
|
|
506
|
+
**Usage**: `envs set <pattern> <env>`
|
|
710
507
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
508
|
+
**Description**: set an environment for component(s)
|
|
509
|
+
you can use a `<pattern>` for multiple component ids, such as `bit env set "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
510
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
511
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
715
512
|
|
|
716
513
|
### envs unset
|
|
717
514
|
|
|
718
|
-
**Usage**: `envs unset <component
|
|
515
|
+
**Usage**: `envs unset <component>`
|
|
719
516
|
|
|
720
|
-
**Description**:
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
you can use a `<pattern>` for multiple component ids, such as `bit env unset "org.scope/utils/**"`.
|
|
725
|
-
use comma to separate patterns and '!' to exclude. e.g. 'ui/\*\*, !ui/button'
|
|
726
|
-
use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.
|
|
727
|
-
always wrap the pattern with single quotes to avoid collision with shell commands.
|
|
728
|
-
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
729
|
-
|
|
730
|
-
| **Arg** | **Description** |
|
|
731
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
732
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
517
|
+
**Description**: unset an environment from component(s)
|
|
518
|
+
you can use a `<pattern>` for multiple component ids, such as `bit env unset "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
519
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
520
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
733
521
|
|
|
734
522
|
### envs replace
|
|
735
523
|
|
|
736
|
-
**Usage**: `envs replace <
|
|
524
|
+
**Usage**: `envs replace <old-env> <new-env>`
|
|
737
525
|
|
|
738
526
|
**Description**: replace an existing env with another env for all components using the old env
|
|
739
527
|
|
|
740
|
-
| **Arg** | **Description** |
|
|
741
|
-
| ------------- | :----------------------------------------: |
|
|
742
|
-
| `current-env` | the component id of the env to be replaced |
|
|
743
|
-
| `new-env` | the component id of the new env |
|
|
744
|
-
|
|
745
|
-
### envs update
|
|
746
|
-
|
|
747
|
-
**Usage**: `envs update [env-id] [pattern]`
|
|
748
|
-
|
|
749
|
-
**Description**: update a version of an env for all components using that env
|
|
750
|
-
|
|
751
|
-
| **Arg** | **Description** |
|
|
752
|
-
| --------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
753
|
-
| `env-id` | the environment id (defaults to all envs). optionally, add a version (id@version), if no version is supplied will use the latest version on the remote. |
|
|
754
|
-
| `pattern` | the components to update (defaults to all components). component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
755
|
-
|
|
756
528
|
---
|
|
757
529
|
|
|
758
530
|
## export
|
|
759
531
|
|
|
760
532
|
**Alias**: `e`
|
|
761
|
-
**
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
you can use a pattern for multiple ids, such as bit export "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
533
|
+
**Workspace only**: yes
|
|
534
|
+
**Description**: export components to a remote scope.
|
|
535
|
+
bit export => export all staged components to their current scope, if checked out to a lane, export the lane as well
|
|
536
|
+
`bit export [id...]` => export the given ids to their current scope
|
|
766
537
|
|
|
767
|
-
|
|
538
|
+
https://bit.dev/reference/components/exporting-components
|
|
539
|
+
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)
|
|
768
540
|
|
|
769
|
-
|
|
770
|
-
| ----------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
771
|
-
| `component-patterns...` | (not recommended) component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
541
|
+
`bit export [remote] [id...]`
|
|
772
542
|
|
|
773
543
|
| **Option** | **Option alias** | **Description** |
|
|
774
544
|
| ---------------------------- | :--------------: | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
775
|
-
| `--eject` | `-e` |
|
|
776
|
-
| `--all` | `-a` | export all components
|
|
777
|
-
| `--
|
|
778
|
-
| `--
|
|
545
|
+
| `--eject` | `-e` | replaces the exported components from the local scope with the corresponding packages |
|
|
546
|
+
| `--all` | `-a` | export all components include non-staged |
|
|
547
|
+
| `--include-dependencies` | `-d` | LEGACY ONLY. include the component's dependencies as part of the export to the remote scope |
|
|
548
|
+
| `--set-current-scope` | `-s` | LEGACY ONLY. ensure the component's remote scope is set according to the target location |
|
|
549
|
+
| `--rewire` | `-r` | LEGACY ONLY. when exporting to a different or new scope, replace import/require statements in the source code to match the new scope |
|
|
550
|
+
| `--force` | `-f` | force changing a component remote without asking for a confirmation |
|
|
551
|
+
| `--all-versions` | | export not only staged versions but all of them |
|
|
552
|
+
| `--origin-directly` | | HARMONY ONLY. avoid export to the central hub, instead, export directly to the original scopes. not recommended! |
|
|
779
553
|
| `--resume <string>` | | in case the previous export failed and suggested to resume with an export-id, enter the id |
|
|
780
|
-
| `--head-only` | | EXPERIMENTAL. in case previous export failed and locally it shows exported and only one snap/tag was created, try using this flag |
|
|
781
554
|
| `--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 |
|
|
782
|
-
| `--fork-lane-new-scope` | | allow exporting a forked lane into a different scope than the original scope |
|
|
783
|
-
| `--open-browser` | | open a browser once the export is completed in the cloud job url |
|
|
784
|
-
| `--json` | `-j` | show output in json format |
|
|
785
555
|
|
|
786
556
|
---
|
|
787
557
|
|
|
788
558
|
## fork
|
|
789
559
|
|
|
790
|
-
**
|
|
560
|
+
**Workspace only**: no
|
|
561
|
+
**Description**: EXPERIMENTAL. create a new component out of an existing one
|
|
562
|
+
note that [target-name] is the name only without the scope.
|
|
563
|
+
to set the default-scope, please use --scope flag
|
|
791
564
|
|
|
792
|
-
`bit fork <source-
|
|
565
|
+
`bit fork <source-id> [target-name]`
|
|
793
566
|
|
|
794
|
-
| **
|
|
795
|
-
|
|
|
796
|
-
| `
|
|
797
|
-
|
|
|
798
|
-
|
|
799
|
-
| **Option** | **Option alias** | **Description** |
|
|
800
|
-
| -------------------------------- | :--------------: | ------------------------------------------------------------------------------------------------------------------- |
|
|
801
|
-
| `--scope <string>` | `-s` | default scope for the new component |
|
|
802
|
-
| `--path <string>` | `-p` | relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>` |
|
|
803
|
-
| `--refactor` | `-r` | update the import/require statements in all dependent components (in the same workspace) |
|
|
804
|
-
| `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
|
|
805
|
-
| `--env <string>` | `-e` | set the environment for the new component |
|
|
806
|
-
| `--skip-config` | | do not copy the config (aspects-config, env, etc) to the new component. helpful when it fails during aspect loading |
|
|
807
|
-
| `--preserve` | | avoid refactoring file and variable/class names according to the new component name |
|
|
808
|
-
| `--no-link` | | avoid saving a reference to the original component |
|
|
809
|
-
| `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
|
|
567
|
+
| **Option** | **Option alias** | **Description** |
|
|
568
|
+
| ------------------ | :--------------: | ----------------------------------------------------------------------------------------------- |
|
|
569
|
+
| `--scope <string>` | `-s` | default scope for the newly created component |
|
|
570
|
+
| `--path <string>` | `-p` | relative path in the workspace. by default the path is `<scope>/<namespace>/<name>` |
|
|
571
|
+
| `--refactor` | `-r` | change the source code of all components using the original component with the new package-name |
|
|
810
572
|
|
|
811
573
|
---
|
|
812
574
|
|
|
813
575
|
## format
|
|
814
576
|
|
|
577
|
+
**Workspace only**: yes
|
|
815
578
|
**Description**: format components in the development workspace
|
|
816
579
|
|
|
817
|
-
`bit format [component
|
|
818
|
-
|
|
819
|
-
| **Arg** | **Description** |
|
|
820
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
821
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
580
|
+
`bit format [component...]`
|
|
822
581
|
|
|
823
582
|
| **Option** | **Option alias** | **Description** |
|
|
824
583
|
| ----------- | :--------------: | ---------------------------------------------------------------------------- |
|
|
@@ -828,32 +587,9 @@ bit export => export all staged snaps/tags of components to their remote scope.
|
|
|
828
587
|
|
|
829
588
|
---
|
|
830
589
|
|
|
831
|
-
## git
|
|
832
|
-
|
|
833
|
-
**Description**: perform git operations
|
|
834
|
-
|
|
835
|
-
`bit git <sub-command>`
|
|
836
|
-
|
|
837
|
-
### git set-merge-driver
|
|
838
|
-
|
|
839
|
-
**Usage**: `git set-merge-driver`
|
|
840
|
-
|
|
841
|
-
**Description**: setup bit's git merge driver for bitmap files
|
|
842
|
-
|
|
843
|
-
| **Option** | **Option alias** | **Description** |
|
|
844
|
-
| ---------- | :--------------: | --------------------------------- |
|
|
845
|
-
| `--global` | `-g` | set the git merge driver globally |
|
|
846
|
-
|
|
847
|
-
### git merge-bitmaps
|
|
848
|
-
|
|
849
|
-
**Usage**: `git merge-bitmaps <ancestor> <current> <other>`
|
|
850
|
-
|
|
851
|
-
**Description**: a special command to merge conflicting bitmap files during git merge
|
|
852
|
-
|
|
853
|
-
---
|
|
854
|
-
|
|
855
590
|
## globals
|
|
856
591
|
|
|
592
|
+
**Workspace only**: yes
|
|
857
593
|
**Description**: list all globals
|
|
858
594
|
|
|
859
595
|
`bit globals`
|
|
@@ -866,407 +602,126 @@ bit export => export all staged snaps/tags of components to their remote scope.
|
|
|
866
602
|
|
|
867
603
|
## graph
|
|
868
604
|
|
|
869
|
-
**
|
|
605
|
+
**Workspace only**: yes
|
|
606
|
+
**Description**: EXPERIMENTAL. generate an image file with the dependencies graph
|
|
870
607
|
|
|
871
608
|
`bit graph [id]`
|
|
872
609
|
|
|
873
610
|
| **Option** | **Option alias** | **Description** |
|
|
874
611
|
| ----------------------- | :--------------: | ------------------------------------------------------------------------------------------------------ |
|
|
875
|
-
| `--image <image>` | `-i` | image path
|
|
612
|
+
| `--image <image>` | `-i` | image path. use one of the following extensions: [gif, png, svg, pdf] |
|
|
876
613
|
| `--remote [remoteName]` | `-r` | remote name (name is optional, leave empty when id is specified) |
|
|
877
614
|
| `--all-versions` | | enter all components versions into the graph, not only latest |
|
|
878
615
|
| `--layout <name>` | | GraphVis layout. default to "dot". options are [circo, dot, fdp, neato, osage, patchwork, sfdp, twopi] |
|
|
879
|
-
| `--json` | `-j` | json format |
|
|
880
616
|
|
|
881
617
|
---
|
|
882
618
|
|
|
883
619
|
## help
|
|
884
620
|
|
|
885
621
|
**Alias**: `$0`
|
|
622
|
+
**Workspace only**: yes
|
|
886
623
|
**Description**: shows help
|
|
887
624
|
|
|
888
625
|
`bit help`
|
|
889
626
|
|
|
890
|
-
| **Option** | **Option alias** | **Description** |
|
|
891
|
-
| ------------ | :--------------: | ---------------------- |
|
|
892
|
-
| `--internal` | | show internal commands |
|
|
893
|
-
|
|
894
627
|
---
|
|
895
628
|
|
|
896
629
|
## import
|
|
897
630
|
|
|
898
|
-
**
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
|
907
|
-
|
|
|
908
|
-
| `--
|
|
909
|
-
| `--
|
|
910
|
-
| `--override` | `-O` | override local changes
|
|
911
|
-
| `--verbose` | `-v` |
|
|
912
|
-
| `--json` | `-j` | return the output as JSON
|
|
913
|
-
| `--
|
|
914
|
-
| `--skip-
|
|
915
|
-
| `--
|
|
916
|
-
| `--
|
|
917
|
-
| `--
|
|
918
|
-
| `--dependents
|
|
919
|
-
| `--
|
|
920
|
-
| `--
|
|
921
|
-
| `--filter-envs <envs>` | | only import components that have the specified environment (e.g., "teambit.react/react-env") |
|
|
922
|
-
| `--save-in-lane` | | when checked out to a lane and the component is not on the remote-lane, save it in the lane (defaults to save on main) |
|
|
923
|
-
| `--all-history` | | relevant for fetching all components objects. avoid optimizations, fetch all history versions, always |
|
|
924
|
-
| `--fetch-deps` | | fetch dependencies (bit components) objects to the local scope, but dont add to the workspace. Useful to resolve errors about missing dependency data |
|
|
925
|
-
| `--track-only` | | do not write any component files, just create .bitmap entries of the imported components. Useful when the files already exist and just want to re-add the component to the bitmap |
|
|
926
|
-
| `--include-deprecated` | | when importing with patterns, include deprecated components (default to exclude them) |
|
|
631
|
+
**Workspace only**: yes
|
|
632
|
+
**Description**: import components into your current workspace.
|
|
633
|
+
https://bit.dev/reference/components/importing-components
|
|
634
|
+
you can use a pattern for multiple ids, such as bit import "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
635
|
+
|
|
636
|
+
`bit import [ids...]`
|
|
637
|
+
|
|
638
|
+
| **Option** | **Option alias** | **Description** |
|
|
639
|
+
| -------------------------------- | :--------------: | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
640
|
+
| `--path <path>` | `-p` | import components into a specific directory |
|
|
641
|
+
| `--objects` | `-o` | import components objects only, don't write the components to the file system. This is a default behavior for import with no id |
|
|
642
|
+
| `--display-dependencies` | `-d` | display the imported dependencies |
|
|
643
|
+
| `--override` | `-O` | override local changes |
|
|
644
|
+
| `--verbose` | `-v` | showing verbose output for inspection |
|
|
645
|
+
| `--json` | `-j` | return the output as JSON |
|
|
646
|
+
| `--conf` | | write the configuration file (component.json) of the component (harmony components only) |
|
|
647
|
+
| `--skip-npm-install` | | DEPRECATED. use "--skip-dependency-installation" instead |
|
|
648
|
+
| `--skip-dependency-installation` | | do not install packages of the imported components |
|
|
649
|
+
| `--merge [strategy]` | `-m` | merge local changes with the imported version. strategy should be "theirs", "ours" or "manual" |
|
|
650
|
+
| `--dependencies` | | EXPERIMENTAL. import all dependencies and write them to the workspace |
|
|
651
|
+
| `--dependents` | | EXPERIMENTAL. import component dependents to allow auto-tag updating them upon tag |
|
|
652
|
+
| `--skip-lane` | | EXPERIMENTAL. when checked out to a lane, do not import the component into the lane, save it on main |
|
|
653
|
+
| `--all-history` | | relevant for fetching all components objects. avoid optimizations, fetch all history versions, always |
|
|
927
654
|
|
|
928
655
|
---
|
|
929
656
|
|
|
930
657
|
## init
|
|
931
658
|
|
|
932
|
-
**
|
|
933
|
-
|
|
659
|
+
**Workspace only**: no
|
|
660
|
+
**Description**: initialize an empty bit scope
|
|
661
|
+
https://bit.dev/reference/workspace/creating-workspaces#initialize-a-workspace-on-an-existing-project
|
|
934
662
|
|
|
935
663
|
`bit init [path]`
|
|
936
664
|
|
|
937
|
-
| **Option** | **Option alias** | **Description**
|
|
938
|
-
| ----------------------------------------- | :--------------: |
|
|
939
|
-
| `--bare [name]` | `-b` | initialize an empty bit bare scope
|
|
940
|
-
| `--shared <groupname>` | `-s` | add group write permissions to a scope properly
|
|
941
|
-
| `--standalone` | `-T` | do not nest component store within .git directory and do not write config data inside package.json
|
|
942
|
-
| `--
|
|
943
|
-
| `--reset`
|
|
944
|
-
| `--reset-
|
|
945
|
-
| `--
|
|
946
|
-
| `--
|
|
947
|
-
| `--
|
|
948
|
-
| `--
|
|
949
|
-
| `--
|
|
950
|
-
| `--package-manager <package-manager>` | `-p` | set the package manager (npm or yarn) to be used in the workspace |
|
|
951
|
-
| `--force` | `-f` | force workspace initialization without clearing local objects |
|
|
952
|
-
| `--interactive` | `-I` | EXPERIMENTAL. start an interactive process |
|
|
665
|
+
| **Option** | **Option alias** | **Description** |
|
|
666
|
+
| ----------------------------------------- | :--------------: | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
667
|
+
| `--bare [name]` | `-b` | initialize an empty bit bare scope |
|
|
668
|
+
| `--shared <groupname>` | `-s` | add group write permissions to a scope properly |
|
|
669
|
+
| `--standalone` | `-T` | do not nest component store within .git directory and do not write config data inside package.json |
|
|
670
|
+
| `--reset` | `-r` | write missing or damaged Bit files |
|
|
671
|
+
| `--reset-new` | | reset .bitmap file as if the components were newly added and remove all model data (objects) |
|
|
672
|
+
| `--reset-hard` | | delete all Bit files and directories, including Bit configuration, tracking and model data. Useful for re-start using Bit from scratch |
|
|
673
|
+
| `--default-directory <default-directory>` | `-d` | set up default directory to import components into |
|
|
674
|
+
| `--package-manager <package-manager>` | `-p` | set up package manager (npm or yarn) |
|
|
675
|
+
| `--force` | `-f` | force workspace initialization without clearing local objects |
|
|
676
|
+
| `--harmony` | | DEPRECATED. no need for this flag. Harmony is the default now |
|
|
677
|
+
| `--interactive` | `-I` | EXPERIMENTAL. start an interactive process |
|
|
953
678
|
|
|
954
679
|
---
|
|
955
680
|
|
|
956
681
|
## install
|
|
957
682
|
|
|
958
683
|
**Alias**: `in`
|
|
959
|
-
**
|
|
960
|
-
|
|
684
|
+
**Workspace only**: yes
|
|
685
|
+
**Description**: install development workspace dependencies
|
|
961
686
|
|
|
962
687
|
`bit install [packages...]`
|
|
963
688
|
|
|
964
|
-
| **
|
|
965
|
-
|
|
|
966
|
-
|
|
|
967
|
-
|
|
968
|
-
|
|
|
969
|
-
|
|
|
970
|
-
| `--
|
|
971
|
-
| `--
|
|
972
|
-
| `--
|
|
973
|
-
| `--save-prefix [savePrefix]` | | set the prefix to use when adding dependency to workspace.jsonc |
|
|
974
|
-
| `--skip-dedupe` | | do not dedupe dependencies on installation |
|
|
975
|
-
| `--skip-import` | | do not import bit objects post installation |
|
|
976
|
-
| `--skip-compile` | | do not compile components |
|
|
977
|
-
| `--skip-write-config-files` | | do not write config files (such as eslint, tsconfig, prettier, etc...) |
|
|
978
|
-
| `--add-missing-deps` | `-a` | install all missing dependencies |
|
|
979
|
-
| `--add-missing-peers` | | install all missing peer dependencies |
|
|
980
|
-
| `--recurring-install` | | automatically run install again if there are non loaded old envs in your workspace |
|
|
981
|
-
| `--no-optional [noOptional]` | | do not install optional dependencies (works with pnpm only) |
|
|
982
|
-
| `--lockfile-only` | | dependencies are not written to node_modules. Only the lockfile is updated |
|
|
983
|
-
|
|
984
|
-
---
|
|
985
|
-
|
|
986
|
-
## lane
|
|
987
|
-
|
|
988
|
-
**Alias**: `l`
|
|
989
|
-
**Description**: manage lanes - if no sub-command is used, runs "bit lane list"
|
|
990
|
-
|
|
991
|
-
`bit lane [sub-command]`
|
|
992
|
-
|
|
993
|
-
### lane list
|
|
994
|
-
|
|
995
|
-
**Usage**: `lane list`
|
|
996
|
-
|
|
997
|
-
**Description**: list local or remote lanes
|
|
998
|
-
|
|
999
|
-
| **Option** | **Option alias** | **Description** |
|
|
1000
|
-
| ------------------------------ | :--------------: | ------------------------------------------------------------- |
|
|
1001
|
-
| `--details` | `-d` | show more details on the state of each component in each lane |
|
|
1002
|
-
| `--json` | `-j` | show lanes' details in a json format |
|
|
1003
|
-
| `--remote <remote-scope-name>` | `-r` | show all remote lanes from the specified scope |
|
|
1004
|
-
| `--merged` | | list only merged lanes |
|
|
1005
|
-
| `--not-merged` | | list only lanes that haven't been merged |
|
|
1006
|
-
|
|
1007
|
-
### lane switch
|
|
1008
|
-
|
|
1009
|
-
**Usage**: `lane switch <lane>`
|
|
1010
|
-
|
|
1011
|
-
**Description**: switch to the specified lane
|
|
1012
|
-
|
|
1013
|
-
| **Arg** | **Description** |
|
|
1014
|
-
| ------- | :------------------------------------------------------: |
|
|
1015
|
-
| `lane` | lane-name or lane-id (if lane is not local) to switch to |
|
|
1016
|
-
|
|
1017
|
-
| **Option** | **Option alias** | **Description** |
|
|
1018
|
-
| -------------------------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1019
|
-
| `--alias <string>` | `-n` | relevant when the specified lane is a remote lane. create a local alias for the lane (doesnt affect the lane's name on the remote |
|
|
1020
|
-
| `--merge [strategy]` | `-m` | merge local changes with the checked out version. strategy should be "theirs", "ours" or "manual" |
|
|
1021
|
-
| `--get-all` | `-a` | checkout all components in a lane, including those not currently in the workspace |
|
|
1022
|
-
| `--skip-dependency-installation` | `-x` | do not install dependencies of the imported components |
|
|
1023
|
-
| `--pattern <component-pattern>` | `-p` | switch only the lane components matching the specified component-pattern. only works when the workspace is empty component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1024
|
-
| `--json` | `-j` | return the output as JSON |
|
|
1025
|
-
|
|
1026
|
-
### lane show
|
|
1027
|
-
|
|
1028
|
-
**Usage**: `lane show [lane-name]`
|
|
1029
|
-
|
|
1030
|
-
**Description**: show lane details. if no lane specified, show the current lane
|
|
1031
|
-
|
|
1032
|
-
| **Option** | **Option alias** | **Description** |
|
|
1033
|
-
| ---------- | :--------------: | ---------------------------------------------------- |
|
|
1034
|
-
| `--json` | `-j` | show the lane details in json format |
|
|
1035
|
-
| `--remote` | `-r` | show details of the remote head of the provided lane |
|
|
1036
|
-
|
|
1037
|
-
### lane create
|
|
1038
|
-
|
|
1039
|
-
**Usage**: `lane create <lane-name>`
|
|
1040
|
-
|
|
1041
|
-
**Description**: creates a new lane and switches to it
|
|
1042
|
-
a lane created from main (default-lane) is empty until components are snapped.
|
|
1043
|
-
a lane created from another lane contains all the components of the original lane.
|
|
1044
|
-
|
|
1045
|
-
| **Arg** | **Description** |
|
|
1046
|
-
| ----------- | :-----------------------: |
|
|
1047
|
-
| `lane-name` | the name for the new lane |
|
|
1048
|
-
|
|
1049
|
-
| **Option** | **Option alias** | **Description** |
|
|
1050
|
-
| ----------------------------- | :--------------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1051
|
-
| `--scope <scope-name>` | `-s` | remote scope to which this lane will be exported, default to the workspace.json's defaultScope (can be changed up to first export of the lane with "bit lane change-scope") |
|
|
1052
|
-
| `--remote-scope <scope-name>` | | DEPRECATED. use --scope |
|
|
1053
|
-
| `--alias <name>` | | a local alias to refer to this lane, defaults to the `<lane-name>` (can be added later with "bit lane alias") |
|
|
1054
|
-
| `--fork-lane-new-scope` | | create the new lane in a different scope than its parent lane (if created from another lane) |
|
|
1055
|
-
|
|
1056
|
-
### lane remove
|
|
1057
|
-
|
|
1058
|
-
**Usage**: `lane remove <lanes...>`
|
|
1059
|
-
|
|
1060
|
-
**Description**: remove or delete lanes
|
|
1061
|
-
|
|
1062
|
-
| **Arg** | **Description** |
|
|
1063
|
-
| ---------- | :---------------------------------------: |
|
|
1064
|
-
| `lanes...` | A list of lane names, separated by spaces |
|
|
1065
|
-
|
|
1066
|
-
| **Option** | **Option alias** | **Description** |
|
|
1067
|
-
| ---------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1068
|
-
| `--remote` | `-r` | delete a remote lane. use remote/lane-id syntax e.g. bit lane remove owner.org/my-lane --remote. Delete is immediate, no export required |
|
|
1069
|
-
| `--force` | `-f` | removes/deletes the lane even when the lane is not yet merged to main |
|
|
1070
|
-
| `--silent` | `-s` | skip confirmation |
|
|
1071
|
-
|
|
1072
|
-
### lane change-scope
|
|
1073
|
-
|
|
1074
|
-
**Usage**: `lane change-scope <remote-scope-name>`
|
|
1075
|
-
|
|
1076
|
-
**Description**: changes the remote scope of a lane
|
|
1077
|
-
NOTE: available only before the lane is exported to the remote
|
|
1078
|
-
|
|
1079
|
-
| **Option** | **Option alias** | **Description** |
|
|
1080
|
-
| ------------------------- | :--------------: | ------------------------------------------------------------------------------------------- |
|
|
1081
|
-
| `--lane-name <lane-name>` | `-l` | the name of the lane to change its remote scope. if not specified, the current lane is used |
|
|
1082
|
-
|
|
1083
|
-
### lane alias
|
|
1084
|
-
|
|
1085
|
-
**Usage**: `lane alias <lane-name> <alias>`
|
|
1086
|
-
|
|
1087
|
-
**Description**: adds an alias to a lane
|
|
1088
|
-
an alias is a name that can be used locally to refer to a lane. it is saved locally and never reaches the remote.
|
|
1089
|
-
it is useful e.g. when having multiple lanes with the same name, but with different remote scopes.
|
|
1090
|
-
|
|
1091
|
-
### lane rename
|
|
1092
|
-
|
|
1093
|
-
**Usage**: `lane rename <new-name>`
|
|
1094
|
-
|
|
1095
|
-
**Description**: EXPERIMENTAL. change the lane-name locally
|
|
1096
|
-
the remote will be updated after the next "bit export" command
|
|
1097
|
-
|
|
1098
|
-
| **Option** | **Option alias** | **Description** |
|
|
1099
|
-
| ------------------------- | :--------------: | -------------------------------------------------------------------------- |
|
|
1100
|
-
| `--lane-name <lane-name>` | `-l` | the name of the lane to rename. if not specified, the current lane is used |
|
|
1101
|
-
|
|
1102
|
-
### lane diff
|
|
1103
|
-
|
|
1104
|
-
**Usage**: `lane diff [values...]`
|
|
1105
|
-
|
|
1106
|
-
**Description**: show diff between lanes
|
|
1107
|
-
bit lane diff => diff between the current lane and default lane. (only inside workspace).
|
|
1108
|
-
bit lane diff to => diff between the current lane (or default-lane when in scope) and "to" lane.
|
|
1109
|
-
bit lane diff from to => diff between "from" lane and "to" lane.
|
|
1110
|
-
|
|
1111
|
-
| **Arg** | **Description** |
|
|
1112
|
-
| ------- | :------------------------------: |
|
|
1113
|
-
| `from` | base lane for comparison |
|
|
1114
|
-
| `to` | lane being compared to base lane |
|
|
1115
|
-
|
|
1116
|
-
| **Option** | **Option alias** | **Description** |
|
|
1117
|
-
| ------------------------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1118
|
-
| `--pattern <component-pattern>` | | show lane-diff for components conforming to the specified component-pattern only component-pattern format: component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1119
|
-
|
|
1120
|
-
### lane add-readme
|
|
1121
|
-
|
|
1122
|
-
**Usage**: `lane add-readme <component-name> [lane-name]`
|
|
1123
|
-
|
|
1124
|
-
**Description**: EXPERIMENTAL. sets an existing component as the readme of a lane
|
|
1125
|
-
|
|
1126
|
-
| **Arg** | **Description** |
|
|
1127
|
-
| -------------- | :-------------------------------------------------------------------: |
|
|
1128
|
-
| `component-id` | the component name or id of the component to use as the lane's readme |
|
|
1129
|
-
| `lane-name` | the lane to attach the readme to (defaults to the current lane) |
|
|
1130
|
-
|
|
1131
|
-
### lane remove-readme
|
|
1132
|
-
|
|
1133
|
-
**Usage**: `lane remove-readme [laneName]`
|
|
1134
|
-
|
|
1135
|
-
**Description**: EXPERIMENTAL. remove lane readme component
|
|
1136
|
-
|
|
1137
|
-
### lane import
|
|
1138
|
-
|
|
1139
|
-
**Usage**: `lane import <lane>`
|
|
1140
|
-
|
|
1141
|
-
**Description**: import a remote lane to your workspace and switch to that lane
|
|
1142
|
-
|
|
1143
|
-
| **Arg** | **Description** |
|
|
1144
|
-
| ------- | :------------------: |
|
|
1145
|
-
| `lane` | the remote lane name |
|
|
1146
|
-
|
|
1147
|
-
| **Option** | **Option alias** | **Description** |
|
|
1148
|
-
| -------------------------------- | :--------------: | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1149
|
-
| `--skip-dependency-installation` | `-x` | do not install dependencies of the imported components |
|
|
1150
|
-
| `--pattern <component-pattern>` | `-p` | import only components from the lane that fit the specified component-pattern to the workspace. works only when the workspace is empty |
|
|
1151
|
-
|
|
1152
|
-
### lane remove-comp
|
|
1153
|
-
|
|
1154
|
-
**Usage**: `lane remove-comp <component-pattern>`
|
|
1155
|
-
|
|
1156
|
-
**Description**: DEPRECATED. remove components when on a lane
|
|
1157
|
-
|
|
1158
|
-
| **Arg** | **Description** |
|
|
1159
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1160
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1161
|
-
|
|
1162
|
-
| **Option** | **Option alias** | **Description** |
|
|
1163
|
-
| ------------------ | :--------------: | ------------------------------------------------------------------------------------------------- |
|
|
1164
|
-
| `--workspace-only` | | do not mark the components as removed from the lane. instead, remove them from the workspace only |
|
|
1165
|
-
| `--update-main` | | EXPERIMENTAL. remove, i.e. delete, component/s on the main lane after merging this lane into main |
|
|
1166
|
-
|
|
1167
|
-
### lane merge
|
|
1168
|
-
|
|
1169
|
-
**Usage**: `lane merge <lane> [pattern]`
|
|
1170
|
-
|
|
1171
|
-
**Description**: merge a local or a remote lane to the current lane
|
|
1172
|
-
by default, the provided lane will be fetched from the remote before merging.
|
|
1173
|
-
to merge the lane from the local scope without updating it first, use "--skip-fetch" flag.
|
|
1174
|
-
|
|
1175
|
-
when the current and merge candidate lanes are diverged in history and the files could be merged with no conflicts,
|
|
1176
|
-
these components will be snap-merged to complete the merge. use "no-snap" to opt-out, or "tag" to tag instead.
|
|
1177
|
-
|
|
1178
|
-
in case a component in both ends don't share history (no snap is found in common), the merge will require "--resolve-unrelated" flag.
|
|
1179
|
-
this flag keeps the history of one end and saves a reference to the other end. the decision of which end to keep is determined by the following:
|
|
1180
|
-
|
|
1181
|
-
1. if the component exists on main, then the history linked to main will be kept.
|
|
1182
|
-
in this case, the strategy of "--resolve-unrelated" only determines which source-code to keep. it's not about the history.
|
|
1183
|
-
2. if the component doesn't exist on main, then by default, the history of the current lane will be kept.
|
|
1184
|
-
unless "--resolve-unrelated" is set to "theirs", in which case the history of the other lane will be kept.
|
|
1185
|
-
3. a. an edge case: if the component is deleted on the current lane, the strategy will always be "theirs".
|
|
1186
|
-
so then the history (and the source-code) of the other lane will be kept.
|
|
1187
|
-
|
|
1188
|
-
| **Arg** | **Description** |
|
|
1189
|
-
| --------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1190
|
-
| `lane` | lane-name or full lane-id (if remote) to merge to the current lane |
|
|
1191
|
-
| `pattern` | partially merge the lane - only components that match the specified component-pattern Component pattern format: component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1192
|
-
|
|
1193
|
-
| **Option** | **Option alias** | **Description** |
|
|
1194
|
-
| --------------------------------------- | :--------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1195
|
-
| `--manual` | | same as "--auto-merge-resolve manual". in case of merge conflict, write the files with the conflict markers |
|
|
1196
|
-
| `--auto-merge-resolve <merge-strategy>` | | in case of a merge conflict, resolve according to the provided strategy: [ours, theirs, manual] |
|
|
1197
|
-
| `--ours` | | DEPRECATED. use --auto-merge-resolve. in case of a conflict, keep local modifications |
|
|
1198
|
-
| `--theirs` | | DEPRECATED. use --auto-merge-resolve. in case of a conflict, override local with incoming changes |
|
|
1199
|
-
| `--workspace` | | merge only lane components that are in the current workspace |
|
|
1200
|
-
| `--no-snap` | | do not auto snap after merge completed without conflicts |
|
|
1201
|
-
| `--tag` | | auto-tag all lane components after merging into main (or tag-merge in case of snap-merge) |
|
|
1202
|
-
| `--build` | | in case of snap during the merge, run the build-pipeline (similar to bit snap --build) |
|
|
1203
|
-
| `--message <message>` | `-m` | override the default message for the auto snap |
|
|
1204
|
-
| `--keep-readme` | | skip deleting the lane readme component after merging |
|
|
1205
|
-
| `--no-squash` | | relevant for merging lanes into main, which by default squashes all lane snaps |
|
|
1206
|
-
| `--squash` | | EXPERIMENTAL. relevant for merging a lane into another non-main lane, which by default does not squash |
|
|
1207
|
-
| `--ignore-config-changes` | | allow merging when components are modified due to config changes (such as dependencies) only and not files |
|
|
1208
|
-
| `--verbose` | | show details of components that were not merged successfully |
|
|
1209
|
-
| `--skip-dependency-installation` | `-x` | do not install dependencies of the imported components |
|
|
1210
|
-
| `--skip-fetch` | | use the local state of target-lane if exits locally, without updating it from the remote |
|
|
1211
|
-
| `--include-deps` | | relevant for "--pattern" and "--workspace". merge also dependencies of the specified components |
|
|
1212
|
-
| `--resolve-unrelated [merge-strategy]` | | relevant when a component on a lane and the component on main have nothing in common. merge-strategy can be "ours" (default) or "theirs" |
|
|
1213
|
-
| `--include-non-lane-comps` | | DEPRECATED (this is now the default). when merging main, include workspace components that are not on the lane (by default only lane components are merged) |
|
|
1214
|
-
| `--exclude-non-lane-comps` | | when merging main into a lane, exclude workspace components that are not on the lane (by default all workspace components are merged) |
|
|
1215
|
-
|
|
1216
|
-
### lane merge-abort
|
|
1217
|
-
|
|
1218
|
-
**Usage**: `lane merge-abort`
|
|
1219
|
-
|
|
1220
|
-
**Description**: abort the recent lane-merge. revert the lane object and checkout accordingly
|
|
1221
|
-
restore the lane-object to its state before the last "bit lane merge" command.
|
|
1222
|
-
also, checkout the workspace components according to the restored lane state
|
|
1223
|
-
|
|
1224
|
-
| **Option** | **Option alias** | **Description** |
|
|
1225
|
-
| -------------------------------- | :--------------: | -------------------------------------------------------- |
|
|
1226
|
-
| `--verbose` | | show details of components that didn't need to be merged |
|
|
1227
|
-
| `--silent` | `-s` | skip confirmation |
|
|
1228
|
-
| `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
|
|
1229
|
-
|
|
1230
|
-
| **Option** | **Option alias** | **Description** |
|
|
1231
|
-
| ------------------------------ | :--------------: | ------------------------------------------------------------- |
|
|
1232
|
-
| `--details` | `-d` | show more details on the state of each component in each lane |
|
|
1233
|
-
| `--json` | `-j` | show lanes details in json format |
|
|
1234
|
-
| `--remote <remote-scope-name>` | `-r` | show all remote lanes from the specified scope |
|
|
1235
|
-
| `--merged` | | list only merged lanes |
|
|
1236
|
-
| `--not-merged` | | list only lanes that haven't been merged |
|
|
689
|
+
| **Option** | **Option alias** | **Description** |
|
|
690
|
+
| --------------------------------------- | :--------------: | --------------------------------------------------------------- |
|
|
691
|
+
| `--variants <variants>` | `-v` | add packages to specific variants |
|
|
692
|
+
| `--type [lifecycleType]` | `-t` | "runtime" (default) or "peer" (dev is not a valid option) |
|
|
693
|
+
| `--update-existing [updateExisting]` | `-u` | update existing dependencies version and types |
|
|
694
|
+
| `--save-prefix [savePrefix]` | | set the prefix to use when adding dependency to workspace.jsonc |
|
|
695
|
+
| `--skip-dedupe [skipDedupe]` | | do not dedupe dependencies on installation |
|
|
696
|
+
| `--skip-import [skipImport]` | | do not import bit objects post installation |
|
|
697
|
+
| `--add-missing-peers [addMissingPeers]` | | install all missing peer dependencies |
|
|
1237
698
|
|
|
1238
699
|
---
|
|
1239
700
|
|
|
1240
701
|
## link
|
|
1241
702
|
|
|
1242
|
-
**
|
|
703
|
+
**Workspace only**: yes
|
|
704
|
+
**Description**: generate symlinks to resolve module paths for imported components.
|
|
705
|
+
https://bit.dev/reference/workspace/component-links
|
|
1243
706
|
|
|
1244
|
-
`bit link [
|
|
707
|
+
`bit link [ids...]`
|
|
1245
708
|
|
|
1246
|
-
| **
|
|
1247
|
-
|
|
|
1248
|
-
| `
|
|
1249
|
-
|
|
1250
|
-
|
|
|
1251
|
-
|
|
|
1252
|
-
| `--
|
|
1253
|
-
| `--verbose` | | verbose output |
|
|
1254
|
-
| `--rewire` | `-r` | Replace relative paths with module paths in code (e.g. "../foo" => "@bit/foo") |
|
|
1255
|
-
| `--target <dir>` | | link to an external directory (similar to npm-link) so other projects could use these components |
|
|
1256
|
-
| `--skip-fetching-objects` | | skip fetch missing objects from remotes before linking |
|
|
1257
|
-
| `--peers` | | link peer dependencies of the components too |
|
|
709
|
+
| **Option** | **Option alias** | **Description** |
|
|
710
|
+
| ------------------------- | :--------------: | -------------------------------------------------------------------------------------------------------------- |
|
|
711
|
+
| `--json` | `-j` | return the output as JSON |
|
|
712
|
+
| `--verbose` | | verbose output |
|
|
713
|
+
| `--rewire` | `-r` | Replace relative paths with module paths in code (e.g. "../foo" => "@bit/foo") |
|
|
714
|
+
| `--target <dir>` | | EXPERIMENTAL. link to an external directory (similar to npm-link) so other projects could use these components |
|
|
715
|
+
| `--skip-fetching-objects` | | skip fetch missing objects from remotes before linking |
|
|
1258
716
|
|
|
1259
717
|
---
|
|
1260
718
|
|
|
1261
719
|
## lint
|
|
1262
720
|
|
|
721
|
+
**Workspace only**: yes
|
|
1263
722
|
**Description**: lint components in the development workspace
|
|
1264
723
|
|
|
1265
|
-
`bit lint [component
|
|
1266
|
-
|
|
1267
|
-
| **Arg** | **Description** |
|
|
1268
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1269
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
724
|
+
`bit lint [component...]`
|
|
1270
725
|
|
|
1271
726
|
| **Option** | **Option alias** | **Description** |
|
|
1272
727
|
| ---------------------- | :--------------: | ----------------------------------------------------------------- |
|
|
@@ -1280,75 +735,59 @@ also, checkout the workspace components according to the restored lane state
|
|
|
1280
735
|
## list
|
|
1281
736
|
|
|
1282
737
|
**Alias**: `ls`
|
|
1283
|
-
**
|
|
738
|
+
**Workspace only**: no
|
|
739
|
+
**Description**: list components on a local or a remote scope.
|
|
740
|
+
https://bit.dev/reference/reference/cli-reference#list
|
|
1284
741
|
|
|
1285
742
|
`bit list [remote-scope]`
|
|
1286
743
|
|
|
1287
|
-
| **Option** | **Option alias** | **Description**
|
|
1288
|
-
| ---------------------- | :--------------: |
|
|
1289
|
-
| `--ids` | `-i` | show only component ids
|
|
1290
|
-
| `--scope` | `-s` | show only components stored in the local scope, including indirect dependencies
|
|
1291
|
-
| `--
|
|
1292
|
-
| `--
|
|
1293
|
-
| `--
|
|
744
|
+
| **Option** | **Option alias** | **Description** |
|
|
745
|
+
| ---------------------- | :--------------: | ------------------------------------------------------------------------------- |
|
|
746
|
+
| `--ids` | `-i` | show only component ids unformatted |
|
|
747
|
+
| `--scope` | `-s` | show only components stored in the local scope, including indirect dependencies |
|
|
748
|
+
| `--bare` | `-b` | DEPRECATED. use --raw instead |
|
|
749
|
+
| `--raw` | `-r` | show raw output (only components ids, no styling) |
|
|
750
|
+
| `--outdated` | `-o` | show latest versions from remotes |
|
|
751
|
+
| `--json` | `-j` | show the output in JSON format |
|
|
752
|
+
| `--namespace <string>` | `-n` | show only specified namespace by using wildcards |
|
|
1294
753
|
|
|
1295
754
|
---
|
|
1296
755
|
|
|
1297
756
|
## log
|
|
1298
757
|
|
|
1299
|
-
**
|
|
758
|
+
**Workspace only**: no
|
|
759
|
+
**Description**: show components(s) tag history.
|
|
760
|
+
https://bit.dev/reference/reference/cli-reference#log
|
|
1300
761
|
|
|
1301
762
|
`bit log <id>`
|
|
1302
763
|
|
|
1303
|
-
| **
|
|
1304
|
-
|
|
|
1305
|
-
| `
|
|
1306
|
-
|
|
1307
|
-
| **Option** | **Option alias** | **Description** |
|
|
1308
|
-
| ---------------- | :--------------: | --------------------------------------------------------------------------------------------- |
|
|
1309
|
-
| `--remote` | `-r` | show log of a remote component |
|
|
1310
|
-
| `--parents` | | show parents and lanes data |
|
|
1311
|
-
| `--one-line` | `-o` | show each log entry in one line |
|
|
1312
|
-
| `--full-hash` | `-f` | show full hash of the snap (default to the first 9 characters for --one-line/--parents flags) |
|
|
1313
|
-
| `--full-message` | `-m` | show full message of the snap (default to the first line for --one-line/--parents flags) |
|
|
1314
|
-
| `--json` | `-j` | json format |
|
|
1315
|
-
|
|
1316
|
-
---
|
|
1317
|
-
|
|
1318
|
-
## log-file
|
|
1319
|
-
|
|
1320
|
-
**Description**: EXPERIMENTAL. show file history
|
|
1321
|
-
|
|
1322
|
-
`bit log-file <filepath>`
|
|
1323
|
-
|
|
1324
|
-
| **Arg** | **Description** |
|
|
1325
|
-
| ---------- | :---------------------------------: |
|
|
1326
|
-
| `filepath` | file path relative to the workspace |
|
|
1327
|
-
|
|
1328
|
-
| **Option** | **Option alias** | **Description** |
|
|
1329
|
-
| ------------ | :--------------: | ------------------------------- |
|
|
1330
|
-
| `--one-line` | `-o` | show each log entry in one line |
|
|
764
|
+
| **Option** | **Option alias** | **Description** |
|
|
765
|
+
| ----------- | :--------------: | ----------------------------------------- |
|
|
766
|
+
| `--remote` | `-r` | show log of a remote component |
|
|
767
|
+
| `--parents` | | EXPERIMENTAL. show parents and lanes data |
|
|
1331
768
|
|
|
1332
769
|
---
|
|
1333
770
|
|
|
1334
771
|
## login
|
|
1335
772
|
|
|
1336
|
-
**
|
|
773
|
+
**Workspace only**: no
|
|
774
|
+
**Description**: log the CLI into Bit Cloud
|
|
1337
775
|
|
|
1338
776
|
`bit login`
|
|
1339
777
|
|
|
1340
|
-
| **Option** | **Option alias** | **Description**
|
|
1341
|
-
| --------------------------- | :--------------: |
|
|
1342
|
-
| `--
|
|
1343
|
-
| `--
|
|
1344
|
-
| `--
|
|
1345
|
-
| `--
|
|
1346
|
-
| `--
|
|
778
|
+
| **Option** | **Option alias** | **Description** |
|
|
779
|
+
| --------------------------- | :--------------: | -------------------------------------------------------------------------------------------------- |
|
|
780
|
+
| `--port <port>` | `-p` | port number to open for localhost server (default 8085) |
|
|
781
|
+
| `--suppress-browser-launch` | | do not open a browser for authentication |
|
|
782
|
+
| `--npmrc-path <path>` | | path to npmrc file to configure bit.cloud registry |
|
|
783
|
+
| `--skip-registry-config` | | don't configure bit.cloud registry |
|
|
784
|
+
| `--machine-name <string>` | | specify machine-name to pair with the token (useful for CI to avoid accidentally revoke the token) |
|
|
1347
785
|
|
|
1348
786
|
---
|
|
1349
787
|
|
|
1350
788
|
## logout
|
|
1351
789
|
|
|
790
|
+
**Workspace only**: yes
|
|
1352
791
|
**Description**: log the CLI out of Bit
|
|
1353
792
|
|
|
1354
793
|
`bit logout`
|
|
@@ -1357,127 +796,81 @@ also, checkout the workspace components according to the restored lane state
|
|
|
1357
796
|
|
|
1358
797
|
## merge
|
|
1359
798
|
|
|
1360
|
-
**
|
|
1361
|
-
merge changes of
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
you can use a pattern for multiple ids, such as bit merge "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
799
|
+
**Workspace only**: yes
|
|
800
|
+
**Description**: merge changes of different component versions
|
|
801
|
+
`bit merge <version> [ids...]` => merge changes of the given version into the checked out version
|
|
802
|
+
`bit merge [ids...]` => EXPERIMENTAL. merge changes of the remote head into local, optionally use '--abort' or '--resolve'
|
|
803
|
+
you can use a pattern for multiple ids, such as bit merge 0.0.1 "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
1366
804
|
|
|
1367
|
-
`bit merge [
|
|
805
|
+
`bit merge [values...]`
|
|
1368
806
|
|
|
1369
|
-
| **Option**
|
|
1370
|
-
|
|
|
1371
|
-
| `--ours`
|
|
1372
|
-
| `--theirs`
|
|
1373
|
-
| `--manual`
|
|
1374
|
-
| `--
|
|
1375
|
-
| `--
|
|
1376
|
-
| `--
|
|
1377
|
-
| `--
|
|
1378
|
-
| `--
|
|
1379
|
-
| `--verbose` | | show details of components that were not merged successfully |
|
|
1380
|
-
| `--skip-dependency-installation` | `-x` | do not install new dependencies resulting from the merge |
|
|
1381
|
-
| `--message <message>` | `-m` | override the default message for the auto snap |
|
|
1382
|
-
|
|
1383
|
-
---
|
|
1384
|
-
|
|
1385
|
-
## mini-status
|
|
1386
|
-
|
|
1387
|
-
**Alias**: `ms`
|
|
1388
|
-
**Description**: EXPERIMENTAL. basic status for fast execution
|
|
1389
|
-
shows only modified/new components with code changes. for the full status, use "bit status".
|
|
1390
|
-
this command only checks source code changes, it doesn't check for config/aspect/dependency changes
|
|
1391
|
-
|
|
1392
|
-
`bit mini-status [component-pattern]`
|
|
1393
|
-
|
|
1394
|
-
| **Arg** | **Description** |
|
|
1395
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1396
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1397
|
-
|
|
1398
|
-
| **Option** | **Option alias** | **Description** |
|
|
1399
|
-
| -------------------------------- | :--------------: | ------------------------------------------------------------------------------------------------------------ |
|
|
1400
|
-
| `--show-issues` | | show component issues (slows down the command) |
|
|
1401
|
-
| `--ignore-circular-dependencies` | `-c` | do not check for circular dependencies to get the results quicker (relevant when --show-issues flag is used) |
|
|
1402
|
-
| `--json` | `-j` | json format |
|
|
807
|
+
| **Option** | **Option alias** | **Description** |
|
|
808
|
+
| --------------------- | :--------------: | ------------------------------------------------------------------------------------------- |
|
|
809
|
+
| `--ours` | | in case of a conflict, override the used version with the current modification |
|
|
810
|
+
| `--theirs` | | in case of a conflict, override the current modification with the specified version |
|
|
811
|
+
| `--manual` | | in case of a conflict, leave the files with a conflict state to resolve them manually later |
|
|
812
|
+
| `--abort` | | EXPERIMENTAL. in case of an unresolved merge, revert to the state before the merge began |
|
|
813
|
+
| `--resolve` | | EXPERIMENTAL. mark an unresolved merge as resolved and create a new snap with the changes |
|
|
814
|
+
| `--no-snap` | | EXPERIMENTAL. do not auto snap in case the merge completed without conflicts |
|
|
815
|
+
| `--build` | | in case of snap during the merge, run the build-pipeline (similar to bit snap --build) |
|
|
816
|
+
| `--message <message>` | `-m` | EXPERIMENTAL. override the default message for the auto snap |
|
|
1403
817
|
|
|
1404
818
|
---
|
|
1405
819
|
|
|
1406
820
|
## move
|
|
1407
821
|
|
|
1408
822
|
**Alias**: `mv`
|
|
1409
|
-
**
|
|
1410
|
-
move files or directories of component(s)
|
|
823
|
+
**Workspace only**: yes
|
|
824
|
+
**Description**: move files or directories of component(s)
|
|
825
|
+
https://bit.dev/reference/workspace/moving-components
|
|
1411
826
|
|
|
1412
|
-
`bit move <
|
|
827
|
+
`bit move <existing-dir> <new-dir>`
|
|
1413
828
|
|
|
1414
|
-
| **
|
|
1415
|
-
|
|
|
1416
|
-
|
|
|
1417
|
-
| `new-component-dir` | the new directory (relative to the workspace root) to create and move the component's files to |
|
|
829
|
+
| **Option** | **Option alias** | **Description** |
|
|
830
|
+
| ------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
831
|
+
| `--component` | `-c` | move component files that are spread over multiple directories to one directory. synopsis: `move <component-id> <directory>` |
|
|
1418
832
|
|
|
1419
833
|
---
|
|
1420
834
|
|
|
1421
835
|
## new
|
|
1422
836
|
|
|
1423
|
-
**
|
|
837
|
+
**Workspace only**: yes
|
|
838
|
+
**Description**: Create a new workspace from a template
|
|
1424
839
|
|
|
1425
|
-
`bit new <
|
|
840
|
+
`bit new <templateName> <workspaceName>`
|
|
1426
841
|
|
|
1427
|
-
| **
|
|
1428
|
-
|
|
|
1429
|
-
| `
|
|
1430
|
-
|
|
|
1431
|
-
|
|
1432
|
-
|
|
|
1433
|
-
|
|
|
1434
|
-
| `--
|
|
1435
|
-
| `--template <env-id>` | `-t` | id of the dev environment to use for the template. Alias for --env. |
|
|
1436
|
-
| `--env <env-id>` | | id of the dev environment to use for the template. Alias -t |
|
|
1437
|
-
| `--default-scope <scope-name>` | `-d` | set the default scope for the workspace. used in the generated workspace.jsonc |
|
|
1438
|
-
| `--standalone` | | DEPRECATED. use --skip-git instead |
|
|
1439
|
-
| `--skip-git` | `-s` | skip generation of Git repository in the new workspace |
|
|
1440
|
-
| `--empty` | `-e` | skip template's default component creation (relevant for templates that add components by default) |
|
|
1441
|
-
| `--load-from <path-to-template>` | | local path to the workspace containing the template. Helpful during a development of a workspace-template |
|
|
1442
|
-
| `--current-dir` | `-c` | create the new workspace in current directory (default is to create a new directory, inside the current dir) |
|
|
842
|
+
| **Option** | **Option alias** | **Description** |
|
|
843
|
+
| -------------------------- | :--------------: | --------------------------------------------------------------------------------------------------------------- |
|
|
844
|
+
| `--aspect <string>` | `-a` | aspect-id of the template. mandatory for non-core aspects. helpful for core aspects in case of a name collision |
|
|
845
|
+
| `--default-scope <string>` | `-d` | set defaultScope in the new workspace.jsonc |
|
|
846
|
+
| `--standalone` | | DEPRECATED. use --skip-git instead |
|
|
847
|
+
| `--skip-git` | `-s` | skip generation of Git repository |
|
|
848
|
+
| `--empty` | `-e` | empty workspace with no components (relevant for templates that add components by default) |
|
|
849
|
+
| `--load-from <string>` | | path to the workspace containing the template. helpful during a development of a workspace-template |
|
|
1443
850
|
|
|
1444
851
|
---
|
|
1445
852
|
|
|
1446
|
-
##
|
|
1447
|
-
|
|
1448
|
-
**Description**: manage npmrc file with scope, registry, and token information from bit.cloud
|
|
853
|
+
## pack
|
|
1449
854
|
|
|
1450
|
-
|
|
855
|
+
**Workspace only**: yes
|
|
856
|
+
**Description**: create tar for npm publish
|
|
1451
857
|
|
|
1452
|
-
|
|
858
|
+
`bit pack <componentId> [scopePath]`
|
|
1453
859
|
|
|
1454
|
-
**
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
|
1459
|
-
|
|
|
1460
|
-
| `--
|
|
1461
|
-
| `--force` | `-f` | force update the .npmrc file even if there are conflicts |
|
|
860
|
+
| **Option** | **Option alias** | **Description** |
|
|
861
|
+
| --------------------- | :--------------: | -------------------------------------------------- |
|
|
862
|
+
| `--out-dir <out-dir>` | `-d` | directory to put the result tar file |
|
|
863
|
+
| `--override` | `-o` | override existing pack file |
|
|
864
|
+
| `--keep` | `-k` | should keep isolated environment [default = false] |
|
|
865
|
+
| `--prefix` | `-p` | keep custom (binding) prefix |
|
|
866
|
+
| `--json` | `-j` | return the output as JSON |
|
|
1462
867
|
|
|
1463
868
|
---
|
|
1464
869
|
|
|
1465
870
|
## pattern
|
|
1466
871
|
|
|
1467
|
-
**
|
|
1468
|
-
|
|
1469
|
-
NOTE: always wrap the pattern with quotes to avoid collision with shell commands. depending on your shell, it might be single or double quotes.
|
|
1470
|
-
a pattern can be a simple component-id or component-name. e.g. 'ui/button'.
|
|
1471
|
-
a pattern can be used with wildcards for multiple component ids, e.g. 'org.scope/utils/**' or '**/utils/**' to capture all org/scopes.
|
|
1472
|
-
to enter multiple patterns, separate them by a comma, e.g. 'ui/_, lib/_'
|
|
1473
|
-
to exclude, use '!'. e.g. 'ui/**, !ui/button'
|
|
1474
|
-
the matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch).
|
|
1475
|
-
|
|
1476
|
-
to filter by a state or attribute, prefix the pattern with "$". e.g. '$deprecated', '$modified'.
|
|
1477
|
-
list of supported states: [new, modified, deprecated, deleted, snappedOnMain, softTagged, codeModified].
|
|
1478
|
-
to filter by multi-params state/attribute, separate the params with ":", e.g. '$env:teambit.react/react'.
|
|
1479
|
-
list of supported multi-params states: [env].
|
|
1480
|
-
to match a state and another criteria, use " AND " keyword. e.g. '$modified AND teambit.workspace/\*\*'. note that the state must be first.
|
|
872
|
+
**Workspace only**: yes
|
|
873
|
+
**Description**: list the component ids matching the given pattern
|
|
1481
874
|
|
|
1482
875
|
`bit pattern <pattern>`
|
|
1483
876
|
|
|
@@ -1487,22 +880,10 @@ to match a state and another criteria, use " AND " keyword. e.g. '$modified AND
|
|
|
1487
880
|
|
|
1488
881
|
---
|
|
1489
882
|
|
|
1490
|
-
## recover
|
|
1491
|
-
|
|
1492
|
-
**Description**: EXPERIMENTAL. recover component(s) soft-deleted from the workspace, or a remote scope
|
|
1493
|
-
|
|
1494
|
-
`bit recover <component-name>`
|
|
1495
|
-
|
|
1496
|
-
| **Option** | **Option alias** | **Description** |
|
|
1497
|
-
| -------------------------------- | :--------------: | ---------------------------------------------------------------------- |
|
|
1498
|
-
| `--skip-dependency-installation` | `-x` | do not install packages in case of importing components |
|
|
1499
|
-
| `--skip-write-config-files` | | do not write config files (such as eslint, tsconfig, prettier, etc...) |
|
|
1500
|
-
|
|
1501
|
-
---
|
|
1502
|
-
|
|
1503
883
|
## refactor
|
|
1504
884
|
|
|
1505
|
-
**
|
|
885
|
+
**Workspace only**: yes
|
|
886
|
+
**Description**: EXPERIMENTAL. source code refactoring / codemod
|
|
1506
887
|
|
|
1507
888
|
`bit refactor <sub-command>`
|
|
1508
889
|
|
|
@@ -1517,7 +898,9 @@ the `<old-id>` and `<new-id>` arguments can be either a component-id or a packag
|
|
|
1517
898
|
|
|
1518
899
|
## remote
|
|
1519
900
|
|
|
1520
|
-
**
|
|
901
|
+
**Workspace only**: yes
|
|
902
|
+
**Description**: manage set of tracked bit scope(s)
|
|
903
|
+
https://bit.dev/reference/scope/remote-scopes
|
|
1521
904
|
|
|
1522
905
|
`bit remote`
|
|
1523
906
|
|
|
@@ -1525,9 +908,9 @@ the `<old-id>` and `<new-id>` arguments can be either a component-id or a packag
|
|
|
1525
908
|
|
|
1526
909
|
**Usage**: `remote add <url>`
|
|
1527
910
|
|
|
1528
|
-
**Description**: add a bare-scope as a remote
|
|
1529
|
-
|
|
1530
|
-
|
|
911
|
+
**Description**: add a bare-scope as a remote. supported protocols are [file, http, ssh].
|
|
912
|
+
for example: "http://localhost:3000", "file:///tmp/local-scope", "ssh://user@127.0.0.1:/tmp/local-scope".
|
|
913
|
+
Legacy support [file, ssh]. Harmony supports [file, http].
|
|
1531
914
|
|
|
1532
915
|
| **Option** | **Option alias** | **Description** |
|
|
1533
916
|
| ---------- | :--------------: | ---------------------------- |
|
|
@@ -1539,9 +922,9 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
|
|
|
1539
922
|
|
|
1540
923
|
**Description**: remove a tracked bit remote
|
|
1541
924
|
|
|
1542
|
-
| **Option** | **Option alias** | **Description**
|
|
1543
|
-
| ---------- | :--------------: |
|
|
1544
|
-
| `--global` | `-g` | remove a
|
|
925
|
+
| **Option** | **Option alias** | **Description** |
|
|
926
|
+
| ---------- | :--------------: | --------------------------------------- |
|
|
927
|
+
| `--global` | `-g` | remove a global configured remote scope |
|
|
1545
928
|
|
|
1546
929
|
| **Option** | **Option alias** | **Description** |
|
|
1547
930
|
| ---------- | :--------------: | ------------------------------- |
|
|
@@ -1552,206 +935,83 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
|
|
|
1552
935
|
## remove
|
|
1553
936
|
|
|
1554
937
|
**Alias**: `rm`
|
|
1555
|
-
**
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
938
|
+
**Workspace only**: no
|
|
939
|
+
**Description**: remove a component (local/remote)
|
|
940
|
+
https://bit.dev/reference/components/removing-components
|
|
941
|
+
you can use a pattern for multiple ids, such as bit remove "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
1559
942
|
|
|
1560
|
-
|
|
1561
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1562
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
943
|
+
`bit remove <ids...>`
|
|
1563
944
|
|
|
1564
|
-
| **Option**
|
|
1565
|
-
|
|
|
1566
|
-
| `--
|
|
1567
|
-
| `--
|
|
1568
|
-
| `--
|
|
1569
|
-
| `--
|
|
945
|
+
| **Option** | **Option alias** | **Description** |
|
|
946
|
+
| ---------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
947
|
+
| `--remote` | `-r` | remove a component from a remote scope |
|
|
948
|
+
| `--track` | `-t` | keep tracking component (default = false) |
|
|
949
|
+
| `--delete-files` | `-d` | delete local component files (authored components only. for imported components the files are always deleted) |
|
|
950
|
+
| `--force` | `-f` | removes the component from the scope, even if used as a dependency. WARNING: components that depend on this component will corrupt |
|
|
951
|
+
| `--silent` | `-s` | skip confirmation |
|
|
1570
952
|
|
|
1571
953
|
---
|
|
1572
954
|
|
|
1573
955
|
## rename
|
|
1574
956
|
|
|
1575
|
-
**
|
|
957
|
+
**Workspace only**: no
|
|
958
|
+
**Description**: EXPERIMENTAL. rename component. if tagged/exported, create a new component and deprecate the source-component
|
|
959
|
+
the `<target-name>` should include the component-name only, without the scope-name.
|
|
960
|
+
to assign a default-scope to this component, please use "--scope" flag
|
|
1576
961
|
|
|
1577
|
-
`bit rename <
|
|
962
|
+
`bit rename <source-name> <target-name>`
|
|
1578
963
|
|
|
1579
|
-
| **
|
|
1580
|
-
|
|
|
1581
|
-
|
|
|
1582
|
-
| `
|
|
1583
|
-
|
|
1584
|
-
| **Option** | **Option alias** | **Description** |
|
|
1585
|
-
| ------------------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1586
|
-
| `--scope <scope-name>` | `-s` | define the scope for the newly created component |
|
|
1587
|
-
| `--refactor` | `-r` | update the import/require statements in all dependent components (in the same workspace) |
|
|
1588
|
-
| `--preserve` | | avoid renaming files and variables/classes according to the new component name |
|
|
1589
|
-
| `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
|
|
1590
|
-
| `--delete` | | DEPRECATED. this is now the default |
|
|
1591
|
-
| `--deprecate` | | instead of deleting the original component, deprecating it |
|
|
1592
|
-
| `--path <relative-path>` | `-p` | relative path in the workspace to place new component in. by default, the directory of the new component is from your workspace's "defaultScope" value |
|
|
964
|
+
| **Option** | **Option alias** | **Description** |
|
|
965
|
+
| ------------------ | :--------------: | --------------------------------------------------------------------------------------- |
|
|
966
|
+
| `--scope <string>` | `-s` | default scope for the newly created component |
|
|
967
|
+
| `--path <string>` | `-p` | relative path in the workspace. by default the path is `<scope>/<namespace>/<name>` |
|
|
968
|
+
| `--refactor` | `-r` | change the source code of all components using this component with the new package-name |
|
|
1593
969
|
|
|
1594
970
|
---
|
|
1595
971
|
|
|
1596
|
-
##
|
|
1597
|
-
|
|
1598
|
-
**Description**: revert tagged or snapped versions for component(s)
|
|
1599
|
-
https://bit.dev/components/tags#undoing-a-tag
|
|
972
|
+
## resume-export
|
|
1600
973
|
|
|
1601
|
-
|
|
974
|
+
**Workspace only**: yes
|
|
975
|
+
**Description**: resume failed export to persist the pending objects on the given remotes.
|
|
976
|
+
the export-id is the id the client got in the error message during the failure.
|
|
977
|
+
alternatively, exporting to any one of the failed scopes, throws server-is-busy error with the export-id
|
|
1602
978
|
|
|
1603
|
-
|
|
1604
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1605
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1606
|
-
| `component-version` | the version to untag (semver for tags. hash for snaps) |
|
|
1607
|
-
|
|
1608
|
-
| **Option** | **Option alias** | **Description** |
|
|
1609
|
-
| ------------------ | :--------------: | --------------------------------------------------------------------------------------------------------------- |
|
|
1610
|
-
| `--all` | `-a` | revert all unexported tags/snaps for all components |
|
|
1611
|
-
| `--head` | | revert the head tag/snap only (by default, all local tags/snaps are reverted) |
|
|
1612
|
-
| `--soft` | | revert only soft-tags (components tagged with --soft flag) |
|
|
1613
|
-
| `--force` | `-f` | revert the tag even if it's used as a dependency. WARNING: components that depend on this tag will be corrupted |
|
|
1614
|
-
| `--never-exported` | | reset only components that were never exported |
|
|
1615
|
-
|
|
1616
|
-
---
|
|
1617
|
-
|
|
1618
|
-
## revert
|
|
1619
|
-
|
|
1620
|
-
**Description**: replace the current component files by the specified version, leave the version intact
|
|
1621
|
-
|
|
1622
|
-
`bit revert <component-pattern> <to>`
|
|
1623
|
-
|
|
1624
|
-
| **Arg** | **Description** |
|
|
1625
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1626
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1627
|
-
| `to` | permitted values: [main, specific-version]. 'main' - head version on main. |
|
|
1628
|
-
|
|
1629
|
-
| **Option** | **Option alias** | **Description** |
|
|
1630
|
-
| -------------------------------- | :--------------: | -------------------------------------------------- |
|
|
1631
|
-
| `--verbose` | `-v` | showing verbose output for inspection |
|
|
1632
|
-
| `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
|
|
979
|
+
`bit resume-export <export-id> <remotes...>`
|
|
1633
980
|
|
|
1634
981
|
---
|
|
1635
982
|
|
|
1636
983
|
## run
|
|
1637
984
|
|
|
1638
985
|
**Alias**: `c`
|
|
1639
|
-
**
|
|
1640
|
-
|
|
1641
|
-
`bit run <app-name>`
|
|
986
|
+
**Workspace only**: yes
|
|
987
|
+
**Description**: run an application
|
|
1642
988
|
|
|
1643
|
-
|
|
1644
|
-
| ---------- | :--------------------------------------------------------------------------------------------------: |
|
|
1645
|
-
| `app-name` | the app's name is registered by the app (run 'bit app list' to list the names of the available apps) |
|
|
989
|
+
`bit run <app>`
|
|
1646
990
|
|
|
1647
|
-
| **Option**
|
|
1648
|
-
|
|
|
1649
|
-
| `--dev`
|
|
1650
|
-
| `--
|
|
1651
|
-
| `--
|
|
1652
|
-
| `--watch` | `-w` | watch and compile your components upon changes |
|
|
991
|
+
| **Option** | **Option alias** | **Description** |
|
|
992
|
+
| -------------- | :--------------: | -------------------------------------------------------------------------- |
|
|
993
|
+
| `--dev` | `-d` | start the application in dev mode. |
|
|
994
|
+
| `--verbose` | `-v` | showing verbose output for inspection and prints stack trace |
|
|
995
|
+
| `--skip-watch` | | avoid running the watch process that compiles components in the background |
|
|
1653
996
|
|
|
1654
997
|
---
|
|
1655
998
|
|
|
1656
999
|
## schema
|
|
1657
1000
|
|
|
1658
|
-
**
|
|
1659
|
-
|
|
1660
|
-
use comma to separate patterns and '!' to exclude. e.g. 'ui/\*\*, !ui/button'
|
|
1661
|
-
use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.
|
|
1662
|
-
always wrap the pattern with single quotes to avoid collision with shell commands.
|
|
1663
|
-
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
1664
|
-
|
|
1665
|
-
`bit schema <pattern>`
|
|
1666
|
-
|
|
1667
|
-
| **Option** | **Option alias** | **Description** |
|
|
1668
|
-
| ---------- | :--------------: | ------------------------------------------ |
|
|
1669
|
-
| `--json` | `-j` | return the component schema in json format |
|
|
1670
|
-
|
|
1671
|
-
---
|
|
1672
|
-
|
|
1673
|
-
## scope
|
|
1674
|
-
|
|
1675
|
-
**Description**: manage the scope-name for components
|
|
1676
|
-
|
|
1677
|
-
`bit scope <sub-command>`
|
|
1678
|
-
|
|
1679
|
-
### scope set
|
|
1680
|
-
|
|
1681
|
-
**Usage**: `scope set <scope-name> [component-pattern]`
|
|
1682
|
-
|
|
1683
|
-
**Description**: Sets the scope for specified component/s. If no component is specified, sets the default scope of the workspace
|
|
1684
|
-
default scopes for components are set in the bitmap file. the default scope for a workspace is set in the workspace.jsonc.
|
|
1685
|
-
a component is set with a scope (as oppose to default scope) only once it is versioned.'
|
|
1686
|
-
|
|
1687
|
-
you can use a `<pattern>` for multiple component ids, such as `bit scope set scope-name "org.scope/utils/**"`.
|
|
1688
|
-
use comma to separate patterns and '!' to exclude. e.g. 'ui/\*\*, !ui/button'
|
|
1689
|
-
use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.
|
|
1690
|
-
always wrap the pattern with single quotes to avoid collision with shell commands.
|
|
1691
|
-
use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.
|
|
1001
|
+
**Workspace only**: yes
|
|
1002
|
+
**Description**: shows the API schema of a certain component.
|
|
1692
1003
|
|
|
1693
|
-
|
|
1694
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1695
|
-
| `scope-name` | name of the scope to set |
|
|
1696
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1004
|
+
`bit schema <id>`
|
|
1697
1005
|
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
**Description**: rename the scope name for all components with the specified 'current scope name', if exported, create new components and deprecate the original ones
|
|
1703
|
-
Note: if `<current-scope-name>` is also the defaultScope for the workspace, this command will set `<new-scope-name>`
|
|
1704
|
-
as the defaultScope instead, and that will then be set for all components by default. You may see updates in your .bitmap file
|
|
1705
|
-
as a result of this change
|
|
1706
|
-
|
|
1707
|
-
| **Arg** | **Description** |
|
|
1708
|
-
| -------------------- | :-------------------------------------------------: |
|
|
1709
|
-
| `current-scope-name` | the scope name to be replaced by another scope name |
|
|
1710
|
-
| `new-scope-name` | a new scope name to replace the current scope name |
|
|
1711
|
-
|
|
1712
|
-
| **Option** | **Option alias** | **Description** |
|
|
1713
|
-
| ------------- | :--------------: | --------------------------------------------------------------------------------------------------------------- |
|
|
1714
|
-
| `--refactor` | `-r` | update the import statements in all dependent components to the new package name (i.e. with the new scope name) |
|
|
1715
|
-
| `--deprecate` | | for exported components, instead of deleting the original components, deprecating them |
|
|
1716
|
-
|
|
1717
|
-
### scope rename-owner
|
|
1718
|
-
|
|
1719
|
-
**Usage**: `scope rename-owner <current-owner-name> <new-owner-name>`
|
|
1720
|
-
|
|
1721
|
-
**Description**: Renames the owner part of the scope-name for all components with the specified 'current owner name'
|
|
1722
|
-
|
|
1723
|
-
| **Arg** | **Description** |
|
|
1724
|
-
| -------------------- | :-------------------------------------------------: |
|
|
1725
|
-
| `current-owner-name` | the owner name to be replaced by another owner name |
|
|
1726
|
-
| `new-owner-name` | a new owner name to replace the current owner name |
|
|
1727
|
-
|
|
1728
|
-
| **Option** | **Option alias** | **Description** |
|
|
1729
|
-
| ------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------- |
|
|
1730
|
-
| `--refactor` | `-r` | update the import statements in all dependent components to the new package name (that contains the new owner name) |
|
|
1731
|
-
| `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
|
|
1732
|
-
|
|
1733
|
-
### scope fork
|
|
1734
|
-
|
|
1735
|
-
**Usage**: `scope fork <original-scope> <new-scope> [pattern]`
|
|
1736
|
-
|
|
1737
|
-
**Description**: fork all components of the original-scope and refactor the source-code to use the new scope name
|
|
1738
|
-
optionally, provide [pattern] to limit the fork to specific components
|
|
1739
|
-
|
|
1740
|
-
| **Arg** | **Description** |
|
|
1741
|
-
| ---------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1742
|
-
| `original-scope` | the original scope to fork |
|
|
1743
|
-
| `new-scope` | the new scope to fork to |
|
|
1744
|
-
| `pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1745
|
-
|
|
1746
|
-
| **Option** | **Option alias** | **Description** |
|
|
1747
|
-
| -------------------------------- | :--------------: | --------------------------------------------------------- |
|
|
1748
|
-
| `--ast` | | EXPERIMENTAL. use ast to transform files instead of regex |
|
|
1749
|
-
| `--skip-dependency-installation` | `-x` | do not install packages of the imported components |
|
|
1006
|
+
| **Option** | **Option alias** | **Description** |
|
|
1007
|
+
| ---------- | :--------------: | ---------------------------------------- |
|
|
1008
|
+
| `--json` | `-j` | return the component data in json format |
|
|
1750
1009
|
|
|
1751
1010
|
---
|
|
1752
1011
|
|
|
1753
1012
|
## scope-config
|
|
1754
1013
|
|
|
1014
|
+
**Workspace only**: yes
|
|
1755
1015
|
**Description**: scope config management
|
|
1756
1016
|
|
|
1757
1017
|
`bit scope-config`
|
|
@@ -1782,261 +1042,146 @@ optionally, provide [pattern] to limit the fork to specific components
|
|
|
1782
1042
|
|
|
1783
1043
|
---
|
|
1784
1044
|
|
|
1785
|
-
## server
|
|
1786
|
-
|
|
1787
|
-
**Description**: EXPERIMENTAL. communicate with bit cli program via http requests
|
|
1788
|
-
|
|
1789
|
-
`bit server`
|
|
1790
|
-
|
|
1791
|
-
| **Option** | **Option alias** | **Description** |
|
|
1792
|
-
| --------------- | :--------------: | ------------------------------------------- |
|
|
1793
|
-
| `--port [port]` | `-p` | port to run the server on |
|
|
1794
|
-
| `--compile` | `-c` | compile components during the watch process |
|
|
1795
|
-
|
|
1796
|
-
---
|
|
1797
|
-
|
|
1798
|
-
## set-peer
|
|
1799
|
-
|
|
1800
|
-
**Description**: set a component as always peer
|
|
1801
|
-
|
|
1802
|
-
`bit set-peer <component-id> <range>`
|
|
1803
|
-
|
|
1804
|
-
| **Arg** | **Description** |
|
|
1805
|
-
| -------------- | :-------------------------------------------------------------------------: |
|
|
1806
|
-
| `component-id` | the component to set as always peer |
|
|
1807
|
-
| `range` | the default range to use for the componnent, when added to peerDependencies |
|
|
1808
|
-
|
|
1809
|
-
---
|
|
1810
|
-
|
|
1811
1045
|
## show
|
|
1812
1046
|
|
|
1813
|
-
**
|
|
1814
|
-
|
|
1815
|
-
`bit show <component-name>`
|
|
1816
|
-
|
|
1817
|
-
| **Arg** | **Description** |
|
|
1818
|
-
| ---------------- | :----------------------------: |
|
|
1819
|
-
| `component-name` | component name or component id |
|
|
1820
|
-
|
|
1821
|
-
| **Option** | **Option alias** | **Description** |
|
|
1822
|
-
| ----------- | :--------------: | ------------------------------------------------------------------------------------------------ |
|
|
1823
|
-
| `--json` | `-j` | return the component data in json format |
|
|
1824
|
-
| `--legacy` | `-l` | use the legacy bit show. |
|
|
1825
|
-
| `--remote` | `-r` | show data for a remote component |
|
|
1826
|
-
| `--compare` | `-c` | legacy-only. compare current file system component to its latest tagged version [default=latest] |
|
|
1827
|
-
|
|
1828
|
-
---
|
|
1829
|
-
|
|
1830
|
-
## snap
|
|
1831
|
-
|
|
1832
|
-
**Description**: create an immutable and exportable component snapshot (non-release version)
|
|
1047
|
+
**Workspace only**: yes
|
|
1048
|
+
**Description**: show a component
|
|
1833
1049
|
|
|
1834
|
-
`bit
|
|
1050
|
+
`bit show <id>`
|
|
1835
1051
|
|
|
1836
|
-
| **
|
|
1837
|
-
|
|
|
1838
|
-
| `
|
|
1839
|
-
|
|
1840
|
-
|
|
|
1841
|
-
|
|
|
1842
|
-
| `--message <message>` | `-m` | snap message describing the latest changes - will appear in component history log |
|
|
1843
|
-
| `--unmodified` | `-u` | include unmodified components (by default, only new and modified components are snapped) |
|
|
1844
|
-
| `--unmerged` | | complete a merge process by snapping the unmerged components |
|
|
1845
|
-
| `--build` | `-b` | locally run the build pipeline (i.e. not via rippleCI) and complete the snap |
|
|
1846
|
-
| `--editor [editor]` | | open an editor to write a snap message per component. optionally specify the editor-name (defaults to vim). |
|
|
1847
|
-
| `--skip-tests` | | skip running component tests during snap process |
|
|
1848
|
-
| `--skip-tasks <string>` | | skip the given tasks. for multiple tasks, separate by a comma and wrap with quotes. specify the task-name (e.g. "TypescriptCompiler") or the task-aspect-id (e.g. teambit.compilation/compiler) |
|
|
1849
|
-
| `--skip-auto-snap` | | skip auto snapping dependents |
|
|
1850
|
-
| `--disable-snap-pipeline` | | skip the snap pipeline. this will for instance skip packing and publishing component version for install, and app deployment |
|
|
1851
|
-
| `--ignore-build-errors` | | proceed to snap pipeline even when build pipeline fails |
|
|
1852
|
-
| `--rebuild-deps-graph` | | do not reuse the saved dependencies graph, instead build it from scratch |
|
|
1853
|
-
| `--ignore-issues <issues>` | `-i` | ignore component issues (shown in "bit status" as "issues found"), issues to ignore: [MissingPackagesDependenciesOnFs, MissingManuallyConfiguredPackages, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, ImportNonMainFiles, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies, DuplicateComponentAndPackage, MergeConfigHasConflict, NonLoadedEnv, ExternalEnvWithoutVersion, RemovedDependencies, SelfReference] to ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify "\*". |
|
|
1854
|
-
| `--fail-fast` | | stop pipeline execution on the first failed task (by default a task is skipped only when its dependency failed) |
|
|
1052
|
+
| **Option** | **Option alias** | **Description** |
|
|
1053
|
+
| ----------- | :--------------: | -------------------------------------------------------------------------------------------------------- |
|
|
1054
|
+
| `--json` | `-j` | return the component data in json format |
|
|
1055
|
+
| `--legacy` | `-l` | use the legacy bit show. |
|
|
1056
|
+
| `--remote` | `-r` | show a remote component |
|
|
1057
|
+
| `--compare` | `-c` | compare current file system component to latest tagged component [default=latest]. only works in legacy. |
|
|
1855
1058
|
|
|
1856
1059
|
---
|
|
1857
1060
|
|
|
1858
1061
|
## start
|
|
1859
1062
|
|
|
1860
1063
|
**Alias**: `c`
|
|
1861
|
-
**
|
|
1862
|
-
|
|
1863
|
-
`bit start [component-pattern]`
|
|
1864
|
-
|
|
1865
|
-
| **Arg** | **Description** |
|
|
1866
|
-
| ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1867
|
-
| `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1868
|
-
|
|
1869
|
-
| **Option** | **Option alias** | **Description** |
|
|
1870
|
-
| ----------------------- | :--------------: | ------------------------------------------------------------------------------------------------------- |
|
|
1871
|
-
| `--dev` | `-d` | start UI server in dev mode. |
|
|
1872
|
-
| `--port [port-number]` | `-p` | port of the UI server. |
|
|
1873
|
-
| `--rebuild` | `-r` | rebuild the UI (useful e.g. when updating the workspace UI - can use the dev flag for HMR in this case) |
|
|
1874
|
-
| `--skip-ui-build` | | skip building UI |
|
|
1875
|
-
| `--verbose` | `-v` | show verbose output for inspection and prints stack trace |
|
|
1876
|
-
| `--no-browser` | `-n` | do not automatically open browser when ready |
|
|
1877
|
-
| `--skip-compilation` | | skip the auto-compilation before starting the web-server |
|
|
1878
|
-
| `--ui-root-name [type]` | `-u` | name of the ui root to use, e.g. "teambit.scope/scope" or "teambit.workspace/workspace" |
|
|
1879
|
-
|
|
1880
|
-
---
|
|
1881
|
-
|
|
1882
|
-
## stash
|
|
1883
|
-
|
|
1884
|
-
**Description**: EXPERIMENTAL. stash modified components
|
|
1064
|
+
**Workspace only**: yes
|
|
1065
|
+
**Description**: Start a dev environment for a workspace or a specific component
|
|
1885
1066
|
|
|
1886
|
-
`bit
|
|
1067
|
+
`bit start [type] [pattern]`
|
|
1887
1068
|
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
|
1895
|
-
|
|
|
1896
|
-
| `--pattern` | `-p` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1897
|
-
| `--message <string>` | `-m` | message to be attached to the stashed components |
|
|
1898
|
-
|
|
1899
|
-
### stash load
|
|
1900
|
-
|
|
1901
|
-
**Usage**: `stash load [stash-id]`
|
|
1902
|
-
|
|
1903
|
-
**Description**: apply the changes according to the stash. if no stash-id provided, it loads the latest stash
|
|
1904
|
-
|
|
1905
|
-
| **Option** | **Option alias** | **Description** |
|
|
1906
|
-
| --------------------------------------- | :--------------: | ----------------------------------------------------------------------------------------------------------- |
|
|
1907
|
-
| `--auto-merge-resolve <merge-strategy>` | | in case of merge conflict, resolve according to the provided strategy: [ours, theirs, manual] |
|
|
1908
|
-
| `--manual` | | same as "--auto-merge-resolve manual". in case of merge conflict, write the files with the conflict markers |
|
|
1909
|
-
| `--force-ours` | | do not merge, preserve local files as is |
|
|
1910
|
-
| `--force-theirs` | | do not merge, just overwrite with incoming files |
|
|
1911
|
-
|
|
1912
|
-
### stash list
|
|
1913
|
-
|
|
1914
|
-
**Usage**: `stash list`
|
|
1915
|
-
|
|
1916
|
-
**Description**: list stash
|
|
1917
|
-
|
|
1918
|
-
| **Option** | **Option alias** | **Description** |
|
|
1919
|
-
| -------------------- | :--------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1920
|
-
| `--pattern` | `-p` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1921
|
-
| `--message <string>` | `-m` | message to be attached to the stashed components |
|
|
1069
|
+
| **Option** | **Option alias** | **Description** |
|
|
1070
|
+
| -------------------- | :--------------: | ------------------------------------------------------------ |
|
|
1071
|
+
| `--dev` | `-d` | start UI server in dev mode. |
|
|
1072
|
+
| `--port [number]` | `-p` | port of the UI server. |
|
|
1073
|
+
| `--rebuild` | `-r` | rebuild the UI |
|
|
1074
|
+
| `--verbose` | `-v` | showing verbose output for inspection and prints stack trace |
|
|
1075
|
+
| `--no-browser` | | do not automatically open browser when ready |
|
|
1076
|
+
| `--skip-compilation` | | skip the auto-compilation before starting the web-server |
|
|
1922
1077
|
|
|
1923
1078
|
---
|
|
1924
1079
|
|
|
1925
1080
|
## status
|
|
1926
1081
|
|
|
1927
1082
|
**Alias**: `s`
|
|
1928
|
-
**
|
|
1083
|
+
**Workspace only**: yes
|
|
1084
|
+
**Description**: show the working area component(s) status.
|
|
1085
|
+
https://bit.dev/reference/workspace/workspace-status
|
|
1929
1086
|
|
|
1930
1087
|
`bit status`
|
|
1931
1088
|
|
|
1932
|
-
| **Option**
|
|
1933
|
-
|
|
|
1934
|
-
| `--json`
|
|
1935
|
-
| `--
|
|
1936
|
-
| `--lanes` | `-l` | when on a lane, show updates from main and updates from forked lanes |
|
|
1937
|
-
| `--strict` | | in case issues found, exit with code 1 |
|
|
1938
|
-
| `--ignore-circular-dependencies` | `-c` | do not check for circular dependencies to get the results quicker |
|
|
1939
|
-
|
|
1940
|
-
---
|
|
1941
|
-
|
|
1942
|
-
## system
|
|
1943
|
-
|
|
1944
|
-
**Description**: system operations
|
|
1945
|
-
|
|
1946
|
-
`bit system <sub-command>`
|
|
1947
|
-
|
|
1948
|
-
### system log
|
|
1949
|
-
|
|
1950
|
-
**Usage**: `system log`
|
|
1951
|
-
|
|
1952
|
-
**Description**: print debug.log to the screen
|
|
1089
|
+
| **Option** | **Option alias** | **Description** |
|
|
1090
|
+
| ---------- | :--------------: | -------------------------------------- |
|
|
1091
|
+
| `--json` | `-j` | return a json version of the component |
|
|
1092
|
+
| `--strict` | | in case issues found, exit with code 1 |
|
|
1953
1093
|
|
|
1954
1094
|
---
|
|
1955
1095
|
|
|
1956
1096
|
## tag
|
|
1957
1097
|
|
|
1958
1098
|
**Alias**: `t`
|
|
1959
|
-
**
|
|
1960
|
-
|
|
1961
|
-
if
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
|
1970
|
-
|
|
|
1971
|
-
| `--
|
|
1972
|
-
| `--
|
|
1973
|
-
| `--
|
|
1974
|
-
| `--
|
|
1975
|
-
| `--
|
|
1976
|
-
| `--
|
|
1977
|
-
| `--
|
|
1978
|
-
| `--
|
|
1979
|
-
| `--
|
|
1980
|
-
| `--
|
|
1981
|
-
| `--
|
|
1982
|
-
| `--
|
|
1983
|
-
| `--
|
|
1984
|
-
| `--
|
|
1985
|
-
| `--
|
|
1986
|
-
| `--
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
| `--build` | `-b` | locally run the build pipeline (i.e. not via rippleCI) and complete the tag |
|
|
1099
|
+
**Workspace only**: yes
|
|
1100
|
+
**Description**: record component changes and lock versions.
|
|
1101
|
+
if no ids are provided, it will tag all new and modified components.
|
|
1102
|
+
if component ids are entered, you can specify a version per id using "@" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major
|
|
1103
|
+
https://bit.dev/reference/components/tags
|
|
1104
|
+
you can use a pattern for multiple ids, such as bit tag "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
1105
|
+
|
|
1106
|
+
`bit tag [id...]`
|
|
1107
|
+
|
|
1108
|
+
| **Option** | **Option alias** | **Description** |
|
|
1109
|
+
| ---------------------------- | :--------------: | ----------------------------------------------------------------------------------------------------------------------- |
|
|
1110
|
+
| `--message <message>` | `-m` | log message describing the user changes |
|
|
1111
|
+
| `--unmodified` | | include unmodified components (by default, only new and modified components are tagged) |
|
|
1112
|
+
| `--editor [editor]` | | EXPERIMENTAL. open an editor to edit the tag messages per component, optionally specify the editor-name, default to vim |
|
|
1113
|
+
| `--ver <version>` | `-v` | tag with the given version |
|
|
1114
|
+
| `--patch` | `-p` | increment the patch version number |
|
|
1115
|
+
| `--minor` | | increment the minor version number |
|
|
1116
|
+
| `--major` | | increment the major version number |
|
|
1117
|
+
| `--snapped` | | tag components that their head is a snap (not a tag) |
|
|
1118
|
+
| `--pre-release [identifier]` | | EXPERIMENTAL. increment a pre-release version (e.g. 1.0.0-dev.1) |
|
|
1119
|
+
| `--skip-tests` | | skip running component tests during tag process |
|
|
1120
|
+
| `--skip-auto-tag` | | skip auto tagging dependents |
|
|
1121
|
+
| `--soft` | | do not persist. only keep note of the changes to be made |
|
|
1122
|
+
| `--persist` | | persist the changes generated by --soft tag |
|
|
1123
|
+
| `--disable-tag-pipeline` | | skip the tag pipeline to avoid publishing the components |
|
|
1124
|
+
| `--force-deploy` | | run the tag pipeline although the build failed |
|
|
1125
|
+
| `--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. |
|
|
1126
|
+
| `--ignore-issues [issues]` | `-i` | ignore component issues (shown in "bit status" as "issues found"), issues to ignore: |
|
|
1127
|
+
|
|
1128
|
+
[MissingPackagesDependenciesOnFs, MissingComponents, UntrackedDependencies, ResolveErrors, RelativeComponents, RelativeComponentsAuthored, ParseErrors, MissingLinks, MissingDists, LegacyInsideHarmony, MissingDependenciesOnFs, MissingCustomModuleResolutionLinks, ImportNonMainFiles, CustomModuleResolutionUsed, MultipleEnvs, MissingLinksFromNodeModulesToSrc, CircularDependencies]
|
|
1129
|
+
to ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify "\*".|
|
|
1130
|
+
|`--ignore-newest-version`|`-I`|ignore existing of newer versions (default = false)|
|
|
1131
|
+
|`--build`|`-b`|EXPERIMENTAL. not needed for now. run the pipeline build and complete the tag|
|
|
1132
|
+
|`--all [version]`|`-a`|DEPRECATED (not needed anymore, it is the default now). tag all new and modified components|
|
|
1133
|
+
|`--scope [version]`|`-s`|DEPRECATED (use "--unmodified" instead). tag all components of the current scope|
|
|
1134
|
+
|`--force`|`-f`|DEPRECATED (use "--skip-tests" or "--unmodified" instead). force-tag even if tests are failing and even when component has not changed|
|
|
1135
|
+
|`--disable-deploy-pipeline`| |DEPRECATED. use --disable-tag-pipeline instead|
|
|
1997
1136
|
|
|
1998
1137
|
---
|
|
1999
1138
|
|
|
2000
1139
|
## templates
|
|
2001
1140
|
|
|
2002
|
-
**
|
|
2003
|
-
list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)
|
|
1141
|
+
**Workspace only**: yes
|
|
1142
|
+
**Description**: list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)
|
|
2004
1143
|
|
|
2005
1144
|
`bit templates`
|
|
2006
1145
|
|
|
2007
|
-
| **Option**
|
|
2008
|
-
|
|
|
2009
|
-
| `--show-all`
|
|
2010
|
-
| `--aspect <aspect-id>` | `-a` | show templates provided by the aspect-id |
|
|
1146
|
+
| **Option** | **Option alias** | **Description** |
|
|
1147
|
+
| ------------ | :--------------: | --------------------- |
|
|
1148
|
+
| `--show-all` | `-s` | show hidden templates |
|
|
2011
1149
|
|
|
2012
1150
|
---
|
|
2013
1151
|
|
|
2014
1152
|
## test
|
|
2015
1153
|
|
|
2016
1154
|
**Alias**: `at`
|
|
2017
|
-
**
|
|
1155
|
+
**Workspace only**: yes
|
|
1156
|
+
**Description**: test set of components in your workspace
|
|
1157
|
+
|
|
1158
|
+
`bit test [pattern]`
|
|
1159
|
+
|
|
1160
|
+
| **Option** | **Option alias** | **Description** |
|
|
1161
|
+
| -------------------- | :--------------: | -------------------------------------------------------------------- |
|
|
1162
|
+
| `--watch` | `-w` | start the tester in watch mode. |
|
|
1163
|
+
| `--debug` | `-d` | start the tester in debug mode. |
|
|
1164
|
+
| `--all` | `-a` | test all components, not only new and modified |
|
|
1165
|
+
| `--junit <filepath>` | | write tests results as JUnit XML format into the specified file path |
|
|
1166
|
+
| `--coverage` | | show code coverage data |
|
|
1167
|
+
| `--env <id>` | `-e` | test only the given env |
|
|
1168
|
+
| `--scope <scope>` | `-s` | name of the scope to test |
|
|
1169
|
+
|
|
1170
|
+
---
|
|
2018
1171
|
|
|
2019
|
-
|
|
1172
|
+
## ui-build
|
|
2020
1173
|
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
1174
|
+
**Alias**: `c`
|
|
1175
|
+
**Workspace only**: yes
|
|
1176
|
+
**Description**: build production assets for deployment.
|
|
2024
1177
|
|
|
2025
|
-
|
|
2026
|
-
| ---------------------- | :--------------: | --------------------------------------------------------------------------------------- |
|
|
2027
|
-
| `--watch` | `-w` | start the tester in watch mode. |
|
|
2028
|
-
| `--debug` | `-d` | start the tester in debug mode. |
|
|
2029
|
-
| `--all` | `-a` | DEPRECATED. (use --unmodified) |
|
|
2030
|
-
| `--unmodified` | `-u` | test all components, not only new and modified |
|
|
2031
|
-
| `--junit <filepath>` | | write tests results as JUnit XML format into the specified file path |
|
|
2032
|
-
| `--coverage` | | show code coverage data |
|
|
2033
|
-
| `--env <id>` | `-e` | test only components assigned the given env |
|
|
2034
|
-
| `--scope <scope-name>` | `-s` | DEPRECATED. (use the pattern instead, e.g. "scopeName/\*\*"). name of the scope to test |
|
|
1178
|
+
`bit ui-build [type]`
|
|
2035
1179
|
|
|
2036
1180
|
---
|
|
2037
1181
|
|
|
2038
1182
|
## undeprecate
|
|
2039
1183
|
|
|
1184
|
+
**Workspace only**: no
|
|
2040
1185
|
**Description**: undeprecate a deprecated component (local/remote)
|
|
2041
1186
|
|
|
2042
1187
|
`bit undeprecate <id>`
|
|
@@ -2046,142 +1191,64 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
|
|
|
2046
1191
|
## uninstall
|
|
2047
1192
|
|
|
2048
1193
|
**Alias**: `un`
|
|
1194
|
+
**Workspace only**: yes
|
|
2049
1195
|
**Description**: uninstall dependencies
|
|
2050
1196
|
|
|
2051
1197
|
`bit uninstall [packages...]`
|
|
2052
1198
|
|
|
2053
1199
|
---
|
|
2054
1200
|
|
|
2055
|
-
##
|
|
2056
|
-
|
|
2057
|
-
**Alias**: `up`
|
|
2058
|
-
**Description**: update dependencies. By default, dependencies are updated to the highest semver compatible versions.
|
|
1201
|
+
## untag
|
|
2059
1202
|
|
|
2060
|
-
|
|
1203
|
+
**Workspace only**: yes
|
|
1204
|
+
**Description**: revert version(s) tagged for component(s)
|
|
1205
|
+
https://bit.dev/reference/components/tags#undoing-a-tag
|
|
1206
|
+
you can use a pattern for multiple ids, such as bit untag "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
2061
1207
|
|
|
2062
|
-
|
|
2063
|
-
| --------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
2064
|
-
| `package-patterns...` | a string list of package names, or patterns (separated by spaces or commas), e.g. "@teambit/**,@my-org/ui/**". The patterns should be in glob format. By default, all packages are selected. |
|
|
1208
|
+
`bit untag [id] [version]`
|
|
2065
1209
|
|
|
2066
|
-
| **Option** | **Option alias** | **Description**
|
|
2067
|
-
| ---------- | :--------------: |
|
|
2068
|
-
| `--
|
|
2069
|
-
| `--
|
|
2070
|
-
| `--
|
|
2071
|
-
| `--major` | | update to the latest major version. Semver rules are ignored |
|
|
2072
|
-
| `--semver` | | update to the newest version respecting semver |
|
|
1210
|
+
| **Option** | **Option alias** | **Description** |
|
|
1211
|
+
| ---------- | :--------------: | ----------------------------------------------------------------------------------------------------- |
|
|
1212
|
+
| `--all` | `-a` | revert tag for all tagged components |
|
|
1213
|
+
| `--soft` | | harmony - revert only soft-tags (components tagged with --soft flag) |
|
|
1214
|
+
| `--force` | `-f` | revert the tag even if used as a dependency. WARNING: components that depend on this tag will corrupt |
|
|
2073
1215
|
|
|
2074
1216
|
---
|
|
2075
1217
|
|
|
2076
|
-
##
|
|
1218
|
+
## update
|
|
2077
1219
|
|
|
2078
|
-
**
|
|
1220
|
+
**Alias**: `up`
|
|
1221
|
+
**Workspace only**: yes
|
|
1222
|
+
**Description**: update dependencies
|
|
2079
1223
|
|
|
2080
|
-
`bit
|
|
1224
|
+
`bit update`
|
|
2081
1225
|
|
|
2082
|
-
| **
|
|
2083
|
-
|
|
|
2084
|
-
| `
|
|
1226
|
+
| **Option** | **Option alias** | **Description** |
|
|
1227
|
+
| ---------- | :--------------: | ------------------------------------------ |
|
|
1228
|
+
| `--yes` | `-y` | automatically update all outdated packages |
|
|
2085
1229
|
|
|
2086
1230
|
---
|
|
2087
1231
|
|
|
2088
|
-
##
|
|
2089
|
-
|
|
2090
|
-
**Description**: shows bit version
|
|
1232
|
+
## use
|
|
2091
1233
|
|
|
2092
|
-
|
|
1234
|
+
**Workspace only**: yes
|
|
1235
|
+
**Description**: set up aspects in the workspace/scope config
|
|
2093
1236
|
|
|
2094
|
-
|
|
2095
|
-
| ---------- | :--------------: | --------------------------------- |
|
|
2096
|
-
| `--json` | `-j` | return the version in json format |
|
|
1237
|
+
`bit use [ids...]`
|
|
2097
1238
|
|
|
2098
1239
|
---
|
|
2099
1240
|
|
|
2100
1241
|
## watch
|
|
2101
1242
|
|
|
2102
|
-
**
|
|
2103
|
-
|
|
2104
|
-
if this doesn't work well for you, run "bit config set watch_use_polling true" to use polling.
|
|
1243
|
+
**Workspace only**: yes
|
|
1244
|
+
**Description**: watch a set of components
|
|
2105
1245
|
|
|
2106
1246
|
`bit watch`
|
|
2107
1247
|
|
|
2108
1248
|
| **Option** | **Option alias** | **Description** |
|
|
2109
1249
|
| ------------------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
2110
|
-
| `--verbose` | `-v` |
|
|
2111
|
-
| `--skip-pre-compilation` | | skip compilation step before starting to watch
|
|
1250
|
+
| `--verbose` | `-v` | showing npm verbose output for inspection and prints stack trace |
|
|
1251
|
+
| `--skip-pre-compilation` | | skip the compilation step before starting to watch |
|
|
2112
1252
|
| `--check-types [string]` | `-t` | EXPERIMENTAL. show errors/warnings for types. options are [file, project] to investigate only changed file or entire project. defaults to project |
|
|
2113
1253
|
|
|
2114
1254
|
---
|
|
2115
|
-
|
|
2116
|
-
## whoami
|
|
2117
|
-
|
|
2118
|
-
**Description**: display the currently logged in user
|
|
2119
|
-
|
|
2120
|
-
`bit whoami`
|
|
2121
|
-
|
|
2122
|
-
---
|
|
2123
|
-
|
|
2124
|
-
## why
|
|
2125
|
-
|
|
2126
|
-
**Description**: EXPERIMENTAL. find components that use the specified dependency
|
|
2127
|
-
|
|
2128
|
-
`bit why <dependency-name>`
|
|
2129
|
-
|
|
2130
|
-
| **Arg** | **Description** |
|
|
2131
|
-
| ----------------- | :------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
2132
|
-
| `dependency-name` | package-name. for components, you can use either component-id or package-name. if version is specified, it will search for the exact version |
|
|
2133
|
-
|
|
2134
|
-
| **Option** | **Option alias** | **Description** |
|
|
2135
|
-
| ------------------ | :--------------: | ----------------------------------------- |
|
|
2136
|
-
| `--depth <number>` | | max display depth of the dependency graph |
|
|
2137
|
-
|
|
2138
|
-
---
|
|
2139
|
-
|
|
2140
|
-
## ws-config
|
|
2141
|
-
|
|
2142
|
-
**Alias**: `workspace-config`
|
|
2143
|
-
**Description**: manage workspace config files
|
|
2144
|
-
|
|
2145
|
-
`bit ws-config <sub-command>`
|
|
2146
|
-
|
|
2147
|
-
### ws-config write
|
|
2148
|
-
|
|
2149
|
-
**Usage**: `ws-config write`
|
|
2150
|
-
|
|
2151
|
-
**Description**: write config files in the workspace. useful for IDEs
|
|
2152
|
-
|
|
2153
|
-
| **Option** | **Option alias** | **Description** |
|
|
2154
|
-
| ------------------------ | :--------------: | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
2155
|
-
| `--clean` | `-c` | delete existing config files from the workspace. highly recommended to run it with "--dry-run" first |
|
|
2156
|
-
| `--writers <writers>` | `-w` | only write config files for the given writers. use comma to separate multiple writers. use ws-config list to see all writers |
|
|
2157
|
-
| `--silent` | `-s` | do not prompt for confirmation |
|
|
2158
|
-
| `--no-dedupe` | | write configs inside each one of the component's dir, avoid deduping |
|
|
2159
|
-
| `--dry-run` | | show the paths that configs will be written per env |
|
|
2160
|
-
| `--dry-run-with-content` | | use with --json flag. show the config content and the paths that will be written per env |
|
|
2161
|
-
| `--verbose` | `-v` | showing verbose output for writing |
|
|
2162
|
-
| `--json` | `-j` | json format |
|
|
2163
|
-
|
|
2164
|
-
### ws-config clean
|
|
2165
|
-
|
|
2166
|
-
**Usage**: `ws-config clean`
|
|
2167
|
-
|
|
2168
|
-
**Description**: clean (delete) written config files in the workspace. useful for IDEs
|
|
2169
|
-
|
|
2170
|
-
| **Option** | **Option alias** | **Description** |
|
|
2171
|
-
| --------------------- | :--------------: | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
2172
|
-
| `--silent` | `-s` | do not prompt for confirmation |
|
|
2173
|
-
| `--writers <writers>` | `-w` | only clean config files for the given writers. use comma to separate multiple writers. use ws-config list to see all writers |
|
|
2174
|
-
| `--dry-run` | | show the paths of configs that will be cleaned |
|
|
2175
|
-
| `--json` | `-j` | json format |
|
|
2176
|
-
|
|
2177
|
-
### ws-config list
|
|
2178
|
-
|
|
2179
|
-
**Usage**: `ws-config list`
|
|
2180
|
-
|
|
2181
|
-
**Description**: list config writers
|
|
2182
|
-
|
|
2183
|
-
| **Option** | **Option alias** | **Description** |
|
|
2184
|
-
| ---------- | :--------------: | --------------- |
|
|
2185
|
-
| `--json` | `-j` | json format |
|
|
2186
|
-
|
|
2187
|
-
---
|