Add any subset of files to be tracked as a component(s).
$bit add [path...]
$bit a [path...]
Additional Notes
Learn the recommended workflow for tracking directories as components, in the link below.
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--id | -i | manually set component id | string |
--main | -m | define component entry point | string |
--namespace | -n | organize component in a namespace | string |
--override | -o | override existing component if exists (default = false) | string |
--scope | -s | sets the component's scope. if not entered, the default-scope from workspace.jsonc will be used | string |
--env | -e | set the component's environment. (overrides the env from variants if exists) | string |
--json | -j | output as json format | boolean |