@teambit/harmony.content.cli-reference 1.95.24 → 1.95.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli-reference.json +3007 -0
- package/cli-reference.mdx +41 -50
- package/dist/cli-reference.json +3007 -0
- package/dist/cli-reference.mdx.js +58 -48
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/tsconfig.json +29 -0
- package/package-tar/teambit-harmony.content.cli-reference-1.95.25.tgz +0 -0
- package/package.json +2 -2
- package/{preview-1653535588073.js → preview-1654572446572.js} +2 -2
- package/tsconfig.json +7 -1
- package/package-tar/teambit-harmony.content.cli-reference-1.95.24.tgz +0 -0
package/cli-reference.mdx
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: cli-all
|
|
3
|
-
title: CLI Commands
|
|
4
|
-
---
|
|
5
|
-
|
|
6
1
|
# CLI Reference
|
|
7
2
|
|
|
8
3
|
Commands that are marked as workspace only must be executed inside a workspace. Commands that are marked as not workspace only, can be executed from anywhere and will run on a remote server.
|
|
@@ -11,8 +6,8 @@ Commands that are marked as workspace only must be executed inside a workspace.
|
|
|
11
6
|
|
|
12
7
|
**Alias**: `a`
|
|
13
8
|
**Workspace only**: yes
|
|
14
|
-
**Description**:
|
|
15
|
-
|
|
9
|
+
**Description**: Add any subset of files to be tracked as a component(s).
|
|
10
|
+
all flags support glob patterns and {PARENT} {FILE_NAME} annotations
|
|
16
11
|
https://bit.dev/docs/components/adding-components
|
|
17
12
|
|
|
18
13
|
`bit add [path...]`
|
|
@@ -51,7 +46,7 @@ Commands that are marked as workspace only must be executed inside a workspace.
|
|
|
51
46
|
## artifacts
|
|
52
47
|
|
|
53
48
|
**Workspace only**: yes
|
|
54
|
-
**Description**: EXPERIMENTAL. list and download components artifacts
|
|
49
|
+
**Description**: EXPERIMENTAL. list and download components artifacts
|
|
55
50
|
artifacts are created on isolated capsules during tag or snap commands.
|
|
56
51
|
example of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester
|
|
57
52
|
and a package.tgz file generated by pkg aspect.
|
|
@@ -157,7 +152,7 @@ examples:
|
|
|
157
152
|
## capsule
|
|
158
153
|
|
|
159
154
|
**Workspace only**: yes
|
|
160
|
-
**Description**: manage capsules
|
|
155
|
+
**Description**: manage capsules
|
|
161
156
|
a capsule is a directory contains the component code, isolated from the workspace.
|
|
162
157
|
normally, capsules are created during the build process, the component files are copied and the packages are installed
|
|
163
158
|
via the configured package-manager. the purpose is to compile/test them in isolation to make sure they will work for
|
|
@@ -196,7 +191,8 @@ other users after publishing/exporting them.
|
|
|
196
191
|
|
|
197
192
|
**Usage**: `capsule delete`
|
|
198
193
|
|
|
199
|
-
**Description**: delete capsules
|
|
194
|
+
**Description**: delete capsules
|
|
195
|
+
with no args, only workspace's capsules are deleted
|
|
200
196
|
|
|
201
197
|
| **Option** | **Option alias** | **Description** |
|
|
202
198
|
| ----------------- | :--------------: | ------------------------------------------------- |
|
|
@@ -223,9 +219,11 @@ other users after publishing/exporting them.
|
|
|
223
219
|
|
|
224
220
|
**Alias**: `U`
|
|
225
221
|
**Workspace only**: yes
|
|
226
|
-
**Description**: switch between component versions or remove local changes
|
|
227
|
-
|
|
228
|
-
|
|
222
|
+
**Description**: switch between component versions or remove local changes
|
|
223
|
+
|
|
224
|
+
`bit checkout <version> [ids...]` => checkout the specified ids (or all components when --all is used) to the specified version
|
|
225
|
+
`bit checkout latest` => checkout all components to their latest versions
|
|
226
|
+
`bit checkout latest [ids...]` => checkout the specified ids to their latest versions
|
|
229
227
|
`bit checkout [ids...] --reset` => remove local modifications from the specified ids (or all components when --all is used)
|
|
230
228
|
you can use a pattern for multiple ids, such as bit checkout 0.0.1 "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
231
229
|
|
|
@@ -284,6 +282,7 @@ The following gets removed by this command:
|
|
|
284
282
|
| **Option** | **Option alias** | **Description** |
|
|
285
283
|
| ------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
286
284
|
| `--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 |
|
|
285
|
+
| `--json` | `-j` | output the commands info as JSON |
|
|
287
286
|
|
|
288
287
|
---
|
|
289
288
|
|
|
@@ -328,8 +327,8 @@ The following gets removed by this command:
|
|
|
328
327
|
## config
|
|
329
328
|
|
|
330
329
|
**Workspace only**: yes
|
|
331
|
-
**Description**: global config management
|
|
332
|
-
|
|
330
|
+
**Description**: global config management
|
|
331
|
+
https://bit.dev/docs/config/bit-config
|
|
333
332
|
|
|
334
333
|
`bit config`
|
|
335
334
|
|
|
@@ -416,7 +415,7 @@ The following gets removed by this command:
|
|
|
416
415
|
|
|
417
416
|
**Workspace only**: yes
|
|
418
417
|
**Description**: show diff between components files
|
|
419
|
-
|
|
418
|
+
bit diff => compare all modified components to their model version
|
|
420
419
|
bit diff [ids...] => compare the specified components against their modified states
|
|
421
420
|
bit diff [id] [version] => compare the specified version to used or modified files
|
|
422
421
|
bit diff [id] [version] [to_version] => compare the specified version files to to_version files
|
|
@@ -532,7 +531,7 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
532
531
|
|
|
533
532
|
**Alias**: `e`
|
|
534
533
|
**Workspace only**: yes
|
|
535
|
-
**Description**:
|
|
534
|
+
**Description**: Export components to a remote scope
|
|
536
535
|
bit export => export all staged components to their current scope, if checked out to a lane, export the lane as well
|
|
537
536
|
`bit export [id...]` => export the given ids to their current scope
|
|
538
537
|
|
|
@@ -631,7 +630,7 @@ to set the default-scope, please use --scope flag
|
|
|
631
630
|
## import
|
|
632
631
|
|
|
633
632
|
**Workspace only**: yes
|
|
634
|
-
**Description**: import components into your
|
|
633
|
+
**Description**: import components into your workspace
|
|
635
634
|
https://bit.dev/docs/components/importing-components
|
|
636
635
|
you can use a pattern for multiple ids, such as bit import "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
637
636
|
|
|
@@ -659,7 +658,7 @@ you can use a pattern for multiple ids, such as bit import "utils/\*". (wrap the
|
|
|
659
658
|
## init
|
|
660
659
|
|
|
661
660
|
**Workspace only**: no
|
|
662
|
-
**Description**:
|
|
661
|
+
**Description**: create or reinitialize an empty workspace
|
|
663
662
|
https://bit.dev/docs/workspace/creating-workspaces#initialize-a-workspace-on-an-existing-project
|
|
664
663
|
|
|
665
664
|
`bit init [path]`
|
|
@@ -703,7 +702,7 @@ https://bit.dev/docs/workspace/creating-workspaces#initialize-a-workspace-on-an-
|
|
|
703
702
|
## link
|
|
704
703
|
|
|
705
704
|
**Workspace only**: yes
|
|
706
|
-
**Description**:
|
|
705
|
+
**Description**: link components and core aspects
|
|
707
706
|
https://bit.dev/docs/workspace/component-links
|
|
708
707
|
|
|
709
708
|
`bit link [ids...]`
|
|
@@ -738,8 +737,8 @@ https://bit.dev/docs/workspace/component-links
|
|
|
738
737
|
|
|
739
738
|
**Alias**: `ls`
|
|
740
739
|
**Workspace only**: no
|
|
741
|
-
**Description**: list components on a local or a remote scope.
|
|
742
|
-
|
|
740
|
+
**Description**: list components on a workspace, local scope or a remote scope.
|
|
741
|
+
https://bit.dev/docs/reference/cli-reference#list
|
|
743
742
|
|
|
744
743
|
`bit list [remote-scope]`
|
|
745
744
|
|
|
@@ -758,8 +757,8 @@ https://bit.dev/docs/workspace/component-links
|
|
|
758
757
|
## log
|
|
759
758
|
|
|
760
759
|
**Workspace only**: no
|
|
761
|
-
**Description**: show components(s)
|
|
762
|
-
|
|
760
|
+
**Description**: show components(s) version history
|
|
761
|
+
https://bit.dev/docs/reference/cli-reference#log
|
|
763
762
|
|
|
764
763
|
`bit log <id>`
|
|
765
764
|
|
|
@@ -800,6 +799,7 @@ https://bit.dev/docs/workspace/component-links
|
|
|
800
799
|
|
|
801
800
|
**Workspace only**: yes
|
|
802
801
|
**Description**: merge changes of different component versions
|
|
802
|
+
merge changes of different component versions
|
|
803
803
|
`bit merge <version> [ids...]` => merge changes of the given version into the checked out version
|
|
804
804
|
`bit merge [ids...]` => EXPERIMENTAL. merge changes of the remote head into local, optionally use '--abort' or '--resolve'
|
|
805
805
|
you can use a pattern for multiple ids, such as bit merge 0.0.1 "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
@@ -823,7 +823,8 @@ https://bit.dev/docs/workspace/component-links
|
|
|
823
823
|
|
|
824
824
|
**Alias**: `mv`
|
|
825
825
|
**Workspace only**: yes
|
|
826
|
-
**Description**: move
|
|
826
|
+
**Description**: move a component to a different filesystem path
|
|
827
|
+
move files or directories of component(s)
|
|
827
828
|
https://bit.dev/docs/workspace/moving-components
|
|
828
829
|
|
|
829
830
|
`bit move <existing-dir> <new-dir>`
|
|
@@ -902,7 +903,7 @@ the `<old-id>` and `<new-id>` arguments can be either a component-id or a packag
|
|
|
902
903
|
|
|
903
904
|
**Workspace only**: yes
|
|
904
905
|
**Description**: manage set of tracked bit scope(s)
|
|
905
|
-
|
|
906
|
+
https://bit.dev/docs/scope/remote-scopes
|
|
906
907
|
|
|
907
908
|
`bit remote`
|
|
908
909
|
|
|
@@ -910,9 +911,9 @@ the `<old-id>` and `<new-id>` arguments can be either a component-id or a packag
|
|
|
910
911
|
|
|
911
912
|
**Usage**: `remote add <url>`
|
|
912
913
|
|
|
913
|
-
**Description**: add a bare-scope as a remote
|
|
914
|
-
|
|
915
|
-
|
|
914
|
+
**Description**: add a bare-scope as a remote
|
|
915
|
+
supported protocols are [file, http].
|
|
916
|
+
for example: "http://localhost:3000", "file:///tmp/local-scope"
|
|
916
917
|
|
|
917
918
|
| **Option** | **Option alias** | **Description** |
|
|
918
919
|
| ---------- | :--------------: | ---------------------------- |
|
|
@@ -938,9 +939,9 @@ Legacy support [file, ssh]. Harmony supports [file, http].
|
|
|
938
939
|
|
|
939
940
|
**Alias**: `rm`
|
|
940
941
|
**Workspace only**: no
|
|
941
|
-
**Description**: remove a
|
|
942
|
-
|
|
943
|
-
|
|
942
|
+
**Description**: remove component(s) from your workspace, or a remote scope
|
|
943
|
+
https://bit.dev/docs/components/removing-components
|
|
944
|
+
you can use a pattern for multiple ids, such as bit remove "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
944
945
|
|
|
945
946
|
`bit remove <ids...>`
|
|
946
947
|
|
|
@@ -972,17 +973,6 @@ to assign a default-scope to this component, please use "--scope" flag
|
|
|
972
973
|
|
|
973
974
|
---
|
|
974
975
|
|
|
975
|
-
## resume-export
|
|
976
|
-
|
|
977
|
-
**Workspace only**: yes
|
|
978
|
-
**Description**: resume failed export to persist the pending objects on the given remotes.
|
|
979
|
-
the export-id is the id the client got in the error message during the failure.
|
|
980
|
-
alternatively, exporting to any one of the failed scopes, throws server-is-busy error with the export-id
|
|
981
|
-
|
|
982
|
-
`bit resume-export <export-id> <remotes...>`
|
|
983
|
-
|
|
984
|
-
---
|
|
985
|
-
|
|
986
976
|
## run
|
|
987
977
|
|
|
988
978
|
**Alias**: `c`
|
|
@@ -1124,8 +1114,8 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
1124
1114
|
|
|
1125
1115
|
**Alias**: `s`
|
|
1126
1116
|
**Workspace only**: yes
|
|
1127
|
-
**Description**: show the working area component(s) status
|
|
1128
|
-
|
|
1117
|
+
**Description**: show the working area component(s) status
|
|
1118
|
+
https://bit.dev/docs/workspace/workspace-status
|
|
1129
1119
|
|
|
1130
1120
|
`bit status`
|
|
1131
1121
|
|
|
@@ -1140,7 +1130,7 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
|
|
|
1140
1130
|
|
|
1141
1131
|
**Alias**: `t`
|
|
1142
1132
|
**Workspace only**: yes
|
|
1143
|
-
**Description**: record component changes and lock versions
|
|
1133
|
+
**Description**: record component changes and lock versions
|
|
1144
1134
|
if no ids are provided, it will tag all new and modified components.
|
|
1145
1135
|
if component ids are entered, you can specify a version per id using "@" sign, e.g. bit tag foo@1.0.0 bar@minor baz@major
|
|
1146
1136
|
https://bit.dev/components/tags
|
|
@@ -1182,7 +1172,8 @@ to ignore multiple issues, separate them by a comma and wrap with quotes. to ign
|
|
|
1182
1172
|
## templates
|
|
1183
1173
|
|
|
1184
1174
|
**Workspace only**: yes
|
|
1185
|
-
**Description**: list
|
|
1175
|
+
**Description**: list templates for "bit create" and "bit new"
|
|
1176
|
+
list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)
|
|
1186
1177
|
|
|
1187
1178
|
`bit templates`
|
|
1188
1179
|
|
|
@@ -1244,9 +1235,9 @@ to ignore multiple issues, separate them by a comma and wrap with quotes. to ign
|
|
|
1244
1235
|
## untag
|
|
1245
1236
|
|
|
1246
1237
|
**Workspace only**: yes
|
|
1247
|
-
**Description**: revert
|
|
1248
|
-
|
|
1249
|
-
|
|
1238
|
+
**Description**: revert versions tagged for component(s)
|
|
1239
|
+
https://bit.dev/docs/components/tags#undoing-a-tag
|
|
1240
|
+
you can use a pattern for multiple ids, such as bit untag "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
|
|
1250
1241
|
|
|
1251
1242
|
`bit untag [id] [version]`
|
|
1252
1243
|
|