Skip to main content

Building MMDB CLI from Source 🏗️

If you want to build MMDB CLI from the source code, you can follow the instructions below.

Prerequisites

  • Git
  • Go (version 1.23 or higher)

Clone the Repository

First, you need to clone the MMDB CLI repository to your local machine.

git clone https://github.com/InfraZ/mmdb-cli.git
cd mmdb-cli

Download Dependencies

Next, you need to download the dependencies using the go mod download command.

go mod download -x

Build the Binary

Finally, you can build the MMDB CLI binary using the go build command.

go build -o mmdb-cli .

Verify the Binary

You can verify the binary by running the following command.

./mmdb-cli --version

Note: If you encounter any issues during the build process, please let us know by creating an issue on our GitHub repository.