choco-cli

0.0.7 • Public • Published

How to install

# npm i -g choco-cli

Choco server with config file

$ cd any/path
$ touch choco.yml
$ nano choco.yml
server:
  path: "./public-folder"
  port: 3000
  key: "../path/to/server.key"
  cert: "../path/to/server.crt"

Choco server with commands

usage: choco server [path] [options]'
 
options:'
  -d           dir(./)'
  -p           Port to use [3000]'
  -a           Address to use [0.0.0.0]'
  -U           Use UTC time format in log messages.'
 
  -s           Enable https and set the path to cert and key.'
  -c           Path to ssl cert file.'
  -k           Path to ssl key file.'
 
  -h --help    Print this list and exit.'

listen server

$ choco server

or

$ choco server -d ./public-folder -c ../path/to/server.crt -d ./ -k ../path/to/server.key

Package Sidebar

Install

npm i choco-cli

Weekly Downloads

2

Version

0.0.7

License

GPL-3.0

Last publish

Collaborators

  • jefer94