Replace the current component files by the specified version, leave the version intact
$bit revert <component-pattern> <to>
Arguments
Argument | Description | Required |
---|---|---|
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. | ✅ |
to | permitted values: [main, specific-version]. 'main' - head version on main. | ✅ |
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--verbose | -v | showing verbose output for inspection | boolean |
--skip-dependency-installation | -x | do not install packages of the imported components | boolean |