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