Please enable JavaScript to view the page

Building Nighthawk | Nighthawk Nighthawk
GetNighthawk // for copy button

Getting Started

Building Nighthawk

While GetNighthawk distribution are a convenient way of using Nighthawk, you can also build Nighthawk and run it from source.  


Installing Bazelisk as Bazel

It is recommended to use Bazelisk installed as bazel, to avoid Bazel compatibility issues.

On Linux, run the following commands:

sudo wget -O /usr/local/bin/bazel$([ $(uname -m) = "aarch64" ] && echo "arm64" || echo "amd64")
sudo chmod +x /usr/local/bin/bazel


Clone the Nighthawk repo

Using GitHub CLI:

gh repo clone envoyproxy/nighthawk

Using HTTPS:

git clone


Install Dependencies

On Ubuntu, run the following:

sudo apt-get install \
    autoconf \
    automake \
    cmake \
    curl \
    libtool \
    make \
    ninja-build \
    patch \
    python3-pip \
    unzip \

Install Golang on your machine. This is required as part of building BoringSSL and also for Buildifer which is used for formatting bazel BUILD files.  

Building Nighthawk


cd nighthawk
bazel build -c opt //:nighthawk

Recent Discussions with "nighthawk" Tag