Docs
Commands
File

btunnel file

Serve local directory

Synopsis

To serve a local directory <DIR_PATH> over the internet, use the "file" command. The default directory is the current directory ("."). This gives you a randomly generated url which is globally accessible through the internet.

btunnel file --help

Output of the above command is like this -

To serve a local directory <DIR_PATH> over the internet, use the "file" command.
The default directory is the current directory (".").
This gives you a randomly generated url which is globally accessible
through the internet.

Usage:
  btunnel file [flags]

Flags:
  -a, --auth string        basic auth user name and password in this format (without quote)  'user:pass')
  -d, --dir string         path of the directory to serve from (default ".")
  -h, --help               help for file
  -s, --subdomain string   registered subdomain to expose

Global Flags:
  -c, --config string   config file (default is $HOME/.btunnel.yaml)
  -k, --key string      API Key to use btunnel, sign-up at https://www.btunnel.in to get your own

Options

  -d, --dir string   path of the directory to serve from (default ".")
  -h, --help         help for file

Options inherited from parent commands

  -c, --config string   config file (default is $HOME/.btunnel.yaml)
  -k, --key string      API Key to use btunnel, sign-up at https://www.btunnel.in to get your own

You can browse the using the generated url from the web through like below -

share local file to internet

SEE ALSO