How to install cloudflare tunnel in my repl

I tried to install cloudflare tunnel in my repl from

But when i use install-pkg it says bash: install-pkg: command not found
And when i use apt install it says:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

and when running with sudo:
sudo: The “no new privileges” flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

They are all running in bash.

Try installing it using nix by adding pkgs.cloudflared to replit.nix.


Well can you give me a example?

Figured it out. Thank you for your help it worked!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.