Socket
Book a DemoInstallSign in
Socket

cloudflared-tunnel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflared-tunnel

A simple tool automates running a Cloudflare-Tunnel for exposing your local host to the world! it could be used as a standalone CLI or imported into other libraries CLI's

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
602
-22.92%
Maintainers
1
Weekly downloads
 
Created
Source

Cloudflared Tunnel

A simple tool automates running a Cloudflare-Tunnel for exposing your local host to the world! it could be used as a standalone CLI or imported into other libraries CLI's

Version cloudflared-tunnel CircleCI GitHub license

Pre-requisites

  • Cloudflare account
  • A Domain that is managed by Cloudflare you can transfer your domain management to Cloudflare from your current registrar for free

Usage CLI

Install CLI

yarn install -g cloudflared-tunnel

Setup

Note: you need to do this only once

cf-tunnel -s

OR

cf-tunnel setup

Run

cf-tunnel  [-p <port>] [-h <host>] [-s]

Commands

cf-tunnel

Runs a cloudflared tunnel simply with a single command

cf-tunnel

Options

-p, --port=port # port to expose
-h, --host=host # host to expose
-s, --setup # setup cloudflared tunnel

Usage as a library

Install Library

yarn add cloudflared-tunnel
import {setup, startTunnel} from 'cloudflared-tunnel'

await setup() // setup the project | you need to do this only once

await startTunnel({
  host: 'http://localhost', // required
  port: 3000, // required
}) // pass in the host and port of the server you want to tunnel

Keywords

oclif

FAQs

Package last updated on 12 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts