Getting started

Install Cloudify, then publish a service. For the terms used here, see The idea behind it.

Install#

On Linux and macOS, run:

curl -fsSL https://raw.githubusercontent.com/VickyDev810/Cloudify-Tunnel-Manager/main/install.sh | bash

Other ways, and per-platform details: Linux, macOS, Docker, Windows.

Temporary URL#

No account or domain needed. Start a service on a local port, then:

cloudify -p 3000

Cloudify prints a random https://<words>.trycloudflare.com address. Anyone with the link can reach localhost:3000 until you press Ctrl+C.

More: cloudify temp list, cloudify temp stop [URL].

Your own domain (CLI)#

You need a domain whose DNS is managed by Cloudflare (add a site).

1. Connect the domain (once per domain):

cloudify setup --domain example.com

Open the printed link, sign in and click your domain.

2. Create a tunnel:

cloudify tunnel create web

Add --no-autostart to skip start at boot.

3. Add a route:

cloudify route add app.example.com 3000 -t web
# a container or another machine on the network instead of localhost:
cloudify route add api.example.com 8080 -t web --service my-api-container

Open https://app.example.com.

4. Check it:

cloudify tunnel list            # all tunnels with status, routes and auto-start
cloudify tunnel status web
cloudify route list -t web
cloudify route check -t web     # are the DNS records there and pointing at this tunnel?

Other commands: cloudify tunnel stop web, cloudify tunnel start web, cloudify route edit app.example.com --port 3001, cloudify route remove app.example.com, cloudify tunnel delete web. Leave out -t web after cloudify tunnel use web.

Interactive wizard: cloudify quickstart.

Dashboard#

cloudify serve                  # then open http://localhost:8765
  1. Create the first account with the setup code printed in the terminal. This account is the administrator.
  2. Click Connect Cloudflare, open the link, pick your domain.
  3. Tunnels → New tunnel, then Add route on the tunnel card.

Read Security before exposing the dashboard. More: Dashboard.

DNS cleanup#

Without an API token, removed routes and deleted tunnels leave their DNS record in Cloudflare. To let Cloudify delete it:

  1. Open dash.cloudflare.com → My Profile → API Tokens → Create Token → Edit zone DNS → Use template.
  2. Keep the permission Zone · DNS · Edit. Under Zone Resources choose Include · Specific zone · example.com.
  3. Optionally limit Client IP Address Filtering to your server's IP and set an expiry date.
  4. Continue to summary → Create Token. Copy the token; it is shown only once.
  5. Add it: dashboard Domains → DNS cleanup, or cloudify account token <connection-id> (ID from cloudify account list).

Recreate a deleted record: cloudify route repair app.example.com -t web.

Several domains#

cloudify account connect example.com
cloudify account connect shop.net          # may be another Cloudflare account
cloudify tunnel create store --account shop.net
cloudify route add www.shop.net 8080 -t store

Start at boot#

Change auto-start for a tunnel:

cloudify tunnel autostart web --enable      # or --disable, --status

On macOS and Windows, tunnels start at login. To keep the dashboard running too, see Linux, macOS or Docker.

Redundancy#

Run the same tunnel on a second machine:

# machine A (has the tunnel)
cloudify replica export web-replica.json -t web     # asks for a passphrase
# copy the file to machine B, then on machine B (no Cloudflare login needed)
cloudify replica import web-replica.json

Both machines need the same local services. After changing routes on machine A, export and import again.

For only some hostnames: cloudify replica split web app.example.com --name web-ha.

Next steps#