Create or reinitialize an empty workspace
$bit init [path]
Additional Notes
if the current directory is already a workspace, it validates that bit files are correct and rewrite them if needed.
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--name | -n | name of the workspace | string |
--standalone | -T | do not nest component store within .git directory and do not write config data inside package.json | boolean |
--no-package-json | - | do not generate 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 |
--force | -f | force workspace initialization without clearing local objects | boolean |
--bare | -b | initialize an empty bit bare scope | string |
--shared | -s | add group write permissions to a scope properly | string |