Installing Bit

Check if bit is installed using:

bit --version

Once installed, verify the installation by running the following command:

MacOS

Download Bit executable

$ curl -Lo bit https://github.com/teambit/bit/releases/download/v14.2.4/bit-bin-macos && chmod +x bit

You can copy the bit executable to a directory in your path, or any directory that will be added to your path:

$ sudo cp bit /usr/local/bin/ && rm bit

Install via NPM / Yarn

Requires node 8.12 and above.

npm install bit-bin --global
    or
yarn global add bit-bin  

Windows

Download Bit executable

  • Download the Windows .exe file from here
  • Rename it to bit.exe and add it to your PATH:
  • Add file location to windows path:
set PATH=%PATH%;C:\bit\

Install via NPM / Yarn

Requires node 8.12 and above.

$ npm install bit-bin --global
    or
$ yarn global add bit-bin  

Unix

Using Package Installers

Debian

$ sudo sh -c "echo 'deb [trusted=true] https://bitsrc.jfrog.io/bitsrc/bit-deb all stable' >> /etc/apt/sources.list"
$ sudo apt-get update && sudo apt-get install bit

Ubuntu

$ sudo apt-get update && sudo apt-get install ca-certificates
$ sudo sh -c "echo 'deb [trusted=true] https://bitsrc.jfrog.io/bitsrc/bit-deb all stable' >> /etc/apt/sources.list"
$ sudo apt-get update && sudo apt-get install bit

CentOS / Fedora / RHEL

$ sudo curl --silent --location https://static.bit.dev/rpm/bit.repo | sudo tee /etc/yum.repos.d/bit.repo
$ sudo yum install bit

Download Bit executable

$ curl -Lo bit https://github.com/teambit/bit/releases/download/v14.2.4/bit-bin-linux && chmod +x bit

You can copy the bit executable to a directory in your path, or any directory that will be added to your path:

$ sudo cp bit /usr/local/bin/ && rm bit

Install via NPM / Yarn

Requires node 8.12 and above.

$ npm install bit-bin --global
    or
$ yarn global add bit-bin