Installing Bit
To use Bit you will need to install it globally. You can do this by first installing BVM, a version manager 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.
- Install BVM (Bits Version Manager)
- NPM
- Yarn
npm i -g @teambit/bvmyarn global add @teambit/bvm- Install Bit using BVM
bvm installInstall 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
- Yarn
npm i -g @teambit/bvmyarn global add @teambit/bvmYou 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 installnote
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.
- MacOS / Linux
- Windows
- Bash
- ZSH
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc && source ~/.bashrcecho 'export PATH=$HOME/bin:$PATH' >> ~/.zshrc && source ~/.zshrcsetx path "%path%;%LocalAppData%\.bvm"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 versionUpgrading BVM#
To upgrade to the latest version of BVM:
- NPM
- Yarn
npm i -g @teambit/bvmyarn global add @teambit/bvmUpgrading Bit#
To upgrade to the latest version of Bit:
bvm upgradeHave 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.