Installation
This guide covers installing cloudflared-project and its prerequisite, the cloudflared binary.
Prerequisites
Section titled “Prerequisites”Go 1.26+
Section titled “Go 1.26+”cloudflared-project is written in Go. You need Go 1.26 or later to install from source.
macOS:
brew install goLinux:
# Download from https://go.dev/dl/ and follow the official instructionswget https://go.dev/dl/go1.26.0.linux-amd64.tar.gzsudo tar -C /usr/local -xzf go1.26.0.linux-amd64.tar.gzexport PATH=$PATH:/usr/local/go/binVerify your Go installation:
go version# go version go1.26.0 darwin/arm64cloudflared binary
Section titled “cloudflared binary”cloudflared-project wraps the official cloudflared binary. It must be installed and accessible in your PATH.
macOS:
brew install cloudflaredLinux (apt):
curl -L --output cloudflared.deb \ https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.debsudo dpkg -i cloudflared.debLinux (rpm):
curl -L --output cloudflared.rpm \ https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-x86_64.rpmsudo rpm -i cloudflared.rpmVerify the installation:
cloudflared --version# cloudflared version 2024.x.xInstall cloudflared-project
Section titled “Install cloudflared-project”Option 1 — via go install (recommended)
Section titled “Option 1 — via go install (recommended)”go install github.com/MakFly/cloudflared-cli@latestThis places the cloudflared-project binary in your $GOPATH/bin (usually ~/go/bin). Make sure that directory is in your PATH:
export PATH=$PATH:$(go env GOPATH)/binOption 2 — from source
Section titled “Option 2 — from source”# Clone the repositorygit clone https://github.com/MakFly/cloudflared-cli.gitcd cloudflared-cli
# Build and installmake build
# Or manuallygo build -o cloudflared-project .mv cloudflared-project /usr/local/bin/Verify Installation
Section titled “Verify Installation”cloudflared-project version# cloudflared-project v0.1.0Tip: If the command is not found, ensure
$GOPATH/bin(or/usr/local/bin) is in yourPATH. Add the appropriateexport PATH=...line to your shell profile (.bashrc,.zshrc, etc.).
Next Steps
Section titled “Next Steps”With cloudflared-project installed, proceed to the Quick Start to create your first tunnel.