Manage the scope-name for components
$bit scope <sub-command>
Copiedcopy

set

Sets the scope for specified component/s. If no component is specified, sets the default scope of the workspace

$bit scope set <scope-name> [component-pattern]
Copiedcopy

rename

rename the scope name for all components with the specified 'current scope name'. if exported, create new components and delete the original ones

$bit scope rename <current-scope-name> <new-scope-name>
Copiedcopy

Options

OptionOption AliasDescriptionValue Type
--preserve-avoid renaming files and variables/classes according to the new scope nameboolean
--refactor-rupdate the import statements in all dependent components to the new package name (i.e. with the new scope name)boolean
--deprecate-for exported components, instead of deleting the original components, deprecating themboolean

rename-owner

Renames the owner part of the scope-name for all components with the specified 'current owner name'

$bit scope rename-owner <current-owner-name> <new-owner-name>
Copiedcopy

Options

OptionOption AliasDescriptionValue Type
--refactor-rupdate the import statements in all dependent components to the new package name (that contains the new owner name)boolean
--ast-EXPERIMENTAL. use ast to transform files instead of regexboolean

fork

fork all components of the original-scope and refactor the source-code to use the new scope name

$bit scope fork <original-scope> [new-scope] [pattern]
Copiedcopy

Options

OptionOption AliasDescriptionValue Type
--ast-EXPERIMENTAL. use ast to transform files instead of regexboolean
--skip-dependency-installation-xdo not install packages of the imported componentsboolean