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 GuideFor 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/bvm
yarn global add @teambit/bvm
- Install Bit using BVM
bvm install
#
Install BVMBVM 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/bvm
yarn global add @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 BitOnce 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.
- MacOS / Linux
- Windows
- Bash
- ZSH
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc && source ~/.bashrc
echo 'export PATH=$HOME/bin:$PATH' >> ~/.zshrc && source ~/.zshrc
setx path "%path%;%LocalAppData%\.bvm"
tip
Use bit --help
or bit -h
to get a list of available options.
#
BVM and Bit VersionsTo check your version of BVM and Bit and see what the latest version is run the bvm version
command.
bvm version
#
Upgrading BVMTo upgrade to the latest version of BVM:
- NPM
- Yarn
npm i -g @teambit/bvm
yarn global add @teambit/bvm
#
Upgrading BitTo 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.