Posted on 7th Mar 2025
How to Install Warp CLI on Ubuntu 22.04
Add the Cloudflare GPG key:
curl https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
Add the Cloudflare repository to your APT sources:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
Update your package list and install the cloudflare-warp
package:
sudo apt-get update && sudo apt-get install cloudflare-warp
After installation, you can register the client and connect to WARP:
warp-cli registration new
warp-cli connect
To verify that WARP is active, run:
curl https://www.cloudflare.com/cdn-cgi/trace/
Ensure that the output includes warp=on
to confirm that WARP is enabled. If you encounter issues, you might need to run warp-svc &
(add &
to run in the background) before registering and connecting.
For more detailed troubleshooting, you can use the warp-diag
command to generate logs and submit support tickets:
sudo warp-diag
This command will create a warp-debugging-info.zip
file in the directory from which it was run, which can be used for debugging purposes
Tags