Manage capsules
$bit capsule
Copiedcopy
Additional Notes
a capsule is a directory containing the component code, isolated from the workspace. normally, capsules are created during the build process, the component files are copied and the packages are installed via the configured package-manager. the purpose is to compile/test them in isolation to make sure they will work for other users after publishing/exporting them.

Options

OptionOption AliasDescriptionValue Type
--json-jjson formatboolean

list

list the capsules generated for this workspace

$bit capsule list
Copiedcopy

Options

OptionOption AliasDescriptionValue Type
--json-jjson formatboolean

create

create capsules for components

$bit capsule create [component-id...]
Copiedcopy

Options

OptionOption AliasDescriptionValue Type
--base-dir-bset base dir of all capsules (hashed to create the base dir inside the root dir - host path by default)string
--root-base-dir-rset root base dir of all capsules (absolute path to use as root dir)string
--always-new-acreate new environment for capsuleboolean
--seeders-only-screate capsules for the seeders only (not for the entire graph)boolean
--id-ireuse capsule of certain namestring
--use-hash-whether to use hash function (of base dir) as capsules root dir nameboolean
--json-jjson formatboolean
--install-packages-dinstall packages by the package-managerboolean
--package-manager-pnpm, yarn or pnpm, default to npmstring

delete

delete capsules

$bit capsule delete
Copiedcopy

Options

OptionOption AliasDescriptionValue Type
--scope-aspects-delete scope-aspects capsulesboolean
--all-adelete all capsules for all workspaces and scopesboolean