@teambit/harmony.content.cli-reference 1.95.22 → 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.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**: add any subset of files to be tracked as a component(s)
15
- all flags support glob patterns and {PARENT} {FILE_NAME} annotations
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. with no args, only workspace's capsules are deleted
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
- `bit checkout <version> [ids...]` => checkout the specified ids (or all components when --all is used) to the specified version
228
- `bit checkout latest [ids...]` => checkout the specified ids (or all components when --all is used) to their latest versions
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
- https://bit.dev/docs/config/bit-config
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
- bit diff => compare all modified components to their model version
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**: export components to a remote scope.
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 current workspace.
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**: initialize an empty bit scope
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**: generate symlinks to resolve module paths for imported components.
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
- https://bit.dev/docs/reference/cli-reference#list
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) tag history.
762
- https://bit.dev/docs/reference/cli-reference#log
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 files or directories of component(s)
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
- https://bit.dev/docs/scope/remote-scopes
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. supported protocols are [file, http, ssh].
914
- for example: "http://localhost:3000", "file:///tmp/local-scope", "ssh://user@127.0.0.1:/tmp/local-scope".
915
- Legacy support [file, ssh]. Harmony supports [file, http].
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 component (local/remote)
942
- https://bit.dev/docs/components/removing-components
943
- you can use a pattern for multiple ids, such as bit remove "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
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`
@@ -1002,9 +992,12 @@ alternatively, exporting to any one of the failed scopes, throws server-is-busy
1002
992
  ## schema
1003
993
 
1004
994
  **Workspace only**: yes
1005
- **Description**: shows the API schema of a certain component.
995
+ **Description**: shows the API schema of a certain component.
996
+ you can use a `<pattern>` for multiple component ids, such as `bit schema "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
997
+ always wrap the pattern with quotes to avoid collision with shell commands.
998
+ to validate the pattern before running this command, run `bit pattern <pattern>`.
1006
999
 
1007
- `bit schema <id>`
1000
+ `bit schema <pattern>`
1008
1001
 
1009
1002
  | **Option** | **Option alias** | **Description** |
1010
1003
  | ---------- | :--------------: | ---------------------------------------- |
@@ -1041,6 +1034,12 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
1041
1034
  | ------------ | :--------------: | ---------------------------------------------------------------------------------------------- |
1042
1035
  | `--refactor` | `-r` | change the source code of all components using the original scope-name with the new scope-name |
1043
1036
 
1037
+ ### scope fork
1038
+
1039
+ **Usage**: `scope fork <original-scope> <new-scope>`
1040
+
1041
+ **Description**: fork all components of the original-scope and refactor the source-code to use the new package names
1042
+
1044
1043
  ---
1045
1044
 
1046
1045
  ## scope-config
@@ -1115,8 +1114,8 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
1115
1114
 
1116
1115
  **Alias**: `s`
1117
1116
  **Workspace only**: yes
1118
- **Description**: show the working area component(s) status.
1119
- https://bit.dev/docs/workspace/workspace-status
1117
+ **Description**: show the working area component(s) status
1118
+ https://bit.dev/docs/workspace/workspace-status
1120
1119
 
1121
1120
  `bit status`
1122
1121
 
@@ -1131,7 +1130,7 @@ to validate the pattern before running this command, run `bit pattern <pattern>`
1131
1130
 
1132
1131
  **Alias**: `t`
1133
1132
  **Workspace only**: yes
1134
- **Description**: record component changes and lock versions.
1133
+ **Description**: record component changes and lock versions
1135
1134
  if no ids are provided, it will tag all new and modified components.
1136
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
1137
1136
  https://bit.dev/components/tags
@@ -1173,7 +1172,8 @@ to ignore multiple issues, separate them by a comma and wrap with quotes. to ign
1173
1172
  ## templates
1174
1173
 
1175
1174
  **Workspace only**: yes
1176
- **Description**: list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)
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)
1177
1177
 
1178
1178
  `bit templates`
1179
1179
 
@@ -1235,9 +1235,9 @@ to ignore multiple issues, separate them by a comma and wrap with quotes. to ign
1235
1235
  ## untag
1236
1236
 
1237
1237
  **Workspace only**: yes
1238
- **Description**: revert version(s) 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)
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)
1241
1241
 
1242
1242
  `bit untag [id] [version]`
1243
1243