Remove component from the workspace and install it instead as a regular npm package.
$bit eject <component-pattern>
Copiedcopy
$bit E <component-pattern>
Copiedcopy
Additional Notes
By default the component files will be removed from the workspace

Arguments

ArgumentDescriptionRequired
component-patterncomponent 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.

Options

OptionOption AliasDescriptionValue Type
--force-fignore local changes/versions. eject component/s even when they are staged or modified. Note: unexported tags/snaps will be lostboolean
--skip-dependency-installation-xdo not auto-install dependenciesboolean
--json-jprint the results in JSON formatboolean
--keep-files-keep the component files in the workspace intactboolean