8000 GitHub - zwtesttt/coss-cli at v1.0.4
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zwtesttt/coss-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coss-cli

coss-cli 是一个用于快速部署cossim的命令行工具。

安装

可以在mac/linux/windows不同平台下执行的命令

在这里下载工具 coss-cli

快速使用

coss-cli gen
docker-compose up -d
coss-cli route

使用注册中心

coss-cli gen --direct=false
docker-compose up -d
coss-cli config --path ./config/common --namespace common
coss-cli config --path ./config/service --namespace service
coss-cli route --direct=false --route-host=<your-consul-host>

如果要指定consul地址,可以使用--host参数,默认为http://127.0.0.1:8500

更多详细参数请查看帮助coss-cli config --help

coss-cli config --path ./config/common --namespace common --host=http://127.0.0.1:8500

Help

NAME:
   coss-cli - coss-cli is a command line tool for coss

USAGE:
   coss-cli [global options] command [command options] 

COMMANDS:
   config   init consul config 
   gen      gen coss config 
   route    init gateway route 
   ssl      init consul config 
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

config 用来初始化consul中的配置文件

gen 用来生成coss的配置文件

route 用来初始化网关的路由

ssl 将ssl证书上传到网关

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.6%
  • Makefile 3.4%
0