Skip to main content

Installing Bit

To use Bit you will need to install it globally. You can do this by first installing BVM, a version manger for Bit and then installing Bit.

Quick Guide#

For those that don't like reading docs feel free to follow the quick guide at the top of each page.

  1. Install BVM (Bits Version Manager)
npm i -g @teambit/bvm
  1. Install Bit using BVM
bvm install

Install BVM#

BVM is a version manager for Bit. Using BVM makes it easier to install and manage multiple versions of Bit in a single environment.

npm i -g @teambit/bvm

You should see a progress bar while BVM is installing and once finished you can use BVM to install Bit.

➡️ Learn more about BVM and it's commands, including troubleshooting information.


Install Bit#

Once BVM is installed you can install the latest version of Bit using the bvm install command.

bvm install
note

If you get a warning or the bvm command is not available you will need to run the code below. You can learn more about this in the BVM guide.

echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc && source ~/.bashrc
tip

Use bit --help or bit -h to get a list of available options.


BVM and Bit Versions#

To check your version of BVM and Bit and see what the latest version is run the bvm version command.

bvm version

Upgrading BVM#

To upgrade to the latest version of BVM:

npm i -g @teambit/bvm

Upgrading Bit#

To upgrade to the latest version of Bit:

bvm upgrade

Have a legacy version of bit installed on your machine?

Use the bbit command to run Bit's latest version and the bit command for Bit's legacy version.


What's next?#

Once you have installed Bit and BVM you can then initialize a workspace so you can manage your components.