Build Status
Go Report Card
Latest Version
License
Repo Size

forward-cli

A command line tool to quickly setup a reverse proxy server.

Usage

forward - A command line tool to quickly setup a reverse proxy server.

USAGE:
  forward [OPTIONS] [host]

OPTIONS:
  --help                            print help information
  --version                         show version information
  --cors                            enable cors. defaults: false
  --cors-allow-headers=<string>     allow send headers from client when cors enabled. defaults: ""
  --cors-expose-headers=<string>    expose response headers from server when cors enabled. defaults: ""
  --port=<int>                      Specify the port that the proxy server listens on. defaults: 8080

EXAMPLE:
  forward http://example.com
  forward --port=80 http://example.com

Install

  1. Shell (Mac/Linux)
curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/forward-cli -e=forward
  1. PowerShell (Windows):
$r="axetroy/forward-cli";$e="forward";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
  1. Github release page (All platforms)

download the executable file and put the executable file to $PATH

  1. Build and install from source using Golang (All platforms)
go install github.com/axetroy/[email protected]

License

The MIT License

GitHub

View Github