Skip to main content

Set Up a Node

You can find the source code for Bee in the official Bee repository. Before you can install Bee from source, you will need to install some required dependencies.

Installing from Source

Dependency Packages

Before starting the installation process, you should make sure your system has all the required dependencies.

To run a Bee node in a Debian base system you will need to install the following packages:

To install all of these packages, you can run the following commands:

apt-get update
apt-get upgrade
apt-get install git npm build-essential cmake pkg-config librocksdb-dev llvm clang libclang-dev libssl-dev

Installing Rust

You will need to install Rust in order to run a Bee node. You should install version is 1.51, or above.

You can install Rust in a Debian system by running the following commands:

curl --proto '=https' --tlsv1.2 -sSf | sh
source $HOME/.cargo/env

Updating Rust

You can use rustup to update your Rust version by running the following command:

rustup update

Compiling the Bee Node

Download the Source

Once you have installed all the required dependencies, you can start compiling the Bee Node. To do so, you can simply clone the source code by running the following command.

git clone --branch dev


Before you start compiling Bee, you should change your current directory to bee/bee-node. You can do so by running the following command from the same directory where you downloaded the source:

cd bee/bee-node

You can compile Bee in two manners:

With Dashboard

If you want to build Bee with its Dashboard, you should run the following commands:

git submodule update --init
cd src/plugins/dashboard/frontend
npm install
npm run build-bee
cd -
cargo build --release --features dashboard

Without dashboard

If you want to build Bee without its Dashboard, you should run the following command:

cargo build --release


Once you have downloaded and compiled Bee, you should copy make a copy of the example config file. Be sure to review and update your configuration. You can find more information on configuring bee in the configuration section.

To copy the example configuration file, you should run the following command:

cp config.template.json config.json

Once you have copied and updated the configuration, you can run your Bee node by executing the following command: