Skip to main content

From Go Package

Install the latest version of CometBFT’s Go package:
Install a specific version of CometBFT’s Go package:

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 built/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 makefile. The latest CometBFT is now installed. You can verify the installation by running:

Reinstall

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

Compile with CLevelDB Support

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