Cloudflare WARP provides a secure and privacy-focused network connection by routing your traffic through Cloudflare’s global network.

This guide covers installing WARP CLI, registering your device, and connecting to the WARP network.

Add the Cloudflare Repository

Import Cloudflare’s signing key:

curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | \
sudo gpg --yes --dearmor \
--output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

Add the Cloudflare repository:

echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ focal main" | \
sudo tee /etc/apt/sources.list.d/cloudflare-client.list

Install WARP CLI

Update package lists and install the client:

sudo apt update
sudo apt install cloudflare-warp

Register the Device

Create a new WARP registration:

warp-cli registration new

Connect to WARP

Connect to the Cloudflare network:

warp-cli connect

Verify Connection Status

Check the current status:

warp-cli status

A successful connection should show that WARP is connected and active.

Useful Commands

Connect:

warp-cli connect

Disconnect:

warp-cli disconnect

View status:

warp-cli status

View account information:

warp-cli account

Delete registration:

warp-cli registration delete

Quick Start

curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | \
sudo gpg --yes --dearmor \
--output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ focal main" | \
sudo tee /etc/apt/sources.list.d/cloudflare-client.list

sudo apt update
sudo apt install cloudflare-warp

warp-cli registration new
warp-cli connect
warp-cli status

Once connected, your internet traffic will be routed through Cloudflare WARP.