ganjiang-cli
v0.0.4
Published
ganjiang cli tool
Readme
GanJiang Cli
:star: Description
GanJiang Cli tool for simple query app, api, testcase, datasource info, and support publish, rollback, offline or deploy to Ganjiang
:tada: Install
npm install ganjiang-cli -g
or
yarn global add ganjiang-cli:rocket: Usage
after install, run gj in terminal
> gjCommon
- run
gj --versionto get the cli version - run
gj help <commander>to get the commander help
Init GanJiang Config
ganjiang cli is a common tool, so you can connect to the ganjiang system you know
- create env file named
test.env - env file contents
HOST={ganjiang-host} TOKEN={ganjiang-token} - run
gj init --env test.envto init the config
Login GanJiang
- run
gj login - input your username
- input your password(invisible)
- login sucessfully
Read My Data
- run
gj read -t app - read more by
gj help read
Publish My Service
- run
gj publish --env daily --apps 40_234,40_237to publish 234 and 237 two api to daily env
Rollback My Service
- developing
Offline My Service
- developing
Deploy My Service
- developing
