Skip to main content

From Binary

To download pre-built binaries, see the releases page.

From Source

You’ll need go installed and the required environment variables set, which can be done with the following commands:

Get Source Code

Compile

to put the binary in $GOPATH/bin or use:
to put the binary in ./build. DISCLAIMER The binary of CometBFT is build/installed without the DWARF symbol table. If you would like to build/install CometBFT with the DWARF symbol and debug information, remove -s -w from BUILD_FLAGS in the make file. The latest CometBFT is now installed. You can verify the installation by running:

Run

To start a one-node blockchain with a simple in-process application:

Reinstall

If you already have CometBFT installed, and you make updates, simply
To upgrade, run

Compile with CLevelDB support

Install LevelDB (minimum version is 1.7). Install LevelDB with snappy (optionally). Below are commands for Ubuntu:
Set a database backend to cleveldb:
To install CometBFT, run:
or run:
which puts the binary in ./build.