# connect-cli

> server connect livereload line tool

Latest version **1.0.0** (published 2016-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install connect-cli
pnpm add connect-cli
yarn add connect-cli
bun add connect-cli
```

Provides the command `connect`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-06-14 |
| First published | 2016-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | dingzhiyuan |
| Maintainers | imbigd |
| Keywords | connect, livereload, cli, server, commandline |

## Links

- npm: https://www.npmjs.com/package/connect-cli
- Repository: https://github.com/dingzhiyuan/connect-cli
- Issues: https://github.com/dingzhiyuan/connect-cli/issues
- npm.io page: https://npm.io/package/connect-cli

## Dependencies (5)

- [gulp](https://npm.io/package/gulp.md) 3.9.0
- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [commander](https://npm.io/package/commander.md) ^2.5.1
- [gulp-connect](https://npm.io/package/gulp-connect.md) 2.2.0
- [http-proxy-middleware](https://npm.io/package/http-proxy-middleware.md) 0.9.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-06-14

## README

# Connect CLI

A command line wrapper for server connect and livereload


## Install

`npm install --g connect-cli`

## Usage

Pxtorem CLI takes 3 arguments:

|Argument|Alias|Default|Description|
|---|---|---|---|
|`--host`|`-h`|`n/a`|the host eg:localhost,eg:www.xxx.com|
|`--port`|`-p`|`n/a`|the port eg:3000|

## Example
cd you website folder

`connect -h www.xxx.com -p 8888`

all args is not a must.


## Without arguments

cd you website folder

`connect`

it will use default options.

## Default options


`{
    host:'localhost'
    ,port:3000
    ,middleware:[]
}`

but you can create a "connect.json" file in the cwd folder to rewrite the options

## Middleware

the "connect.json" will be like:

`{
	host:'www.xxx.com'
    ,port:8080
	,"middleware":[{
		"proxy":"/xxx/",
		"to":"http://192.168.1.100:8888/"
	},{
		"proxy":"/xxxx/",
		"to":"http://192.168.1.101:8888/"
	}]
}`

## About host

if use a domain name as host,you must add a record in you host file in you system.

like:

127.0.0.1 www.xxx.com

---
_Source: https://npm.io/package/connect-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
