Create or reinitialize an empty workspace
$bit init [path]
Additional Notes
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--bare | -b | initialize an empty bit bare scope | string |
--shared | -s | add group write permissions to a scope properly | string |
--standalone | -T | do not nest component store within .git directory and do not write config data inside package.json | boolean |
--reset | -r | write missing or damaged Bit files | boolean |
--reset-new | - | reset .bitmap file as if the components were newly added and remove all model data (objects) | boolean |
--reset-lane-new | - | same as reset-new, but it only resets components belong to lanes. main components are left intact | boolean |
--reset-hard | - | delete all Bit files and directories, including Bit configuration, tracking and model data. Useful for re-starting workspace from scratch | boolean |
--reset-scope | - | removes local scope (.bit or .git/bit). tags/snaps that have not been exported will be lost. workspace is left intact | boolean |
--default-directory | -d | set the default directory pattern to import/create components into | string |
--default-scope | - | set the default scope for components in the workspace | string |
--package-manager | -p | set the package manager (npm or yarn) to be used in the workspace | string |
--force | -f | force workspace initialization without clearing local objects | boolean |
--harmony | - | DEPRECATED. no need for this flag. Harmony is the default now | boolean |
--interactive | -I | EXPERIMENTAL. start an interactive process | boolean |