@teambit/harmony.content.cli-reference 2.0.766 → 2.0.768

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
@@ -21,8 +21,8 @@ bit COMMAND SUB_COMMAND --help
21
21
  ## add
22
22
 
23
23
  **Alias**: `a`
24
- **Description**: track one or more directories as new components
25
- Learn the recommended workflow for tracking directories as components, in the link below.
24
+ **Description**: track existing directory contents as new components in the workspace
25
+ Registers one or more directories as Bit components without changing your files. Each provided path becomes a component root tracked by Bit.
26
26
 
27
27
  `bit add [path...]`
28
28
 
@@ -41,7 +41,10 @@ Learn the recommended workflow for tracking directories as components, in the li
41
41
  ## app
42
42
 
43
43
  **Alias**: `apps`
44
- **Description**: Manages apps
44
+ **Description**: manage application components
45
+ applications are components that create deployable, runnable applications like React apps or Node.js servers.
46
+ list available apps in the workspace and inspect their configurations.
47
+ use "bit run" to start an application locally.
45
48
 
46
49
  `bit app [sub-command]`
47
50
 
@@ -59,7 +62,10 @@ Learn the recommended workflow for tracking directories as components, in the li
59
62
 
60
63
  **Usage**: `app run [app-name]`
61
64
 
62
- **Description**: locally run an app component (independent of bit's dev server)
65
+ **Description**: start an application component locally
66
+ runs application components in their own development server, separate from the "bit start" UI.
67
+ apps are components that create deployable applications (React apps, Node.js servers, etc.).
68
+ when no app name is specified, automatically detects and runs the app if only one exists in the workspace.
63
69
 
64
70
  | **Arg** | **Description** |
65
71
  | ---------- | :--------------------------------------------------------------------------------------------------: |
@@ -78,10 +84,10 @@ Learn the recommended workflow for tracking directories as components, in the li
78
84
 
79
85
  ## artifacts
80
86
 
81
- **Description**: list and download component artifacts
82
- artifacts are created on isolated capsules during tag or snap commands.
83
- example of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester
84
- and a package.tgz file generated by pkg aspect.
87
+ **Description**: view and download build artifacts
88
+ displays artifacts created during the build pipeline in isolated capsules during tag or snap operations.
89
+ artifacts include compiled files, test reports, package files, and other build outputs generated by various tasks.
90
+ use --out-dir to download artifacts locally for inspection or deployment purposes.
85
91
 
86
92
  `bit artifacts <component-pattern>`
87
93
 
@@ -100,7 +106,10 @@ and a package.tgz file generated by pkg aspect.
100
106
 
101
107
  ## aspect
102
108
 
103
- **Description**: manage aspects
109
+ **Description**: manage component aspects and their configurations
110
+ aspects provide functionality and tools for components throughout their development lifecycle.
111
+ primarily useful for inspecting aspect assignments and configurations with "bit aspect get".
112
+ rarely used for manual aspect management as most aspects are configured automatically.
104
113
 
105
114
  `bit aspect <sub-command>`
106
115
 
@@ -189,7 +198,10 @@ and a package.tgz file generated by pkg aspect.
189
198
 
190
199
  ## blame
191
200
 
192
- **Description**: EXPERIMENTAL. per line, show who and when was the last to modify it
201
+ **Description**: EXPERIMENTAL. show line-by-line authorship and modification history
202
+ displays who last modified each line of a file and when the change was made.
203
+ tracks line-level changes across component versions.
204
+ shows author, date, version hash, and optionally commit messages for each line.
193
205
 
194
206
  `bit blame <filepath>`
195
207
 
@@ -205,11 +217,11 @@ and a package.tgz file generated by pkg aspect.
205
217
 
206
218
  ## build
207
219
 
208
- **Description**: run set of tasks for build.
209
- by default, only new and modified components are built.
210
- the build takes place in an isolated directories on the filesystem (called "capsules"). the component files are copied to these directories
211
- and the package-manager installs the dependencies in the capsules root. once done, the build pipeline is running.
212
- because this process can take a while on a large workspace, some flags are available to shorten the process. See the example section for more info.
220
+ **Description**: run build pipeline tasks in isolated environments
221
+ executes the complete build pipeline including compilation, testing, linting, and other tasks defined by component environments.
222
+ the build takes place in isolated directories called "capsules" where component files are copied and dependencies are installed via the package manager.
223
+ by default processes only new and modified components - use --unmodified to build all components.
224
+ because this process can take a while on large workspaces, various flags are available to optimize the process - see examples for debugging workflows.
213
225
 
214
226
  `bit build [component-pattern]`
215
227
 
@@ -240,11 +252,10 @@ because this process can take a while on a large workspace, some flags are avail
240
252
 
241
253
  ## capsule
242
254
 
243
- **Description**: manage capsules
244
- a capsule is a directory containing the component code, isolated from the workspace.
245
- normally, capsules are created during the build process, the component files are copied and the packages are installed
246
- via the configured package-manager. the purpose is to compile/test them in isolation to make sure they will work for
247
- other users after publishing/exporting them.
255
+ **Description**: manage isolated component environments
256
+ capsules are temporary isolated directories containing component code and dependencies.
257
+ automatically created during build processes to compile and test components in isolation.
258
+ ensures components work independently before publishing, similar to how they'll be consumed.
248
259
 
249
260
  `bit capsule`
250
261
 
@@ -296,7 +307,10 @@ with no args, only workspace's capsules are deleted
296
307
 
297
308
  ## check-types
298
309
 
299
- **Description**: check typescript types
310
+ **Description**: validate TypeScript type correctness
311
+ checks for TypeScript type errors in component files, similar to running tsc.
312
+ by default only checks new and modified components. use --all to check all components.
313
+ useful for catching type issues before tagging, snapping or building components.
300
314
 
301
315
  `bit check-types [component-pattern]`
302
316
 
@@ -315,14 +329,16 @@ with no args, only workspace's capsules are deleted
315
329
  ## checkout
316
330
 
317
331
  **Alias**: `U`
318
- **Description**: switch between component versions or remove local changes
332
+ **Description**: switch between component versions or remove local changes
333
+ checkout components to specified versions or remove local changes. most commonly used as 'bit checkout head' to get latest versions.
334
+ the `<to>` argument accepts these values:
319
335
 
320
- `bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version
321
- `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
322
- `bit checkout head~x [component-pattern]` => go backward x generations from the head and checkout to that version
323
- `bit checkout latest [component-pattern]` => checkout to the latest satisfying semver tag, omit [component-pattern] to checkout latest for all
324
- `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
325
- when on a lane, "checkout head" only checks out components on this lane. to update main components, run "bit lane merge main"
336
+ - head: checkout to last snap/tag (most common usage)
337
+ - specific version: checkout to exact version (e.g. 'bit checkout 1.0.5 component-name')
338
+ - head~x: go back x generations from head (e.g. 'head~2' for two versions back)
339
+ - latest: checkout to latest semver tag
340
+ - reset: remove local modifications and restore original files (also restores deleted component directories)
341
+ when on lanes, 'checkout head' only affects lane components. to update main components, run 'bit lane merge main'.
326
342
 
327
343
  `bit checkout <to> [component-pattern]`
328
344
 
@@ -347,7 +363,8 @@ when on a lane, "checkout head" only checks out components on this lane. to upda
347
363
 
348
364
  ## ci
349
365
 
350
- **Description**: CI commands
366
+ **Description**: continuous integration commands for automated workflows
367
+ provides commands designed for use in CI/CD pipelines with Git workflows to automate component development tasks like verification, pull request handling, and deployment preparation.
351
368
 
352
369
  `bit ci <sub-command>`
353
370
 
@@ -402,12 +419,15 @@ By default, bumps patch versions when merging to main. If specific configuration
402
419
  ## clear-cache
403
420
 
404
421
  **Alias**: `cc`
405
- **Description**: clears Bit's cache from current working machine
406
- The following gets removed by this command:
422
+ **Description**: remove cached data to resolve stale data issues
423
+ clears various caches that Bit uses to improve performance. useful when experiencing stale data issues or
424
+ unexpected behavior. this command removes:
407
425
 
408
426
  1. components cache on the filesystem (mainly the dependencies graph and docs)
409
427
  2. scope's index file, which maps the component-id:object-hash
410
428
 
429
+ note: this cache has minimal impact on disk space. to free significant disk space, use "bit capsule delete --all" to remove build capsules.
430
+
411
431
  `bit clear-cache`
412
432
 
413
433
  | **Option** | **Option alias** | **Description** |
@@ -416,29 +436,12 @@ The following gets removed by this command:
416
436
 
417
437
  ---
418
438
 
419
- ## cli
420
-
421
- **Description**: EXPERIMENTAL. enters bit cli program and generates commands list
422
-
423
- `bit cli`
424
-
425
- ### cli generate
426
-
427
- **Usage**: `cli generate`
428
-
429
- **Description**: generate an .md file with all commands details
430
-
431
- | **Option** | **Option alias** | **Description** |
432
- | ------------ | :--------------: | ------------------------------------------------------------------------------------------------------------------------------ |
433
- | `--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 |
434
- | `--docs` | | generate the cli-reference.docs.mdx file |
435
- | `--json` | `-j` | output the commands info as JSON |
436
-
437
- ---
438
-
439
439
  ## compile
440
440
 
441
- **Description**: compile components in the workspace
441
+ **Description**: transpile component source files
442
+ compiles TypeScript, JSX, and other source files into JavaScript using the compiler configured by each component's environment.
443
+ outputs compiled files to node_modules/component-package-name/dist for consumption by other components.
444
+ automatically triggered by "bit watch", "bit start", or IDE extensions, but can be run manually for debugging.
442
445
 
443
446
  `bit compile [component-names...]`
444
447
 
@@ -458,7 +461,10 @@ The following gets removed by this command:
458
461
 
459
462
  ## config
460
463
 
461
- **Description**: config management
464
+ **Description**: manage Bit configuration settings
465
+ view and modify Bit configuration at different levels: global, workspace, or scope.
466
+ configurations control various aspects of Bit including user settings, registries, and feature flags.
467
+ use environment variables prefixed with BIT*CONFIG* for temporary overrides.
462
468
  https://bit.dev/reference/config/bit-config
463
469
 
464
470
  `bit config`
@@ -508,7 +514,8 @@ for example, "user.token" becomes "BIT_CONFIG_USER_TOKEN"
508
514
 
509
515
  ## create
510
516
 
511
- **Description**: create a new component (source files and config) using a template.
517
+ **Description**: scaffold new component(s) from a template (sources, config, and env)
518
+ Generates one or more components from a chosen template with ready-to-use source files, configuration, and environment. Use it to quickly scaffold consistent components across your workspace. Run 'bit templates' to discover available templates.
512
519
 
513
520
  `bit create <template-name> <component-names...>`
514
521
 
@@ -531,10 +538,10 @@ for example, "user.token" becomes "BIT_CONFIG_USER_TOKEN"
531
538
 
532
539
  ## delete
533
540
 
534
- **Description**: mark components as deleted on the remote
535
- to remove components from your local workspace only, use "bit remove" command.
536
- 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.
537
- unless the '--hard' flag is used (not recommended!), in which case, the component will be deleted from the remote scope immediately.
541
+ **Description**: soft-delete components from remote scopes
542
+ marks components as deleted so they won't be visible on remote scopes after export.
543
+ components remain recoverable using "bit recover" unless --hard is used (permanent deletion, not recommended).
544
+ to remove components from your local workspace only, use "bit remove" instead.
538
545
 
539
546
  `bit delete <component-pattern>`
540
547
 
@@ -556,7 +563,10 @@ unless the '--hard' flag is used (not recommended!), in which case, the componen
556
563
 
557
564
  ## dependents
558
565
 
559
- **Description**: show dependents of the given component
566
+ **Description**: show components that depend on the specified component
567
+ displays components from both workspace and scope that depend on the specified component.
568
+ useful for understanding impact before making changes to a component or when planning refactoring.
569
+ shows both direct and transitive dependents organized by their origin (workspace vs scope).
560
570
 
561
571
  `bit dependents <component-name>`
562
572
 
@@ -573,7 +583,10 @@ unless the '--hard' flag is used (not recommended!), in which case, the componen
573
583
  ## deprecate
574
584
 
575
585
  **Alias**: `d`
576
- **Description**: deprecate a component
586
+ **Description**: mark a component as deprecated to discourage its use
587
+ marks a component as deprecated locally, then after snap/tag and export it becomes deprecated in the remote scope.
588
+ optionally specify a replacement component or deprecate only specific version ranges.
589
+ deprecated components remain available but display warnings when installed or imported.
577
590
 
578
591
  `bit deprecate <component-name>`
579
592
 
@@ -591,7 +604,8 @@ unless the '--hard' flag is used (not recommended!), in which case, the componen
591
604
  ## deps
592
605
 
593
606
  **Alias**: `dependencies`
594
- **Description**: manage dependencies
607
+ **Description**: manage component dependencies
608
+ configure and analyze component dependencies with sub-commands for setting, removing, and inspecting dependency relationships.
595
609
 
596
610
  `bit deps <sub-command>`
597
611
 
@@ -710,7 +724,10 @@ see also "bit deps remove"
710
724
 
711
725
  **Usage**: `deps usage <dependency-name>`
712
726
 
713
- **Description**: find components that use the specified dependency
727
+ **Description**: find components that use the specified dependency
728
+ searches workspace components to find which ones depend on the specified package or component.
729
+ useful for understanding dependency usage before removing packages or when refactoring components.
730
+ supports both exact version matching and package name patterns.
714
731
 
715
732
  | **Arg** | **Description** |
716
733
  | ----------------- | :------------------------------------------------------------------------------------------------------------------------------------------: |
@@ -734,7 +751,10 @@ see also "bit deps remove"
734
751
 
735
752
  ## diff
736
753
 
737
- **Description**: show the diff between the components' current source files and config, and their latest snapshot or tag
754
+ **Description**: compare component changes between versions or against the current workspace
755
+ shows a detailed diff of component files, dependencies, and configuration changes.
756
+ by default, compares workspace changes against the latest version. specify versions to compare historical changes.
757
+ supports pattern matching to filter components and various output formats for better readability.
738
758
 
739
759
  `bit diff [component-pattern] [version] [to-version]`
740
760
 
@@ -754,7 +774,10 @@ see also "bit deps remove"
754
774
 
755
775
  ## doctor
756
776
 
757
- **Description**: diagnose a bit workspace
777
+ **Description**: diagnose and troubleshoot workspace issues
778
+ runs comprehensive health checks on your workspace to detect and report configuration problems,
779
+ missing dependencies, corrupted data, and other issues that may affect workspace functionality.
780
+ can generate diagnostic reports and workspace archives for debugging and support purposes.
758
781
 
759
782
  `bit doctor [diagnosis-name]`
760
783
 
@@ -773,8 +796,10 @@ see also "bit deps remove"
773
796
  ## eject
774
797
 
775
798
  **Alias**: `E`
776
- **Description**: remove component from the workspace and install it instead as a regular npm package.
777
- By default the component files will be removed from the workspace
799
+ **Description**: remove component from workspace and install it as npm package
800
+ converts workspace components to external npm packages by removing them from .bitmap and installing via package manager.
801
+ by default removes component files from workspace. use --keep-files to preserve source code while converting to package dependency.
802
+ useful for components that no longer need active development in current workspace.
778
803
 
779
804
  `bit eject <component-pattern>`
780
805
 
@@ -793,8 +818,11 @@ By default the component files will be removed from the workspace
793
818
 
794
819
  ## eject-conf
795
820
 
796
- **Description**: eject components configuration (create a `component.json` file)
797
- note this can be reversed at any time by snapping/tagging changes and deleting the component.json file
821
+ **Description**: create component.json configuration files for components
822
+ generates component.json files containing component-specific configuration that overrides workspace defaults.
823
+ useful for customizing individual component settings. alternatively, use commands like "bit env set", "bit deps set", or "bit aspect set".
824
+ can be reversed by deleting the component.json file and snapping/tagging the changes.
825
+
798
826
  you can use a `<pattern>` for multiple component ids, such as `bit eject-conf "org.scope/utils/**"`.
799
827
  use comma to separate patterns and '!' to exclude. e.g. 'ui/\*\*, !ui/button'
800
828
  use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.
@@ -813,7 +841,9 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
813
841
  ## envs
814
842
 
815
843
  **Alias**: `env`
816
- **Description**: list all components maintained by the workspace and their corresponding envs
844
+ **Description**: show components and their assigned environments
845
+ displays a table showing each workspace component and its corresponding environment.
846
+ environments control how components are built, tested, linted, and deployed.
817
847
 
818
848
  `bit envs`
819
849
 
@@ -893,11 +923,10 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
893
923
  ## export
894
924
 
895
925
  **Alias**: `e`
896
- **Description**: export components from the workspace to remote scopes
897
- bit export => export all staged snaps/tags of components to their remote scope. if checked out to a lane, export the lane as well
898
- `bit export [pattern...]` => export components included by the pattern to their remote scope (we recommend not using a pattern in
899
- most scenarios so that all changes are exported simultaneously)
900
- you can use a pattern for multiple ids, such as bit export "utils/\*". (wrap the pattern with quotes to avoid collision with shell commands)
926
+ **Description**: upload components to remote scopes
927
+ uploads staged versions (snaps/tags) to remote scopes, making them available for consumption by other workspaces.
928
+ without arguments, exports all staged components. when on a lane, exports the lane as well.
929
+ exporting is the final step after development and versioning to share components with your team.
901
930
 
902
931
  `bit export [component-patterns...]`
903
932
 
@@ -923,7 +952,10 @@ bit export => export all staged snaps/tags of components to their remote scope.
923
952
 
924
953
  ## fork
925
954
 
926
- **Description**: create a new component forked from an existing one (copies source files and configs)
955
+ **Description**: create a new component by copying from an existing one
956
+ duplicates an existing component's source files and configuration to create a new independent component.
957
+ useful for creating variations or starting development from a similar component.
958
+ automatically handles import/require statement updates and provides refactoring options.
927
959
 
928
960
  `bit fork <source-component-id> [target-component-name]`
929
961
 
@@ -948,7 +980,10 @@ bit export => export all staged snaps/tags of components to their remote scope.
948
980
 
949
981
  ## format
950
982
 
951
- **Description**: format components in the development workspace
983
+ **Description**: auto-format component source code
984
+ formats component files using the formatter configured by each component's environment (Prettier, etc.).
985
+ by default formats all components. use --changed to format only new and modified components.
986
+ supports check mode to verify formatting without making changes.
952
987
 
953
988
  `bit format [component-pattern]`
954
989
 
@@ -966,7 +1001,10 @@ bit export => export all staged snaps/tags of components to their remote scope.
966
1001
 
967
1002
  ## git
968
1003
 
969
- **Description**: perform git operations
1004
+ **Description**: Git utilities for Bit repositories
1005
+ provides specialized Git utilities for handling Bit-specific files and conflicts.
1006
+ includes tools for setting up merge drivers for bitmap files and resolving conflicts during Git merges.
1007
+ essential for properly handling Bit's internal files when working with Git repositories.
970
1008
 
971
1009
  `bit git <sub-command>`
972
1010
 
@@ -990,7 +1028,9 @@ bit export => export all staged snaps/tags of components to their remote scope.
990
1028
 
991
1029
  ## globals
992
1030
 
993
- **Description**: list all globals
1031
+ **Description**: display global directories and paths used by Bit
1032
+ shows all global directories including cache, logs, and config locations used by Bit across your system.
1033
+ useful for debugging and understanding where Bit stores data.
994
1034
 
995
1035
  `bit globals`
996
1036
 
@@ -1002,7 +1042,10 @@ bit export => export all staged snaps/tags of components to their remote scope.
1002
1042
 
1003
1043
  ## graph
1004
1044
 
1005
- **Description**: generate an SVG image file with the components' dependencies graph
1045
+ **Description**: visualize component dependencies as a graph image
1046
+ generates an SVG (or PNG) image showing component dependency relationships.
1047
+ black arrows represent runtime dependencies, red arrows show dev or peer dependencies.
1048
+ by default shows only workspace components; use --include-dependencies for full dependency tree.
1006
1049
 
1007
1050
  `bit graph [id]`
1008
1051
 
@@ -1021,7 +1064,8 @@ bit export => export all staged snaps/tags of components to their remote scope.
1021
1064
  ## help
1022
1065
 
1023
1066
  **Alias**: `$0`
1024
- **Description**: shows help
1067
+ **Description**: display available commands and usage information
1068
+ shows a categorized list of all available Bit commands with brief descriptions. use `bit <command> --help` for detailed help on specific commands.
1025
1069
 
1026
1070
  `bit help`
1027
1071
 
@@ -1033,7 +1077,10 @@ bit export => export all staged snaps/tags of components to their remote scope.
1033
1077
 
1034
1078
  ## import
1035
1079
 
1036
- **Description**: import components from their remote scopes to the local workspace
1080
+ **Description**: bring components from remote scopes into your workspace
1081
+ brings component source files from remote scopes into your workspace and installs their dependencies as packages.
1082
+ supports pattern matching for bulk imports, merge strategies for handling conflicts, and various optimization options.
1083
+ without arguments, fetches all workspace components' latest versions from their remote scopes.
1037
1084
 
1038
1085
  `bit import [component-patterns...]`
1039
1086
 
@@ -1071,8 +1118,10 @@ bit export => export all staged snaps/tags of components to their remote scope.
1071
1118
 
1072
1119
  ## init
1073
1120
 
1074
- **Description**: create or reinitialize an empty workspace
1075
- if the current directory is already a workspace, it validates that bit files are correct and rewrite them if needed.
1121
+ **Description**: initialize a Bit workspace in an existing project
1122
+ creates Bit configuration files in an existing project directory to start tracking components.
1123
+ if already a workspace, validates and repairs Bit files as needed.
1124
+ supports various reset options to recover from corrupted state or restart from scratch.
1076
1125
 
1077
1126
  `bit init [path]`
1078
1127
 
@@ -1100,8 +1149,10 @@ if the current directory is already a workspace, it validates that bit files are
1100
1149
  ## install
1101
1150
 
1102
1151
  **Alias**: `in`
1103
- **Description**: installs workspace dependencies
1104
- when no package is specified, all workspace dependencies are installed and all workspace components are imported.
1152
+ **Description**: install workspace dependencies
1153
+ installs workspace dependencies and prepares the workspace for development.
1154
+ when packages are specified, adds them to workspace.jsonc policy and installs. when no packages specified, installs existing dependencies.
1155
+ automatically imports components, compiles components, links to node_modules, and writes config files.
1105
1156
 
1106
1157
  `bit install [packages...]`
1107
1158
 
@@ -1131,7 +1182,10 @@ when no package is specified, all workspace dependencies are installed and all w
1131
1182
  ## lane
1132
1183
 
1133
1184
  **Alias**: `l`
1134
- **Description**: manage lanes - if no sub-command is used, runs "bit lane list"
1185
+ **Description**: manage lanes for parallel development
1186
+ lanes allow isolated development of features without affecting main branch components.
1187
+ create, switch between, and merge lanes to coordinate parallel work across teams.
1188
+ without a sub-command, lists all available lanes.
1135
1189
 
1136
1190
  `bit lane [sub-command]`
1137
1191
 
@@ -1483,7 +1537,10 @@ this command does the following:
1483
1537
 
1484
1538
  ## link
1485
1539
 
1486
- **Description**: create links in the node_modules directory, to core aspects and to components in the workspace
1540
+ **Description**: create links between components and node_modules
1541
+ creates links in node_modules for workspace components and core aspects, enabling import resolution.
1542
+ automatically links all workspace components and Bit's core aspects to their respective package names.
1543
+ useful for development when components need to reference each other or when debugging linking issues.
1487
1544
 
1488
1545
  `bit link [component-names...]`
1489
1546
 
@@ -1505,7 +1562,10 @@ this command does the following:
1505
1562
 
1506
1563
  ## lint
1507
1564
 
1508
- **Description**: lint components in the development workspace
1565
+ **Description**: analyze component code for issues and style violations
1566
+ runs linters configured by each component's environment (ESLint, etc.) to check for code quality issues.
1567
+ by default lints all components. use --changed to lint only new and modified components.
1568
+ supports automatic fixing of certain issues with --fix flag.
1509
1569
 
1510
1570
  `bit lint [component-pattern]`
1511
1571
 
@@ -1525,7 +1585,10 @@ this command does the following:
1525
1585
  ## list
1526
1586
 
1527
1587
  **Alias**: `ls`
1528
- **Description**: list components on a workspace or a remote scope (with flag).
1588
+ **Description**: display components in workspace or remote scope
1589
+ shows components in the current workspace by default, or from a specified remote scope.
1590
+ supports filtering by scope, namespace, and various display options.
1591
+ use --outdated to highlight components that have newer versions available.
1529
1592
 
1530
1593
  `bit list [remote-scope]`
1531
1594
 
@@ -1543,7 +1606,10 @@ this command does the following:
1543
1606
 
1544
1607
  ## local-only
1545
1608
 
1546
- **Description**: manage local-only components, which reside only in the workspace and are not snapped/tagged
1609
+ **Description**: manage components that exist only in the workspace
1610
+ controls components that are excluded from versioning (snap/tag) and exporting operations.
1611
+ local-only components are useful for workspace-specific tools, configs, or temporary components.
1612
+ these components remain in the workspace but won't be shared or versioned.
1547
1613
 
1548
1614
  `bit local-only <sub-command>`
1549
1615
 
@@ -1577,7 +1643,10 @@ this command does the following:
1577
1643
 
1578
1644
  ## log
1579
1645
 
1580
- **Description**: show components(s) version history
1646
+ **Description**: display component version history
1647
+ shows chronological history of component versions including tags and snaps with metadata.
1648
+ displays commit messages, authors, dates, and version information. supports both local and remote component logs.
1649
+ use various format options for compact or detailed views of version history.
1581
1650
 
1582
1651
  `bit log <id>`
1583
1652
 
@@ -1599,7 +1668,10 @@ this command does the following:
1599
1668
 
1600
1669
  ## log-file
1601
1670
 
1602
- **Description**: EXPERIMENTAL. show file history
1671
+ **Description**: EXPERIMENTAL. display history of changes to a specific file
1672
+ shows version history for a specific file within component versions.
1673
+ tracks file-level changes across component snaps and tags.
1674
+ displays file modifications, hashes, and associated commit information.
1603
1675
 
1604
1676
  `bit log-file <filepath>`
1605
1677
 
@@ -1615,7 +1687,10 @@ this command does the following:
1615
1687
 
1616
1688
  ## login
1617
1689
 
1618
- **Description**: log in to Bit cloud
1690
+ **Description**: authenticate with Bit Cloud for component publishing and collaboration
1691
+ opens browser to authenticate with Bit Cloud (bit.cloud) and obtain access token for publishing components.
1692
+ automatically updates .npmrc file with registry configuration and authentication token for seamless package publishing.
1693
+ supports custom cloud domains, CI/machine authentication, and manual token refresh options.
1619
1694
 
1620
1695
  `bit login`
1621
1696
 
@@ -1634,7 +1709,10 @@ this command does the following:
1634
1709
 
1635
1710
  ## logout
1636
1711
 
1637
- **Description**: log the CLI out of Bit
1712
+ **Description**: sign out of Bit Cloud and clear authentication tokens
1713
+ removes stored authentication tokens and signs out of Bit Cloud.
1714
+ clears local credentials while preserving .npmrc configurations.
1715
+ use this to switch between accounts or when authentication tokens expire.
1638
1716
 
1639
1717
  `bit logout`
1640
1718
 
@@ -1642,7 +1720,10 @@ this command does the following:
1642
1720
 
1643
1721
  ## mcp-server
1644
1722
 
1645
- **Description**: Start the Bit CLI Model Context Protocol (MCP) server for programmatic and remote access to Bit commands.
1723
+ **Description**: start Model Context Protocol server for AI assistants
1724
+ enables AI assistants and other tools to interact with Bit via the Model Context Protocol.
1725
+ provides a standardized interface for AI agents to execute Bit commands and access component information.
1726
+ allows writing custom instructions and rules to guide AI agents in their interactions with Bit.
1646
1727
 
1647
1728
  `bit mcp-server [sub-command]`
1648
1729
 
@@ -1704,11 +1785,12 @@ Creates or updates rules/instructions markdown files to provide AI assistants wi
1704
1785
 
1705
1786
  ## merge
1706
1787
 
1707
- **Description**: merge changes of the remote head into local - auto-snaps all merged components
1708
- 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
1709
- and creates snaps for merged components that have diverged, on the lane.
1710
- if no ids are specified, all pending-merge components will be merged. (run "bit status" to list them).
1711
- optionally use '--abort' to revert the last merge. to revert a lane merge, use "bit lane merge-abort" command.
1788
+ **Description**: merge diverged component history when local and remote have different versions
1789
+ resolves diverged component history when both local and remote have created different snaps/tags from the same base version.
1790
+ if no component pattern is specified, all pending-merge components will be merged (run 'bit status' to list them).
1791
+ 'bit status' will show diverged components and suggest either merging or resetting local changes.
1792
+ preferred approach: use 'bit reset' to remove local versions, then 'bit checkout head' to get remote versions.
1793
+ for lane-to-lane merging, use 'bit lane merge' instead.
1712
1794
 
1713
1795
  `bit merge [component-pattern]`
1714
1796
 
@@ -1735,8 +1817,10 @@ optionally use '--abort' to revert the last merge. to revert a lane merge, use "
1735
1817
  ## move
1736
1818
 
1737
1819
  **Alias**: `mv`
1738
- **Description**: move a component to a different filesystem path
1739
- (note: this does NOT affect the component's name or scope, just its location in the workspace)
1820
+ **Description**: relocate a component to a different directory
1821
+ moves component files to a new location within the workspace and updates the .bitmap tracking.
1822
+ only changes the filesystem location - does not affect the component's name, scope, or ID.
1823
+ useful for reorganizing workspace structure or following new directory conventions.
1740
1824
 
1741
1825
  `bit move <current-component-dir> <new-component-dir>`
1742
1826
 
@@ -1749,7 +1833,10 @@ optionally use '--abort' to revert the last merge. to revert a lane merge, use "
1749
1833
 
1750
1834
  ## new
1751
1835
 
1752
- **Description**: create a new workspace from a template
1836
+ **Description**: create a new Bit workspace from a template
1837
+ initializes a new Bit workspace with pre-configured settings, environments, and optionally starter components.
1838
+ templates provide different setups for React, Angular, Node.js, or custom development workflows.
1839
+ installs dependencies and configures the workspace for immediate development.
1753
1840
 
1754
1841
  `bit new <template-name> <workspace-name>`
1755
1842
 
@@ -1774,7 +1861,10 @@ optionally use '--abort' to revert the last merge. to revert a lane merge, use "
1774
1861
 
1775
1862
  ## npmrc
1776
1863
 
1777
- **Description**: manage npmrc file with scope, registry, and token information from bit.cloud
1864
+ **Description**: configure .npmrc file with Bit Cloud registry and authentication settings
1865
+ manages .npmrc configuration for seamless package installation from Bit Cloud registries.
1866
+ automatically configures scoped registries and authentication tokens for your workspace components.
1867
+ provides sub-commands for generating, updating, and managing npm registry configurations.
1778
1868
 
1779
1869
  `bit npmrc [sub-command]`
1780
1870
 
@@ -1793,7 +1883,7 @@ optionally use '--abort' to revert the last merge. to revert a lane merge, use "
1793
1883
 
1794
1884
  ## pattern
1795
1885
 
1796
- **Description**: list the component ids matching the given pattern
1886
+ **Description**: test and validate component patterns
1797
1887
  this command helps validating a pattern before using it in other commands.
1798
1888
  NOTE: always wrap the pattern with quotes to avoid collision with shell commands. depending on your shell, it might be single or double quotes.
1799
1889
  a pattern can be a simple component-id or component-name. e.g. 'ui/button'.
@@ -1818,7 +1908,8 @@ to match a state and another criteria, use " AND " keyword. e.g. '$modified AND
1818
1908
 
1819
1909
  ## recover
1820
1910
 
1821
- **Description**: recover component(s) soft-deleted from the workspace, or a remote scope
1911
+ **Description**: restore soft-deleted components
1912
+ reverses the soft-deletion of components marked with "bit delete", restoring them to their previous state. works for both local and remote soft-deleted components.
1822
1913
 
1823
1914
  `bit recover <component-name>`
1824
1915
 
@@ -1831,7 +1922,10 @@ to match a state and another criteria, use " AND " keyword. e.g. '$modified AND
1831
1922
 
1832
1923
  ## refactor
1833
1924
 
1834
- **Description**: source code refactoring / codemod
1925
+ **Description**: automatically refactor component source code
1926
+ performs automated code transformations and refactoring operations across components.
1927
+ currently supports updating import/require statements when component names or dependencies change.
1928
+ useful for maintaining code consistency after renaming or restructuring components.
1835
1929
 
1836
1930
  `bit refactor <sub-command>`
1837
1931
 
@@ -1846,7 +1940,10 @@ the `<old-id>` and `<new-id>` arguments can be either a component-id or a packag
1846
1940
 
1847
1941
  ## remote
1848
1942
 
1849
- **Description**: manage set of tracked bit scope(s)
1943
+ **Description**: manage remote scopes for self-hosted environments
1944
+ configure connections to self-hosted remote scopes via HTTP or file protocol.
1945
+ note: this command is only needed for self-hosted scopes. when using bit.cloud, remote scopes are automatically configured.
1946
+ remotes are bare scopes that store exported components and enable collaboration across teams.
1850
1947
 
1851
1948
  `bit remote`
1852
1949
 
@@ -1891,8 +1988,10 @@ for example: "http://localhost:3000", "file:///tmp/local-scope"
1891
1988
  ## remove
1892
1989
 
1893
1990
  **Alias**: `rm`
1894
- **Description**: remove component(s) from the local workspace
1895
- to mark components as deleted on the remote scope, use "bit delete".
1991
+ **Description**: untrack components from the workspace
1992
+ removes components from the local workspace only - stops tracking them in .bitmap and deletes their files by default.
1993
+ does not affect remote scopes - to delete components from remotes, use "bit delete" instead.
1994
+ use --keep-files to preserve component files while only removing the tracking.
1896
1995
 
1897
1996
  `bit remove <component-pattern>`
1898
1997
 
@@ -1911,7 +2010,10 @@ to mark components as deleted on the remote scope, use "bit delete".
1911
2010
 
1912
2011
  ## rename
1913
2012
 
1914
- **Description**: rename component. if exported, create a new component and delete the original component. otherwise just renames current component
2013
+ **Description**: change a component name
2014
+ renames a component and optionally refactors dependent code to use the new name.
2015
+ for exported components: creates a new component with the new name and marks the original as deleted.
2016
+ for local components: simply renames the existing component in place.
1915
2017
 
1916
2018
  `bit rename <current-name> <new-name>`
1917
2019
 
@@ -1934,8 +2036,10 @@ to mark components as deleted on the remote scope, use "bit delete".
1934
2036
 
1935
2037
  ## reset
1936
2038
 
1937
- **Description**: revert tagged or snapped versions for component(s)
1938
- https://bit.dev/components/tags#undoing-a-tag
2039
+ **Description**: revert local tags and snaps to previous versions
2040
+ removes local component versions (tags/snaps) that haven't been exported yet.
2041
+ by default reverts all local versions. use --head to revert only the latest version.
2042
+ useful for undoing mistakes before exporting. exported versions cannot be reset.
1939
2043
 
1940
2044
  `bit reset [component-pattern]`
1941
2045
 
@@ -1955,7 +2059,9 @@ https://bit.dev/components/tags#undoing-a-tag
1955
2059
 
1956
2060
  ## revert
1957
2061
 
1958
- **Description**: replace the current component files by the specified version, leave the version intact
2062
+ **Description**: replace component files with specified version while preserving current version
2063
+ replaces component source files with files from the specified version but keeps the current component version.
2064
+ useful for reverting file changes without changing the component's version history. different from checkout which changes the version.
1959
2065
 
1960
2066
  `bit revert <component-pattern> <to>`
1961
2067
 
@@ -1974,7 +2080,10 @@ https://bit.dev/components/tags#undoing-a-tag
1974
2080
  ## run
1975
2081
 
1976
2082
  **Alias**: `c`
1977
- **Description**: locally run an app component (independent of bit's dev server)
2083
+ **Description**: start an application component locally
2084
+ runs application components in their own development server, separate from the "bit start" UI.
2085
+ apps are components that create deployable applications (React apps, Node.js servers, etc.).
2086
+ when no app name is specified, automatically detects and runs the app if only one exists in the workspace.
1978
2087
 
1979
2088
  `bit run [app-name]`
1980
2089
 
@@ -1995,9 +2104,10 @@ https://bit.dev/components/tags#undoing-a-tag
1995
2104
 
1996
2105
  ## schema
1997
2106
 
1998
- **Description**: extracts and displays the API schema (types, functions, classes, interfaces) of the specified component/s.
1999
- Extracts TypeScript definitions to provide a comprehensive view of a component's public API.
2000
- Shows detailed information about exported elements including classes, interfaces, functions, types, and enums with their respective signatures and documentation.
2107
+ **Description**: display component API schema and type definitions
2108
+ extracts and displays the public API structure of components including types, functions, classes, and interfaces.
2109
+ shows detailed type information, function signatures, and JSDoc documentation for exported elements.
2110
+ useful for understanding component interfaces and generating documentation.
2001
2111
 
2002
2112
  you can use a `<pattern>` for multiple component ids, such as `bit schema "org.scope/utils/**"`.
2003
2113
  use comma to separate patterns and '!' to exclude. e.g. 'ui/\*\*, !ui/button'
@@ -2016,7 +2126,10 @@ use `bit pattern --help` to understand patterns better and `bit pattern <pattern
2016
2126
 
2017
2127
  ## scope
2018
2128
 
2019
- **Description**: manage the scope-name for components
2129
+ **Description**: manage component scope names and assignments
2130
+ configure scope assignments for components including setting default scopes and renaming existing scopes.
2131
+ scopes determine where components are stored and published, forming the first part of component IDs.
2132
+ essential for organizing components and managing component namespaces across teams.
2020
2133
 
2021
2134
  `bit scope <sub-command>`
2022
2135
 
@@ -2097,20 +2210,25 @@ optionally, provide [pattern] to limit the fork to specific components
2097
2210
 
2098
2211
  ## set-peer
2099
2212
 
2100
- **Description**: set a component as always peer
2213
+ **Description**: configure component to always be installed as peer dependency
2214
+ marks a component to always be treated as a peer dependency when used by other components.
2215
+ useful for shared libraries that should be provided by the consuming application.
2216
+ the specified version range will be used when adding this component as a peer dependency.
2101
2217
 
2102
2218
  `bit set-peer <component-id> <range>`
2103
2219
 
2104
- | **Arg** | **Description** |
2105
- | -------------- | :-------------------------------------------------------------------------: |
2106
- | `component-id` | the component to set as always peer |
2107
- | `range` | the default range to use for the componnent, when added to peerDependencies |
2220
+ | **Arg** | **Description** |
2221
+ | -------------- | :------------------------------------------------------------------------: |
2222
+ | `component-id` | the component to set as always peer |
2223
+ | `range` | the default range to use for the component, when added to peerDependencies |
2108
2224
 
2109
2225
  ---
2110
2226
 
2111
2227
  ## show
2112
2228
 
2113
- **Description**: display the component's essential information
2229
+ **Description**: display component metadata, dependencies, and configuration
2230
+ shows detailed information about a component including its version, dependencies, environment, and other metadata.
2231
+ note: to see file changes made in a specific version, use `bit diff <component> <version> --parent`.
2114
2232
 
2115
2233
  `bit show <component-name>`
2116
2234
 
@@ -2130,7 +2248,10 @@ optionally, provide [pattern] to limit the fork to specific components
2130
2248
 
2131
2249
  ## snap
2132
2250
 
2133
- **Description**: create an immutable and exportable component snapshot (non-release version)
2251
+ **Description**: create immutable component snapshots for development versions
2252
+ creates snapshots with hash-based versions for development and testing. snapshots are immutable and exportable.
2253
+ by default snaps only new and modified components. use for development iterations before creating semantic version tags.
2254
+ snapshots maintain component history and enable collaboration without formal releases.
2134
2255
 
2135
2256
  `bit snap [component-pattern]`
2136
2257
 
@@ -2161,7 +2282,10 @@ optionally, provide [pattern] to limit the fork to specific components
2161
2282
  ## start
2162
2283
 
2163
2284
  **Alias**: `c`
2164
- **Description**: run the ui/development server
2285
+ **Description**: launch the Bit development server
2286
+ starts the local development server providing a UI to browse, preview, and interact with components.
2287
+ works in both workspaces and scopes. opens automatically in your browser at http://localhost:3000 (or specified port).
2288
+ includes hot module reloading for development.
2165
2289
 
2166
2290
  `bit start [component-pattern]`
2167
2291
 
@@ -2185,7 +2309,9 @@ optionally, provide [pattern] to limit the fork to specific components
2185
2309
 
2186
2310
  ## stash
2187
2311
 
2188
- **Description**: stash modified components
2312
+ **Description**: temporarily save and restore component changes
2313
+ temporarily stores modified component files without creating versions.
2314
+ allows saving work-in-progress changes and switching context, then restoring changes later.
2189
2315
 
2190
2316
  `bit stash <sub-command>`
2191
2317
 
@@ -2230,7 +2356,10 @@ optionally, provide [pattern] to limit the fork to specific components
2230
2356
  ## status
2231
2357
 
2232
2358
  **Alias**: `s`
2233
- **Description**: present the current status of components in the workspace, including indication of detected issues
2359
+ **Description**: show workspace component status and issues
2360
+ displays the current state of all workspace components including new, modified, staged, and problematic components.
2361
+ identifies blocking issues that prevent tagging/snapping and provides warnings with --warnings flag.
2362
+ essential for understanding workspace health before versioning components.
2234
2363
 
2235
2364
  `bit status`
2236
2365
 
@@ -2248,7 +2377,9 @@ optionally, provide [pattern] to limit the fork to specific components
2248
2377
 
2249
2378
  ## system
2250
2379
 
2251
- **Description**: system operations
2380
+ **Description**: access system-level operations and debugging tools
2381
+ provides commands for system-level operations including viewing and tailing debug logs.
2382
+ useful for troubleshooting issues and monitoring Bit's internal operations in real-time.
2252
2383
 
2253
2384
  `bit system <sub-command>`
2254
2385
 
@@ -2270,9 +2401,10 @@ similar to linux "tail -f" command
2270
2401
  ## tag
2271
2402
 
2272
2403
  **Alias**: `t`
2273
- **Description**: create an immutable and exportable component snapshot, tagged with a release version.
2274
- if no patterns are provided, it will tag all new and modified components.
2275
- 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
2404
+ **Description**: create immutable component snapshots with semantic version tags
2405
+ creates tagged versions using semantic versioning (semver) for component releases. tags are immutable and exportable.
2406
+ by default tags all new and modified components. supports version specification per pattern using "@" (e.g. foo@1.0.0, bar@minor).
2407
+ use for official releases. for development versions, use 'bit snap' instead.
2276
2408
 
2277
2409
  `bit tag [component-patterns...]`
2278
2410
 
@@ -2315,8 +2447,8 @@ if patterns are entered, you can specify a version per pattern using "@" sign, e
2315
2447
 
2316
2448
  ## templates
2317
2449
 
2318
- **Description**: list available templates for "bit create" and "bit new"
2319
- list components templates when inside bit-workspace (for bit-create), otherwise, list workspace templates (for bit-new)
2450
+ **Description**: list available templates for creating components and workspaces
2451
+ Lists available templates. Inside a workspace it shows component templates for 'bit create'; outside a workspace it shows workspace templates for 'bit new'.
2320
2452
 
2321
2453
  `bit templates`
2322
2454
 
@@ -2331,7 +2463,10 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
2331
2463
  ## test
2332
2464
 
2333
2465
  **Alias**: `at`
2334
- **Description**: test components in the workspace. by default only runs tests for new and modified components
2466
+ **Description**: run component tests
2467
+ executes tests using the testing framework configured by each component's environment (Jest, Mocha, etc.).
2468
+ by default only runs tests for new and modified components. use --unmodified to test all components.
2469
+ supports watch mode, coverage reporting, and debug mode for development workflows.
2335
2470
 
2336
2471
  `bit test [component-pattern]`
2337
2472
 
@@ -2356,7 +2491,8 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
2356
2491
 
2357
2492
  ## undeprecate
2358
2493
 
2359
- **Description**: undeprecate a deprecated component (local/remote)
2494
+ **Description**: remove the deprecation status from a component
2495
+ reverses the deprecation of a component, removing warnings and allowing normal use again.
2360
2496
 
2361
2497
  `bit undeprecate <id>`
2362
2498
 
@@ -2365,15 +2501,22 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
2365
2501
  ## uninstall
2366
2502
 
2367
2503
  **Alias**: `un`
2368
- **Description**: uninstall dependencies
2504
+ **Description**: remove dependencies from workspace
2505
+ removes specified packages from workspace.jsonc dependency policy and runs install to update node_modules.
2369
2506
 
2370
2507
  `bit uninstall [packages...]`
2371
2508
 
2509
+ | **Arg** | **Description** |
2510
+ | ------------- | :---------------------------------------------------------: |
2511
+ | `packages...` | list of package names to remove from workspace dependencies |
2512
+
2372
2513
  ---
2373
2514
 
2374
2515
  ## unset-peer
2375
2516
 
2376
- **Description**: unset a component as always peer
2517
+ **Description**: remove always-peer configuration from component
2518
+ removes the always-peer marking from a component, allowing it to be installed as a regular dependency.
2519
+ reverses the effect of 'bit set-peer' command. the component will be treated normally in dependency resolution.
2377
2520
 
2378
2521
  `bit unset-peer <component-id>`
2379
2522
 
@@ -2386,7 +2529,10 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
2386
2529
  ## update
2387
2530
 
2388
2531
  **Alias**: `up`
2389
- **Description**: update dependencies. By default, dependencies are updated to the highest semver compatible versions.
2532
+ **Description**: update workspace dependencies to newer versions
2533
+ updates dependencies in workspace.jsonc to newer versions and runs install to apply changes.
2534
+ by default, updates to highest semver-compatible versions. use --major, --minor, or --patch for specific version types.
2535
+ supports glob patterns to update specific packages. prompts for confirmation unless --yes is specified.
2390
2536
 
2391
2537
  `bit update [package-patterns...]`
2392
2538
 
@@ -2406,7 +2552,7 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
2406
2552
 
2407
2553
  ## version
2408
2554
 
2409
- **Description**: shows bit version
2555
+ **Description**: display the installed Bit version
2410
2556
 
2411
2557
  `bit version`
2412
2558
 
@@ -2416,62 +2562,12 @@ list components templates when inside bit-workspace (for bit-create), otherwise,
2416
2562
 
2417
2563
  ---
2418
2564
 
2419
- ## version-history
2420
-
2421
- **Alias**: `vh`
2422
- **Description**: manage the version-history of components
2423
-
2424
- `bit version-history <sub-command>`
2425
-
2426
- ### version-history graph
2427
-
2428
- **Usage**: `version-history graph <component-id>`
2429
-
2430
- **Description**: generate a graph of the version history of a component and save as an SVG file
2431
-
2432
- | **Option** | **Option alias** | **Description** |
2433
- | ------------------ | :--------------: | ------------------------------------------------------------------------------------------------------ |
2434
- | `--short-hash` | `-s` | show only 9 chars of the hash |
2435
- | `--mark <string>` | `-m` | paint the given node-ids in the graph in red color, for multiple, separate by commas |
2436
- | `--png` | | save the graph as a png file instead of svg. requires "graphviz" to be installed |
2437
- | `--layout <name>` | `-l` | GraphVis layout. default to "dot". options are [circo, dot, fdp, neato, osage, patchwork, sfdp, twopi] |
2438
- | `--limit <number>` | | limit the number of nodes in the graph (starting from the heads) |
2439
-
2440
- ### version-history show
2441
-
2442
- **Usage**: `version-history show <component-id>`
2443
-
2444
- **Description**: show the version-history of a component
2445
-
2446
- | **Option** | **Option alias** | **Description** |
2447
- | -------------- | :--------------: | ----------------------------- |
2448
- | `--short-hash` | `-s` | show only 9 chars of the hash |
2449
- | `--json` | `-j` | json format |
2450
-
2451
- ### version-history build
2452
-
2453
- **Usage**: `version-history build <component-pattern>`
2454
-
2455
- **Description**: rebuild the version history of a component. helpful when it got corrupted for some reason
2456
-
2457
- | **Arg** | **Description** |
2458
- | ------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
2459
- | `component-pattern` | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
2460
-
2461
- | **Option** | **Option alias** | **Description** |
2462
- | -------------------- | :--------------: | ----------------------------------------------------------------------------------------- |
2463
- | `--from-snap <snap>` | | build the version history from a specific snap. the pattern must be a single component-id |
2464
- | `--from-all-lanes` | | build the version history from the heads of all lanes that include this component |
2465
- | `--delete-existing` | | delete the existing version history before building it |
2466
- | `--remote <scope>` | | make the change on the remote scope |
2467
-
2468
- ---
2469
-
2470
2565
  ## watch
2471
2566
 
2472
- **Description**: automatically recompile modified components (on save)
2473
- by default, the watcher doesn't use polling, to keep the CPU idle.
2474
- if this doesn't work well for you, run "bit config set watch_use_polling true" to use polling.
2567
+ **Description**: watch and compile components on file changes
2568
+ monitors component files for changes and automatically recompiles them using their environment's configured compiler.
2569
+ enables immediate feedback during development by keeping components compiled as you work.
2570
+ by default uses file system events (not polling) to minimize CPU usage - enable polling with "bit config set watch_use_polling true" if needed.
2475
2571
 
2476
2572
  `bit watch`
2477
2573
 
@@ -2489,7 +2585,10 @@ if this doesn't work well for you, run "bit config set watch_use_polling true" t
2489
2585
 
2490
2586
  ## whoami
2491
2587
 
2492
- **Description**: display the currently logged in user
2588
+ **Description**: display the currently authenticated Bit Cloud user
2589
+ shows the username of the currently logged in Bit Cloud account.
2590
+ verifies authentication status with the cloud service and displays the active username.
2591
+ useful for confirming authentication before publishing or when switching between accounts.
2493
2592
 
2494
2593
  `bit whoami`
2495
2594
 
@@ -2497,7 +2596,10 @@ if this doesn't work well for you, run "bit config set watch_use_polling true" t
2497
2596
 
2498
2597
  ## why
2499
2598
 
2500
- **Description**: find components that use the specified dependency
2599
+ **Description**: find components that use the specified dependency
2600
+ searches workspace components to find which ones depend on the specified package or component.
2601
+ useful for understanding dependency usage before removing packages or when refactoring components.
2602
+ supports both exact version matching and package name patterns.
2501
2603
 
2502
2604
  `bit why <dependency-name>`
2503
2605
 
@@ -2514,7 +2616,10 @@ if this doesn't work well for you, run "bit config set watch_use_polling true" t
2514
2616
  ## ws-config
2515
2617
 
2516
2618
  **Alias**: `workspace-config`
2517
- **Description**: manage workspace config files
2619
+ **Description**: generate IDE configuration files
2620
+ writes configuration files (tsconfig.json, eslintrc.js, etc.) to your workspace for better IDE support.
2621
+ automatically generates configs based on your components' environments and settings.
2622
+ useful for enabling proper IntelliSense, linting, and type-checking in your IDE.
2518
2623
 
2519
2624
  `bit ws-config <sub-command>`
2520
2625