-
Notifications
You must be signed in to change notification settings - Fork 43
CLI
Samuel Cardoso edited this page May 23, 2017
·
16 revisions
The treeGatewayConfig command line tool uses the Node.js SDK to allow gateway management through command line scripts.
Ensure that you have already installed the gateway:
$ npm install -g tree-gateway
Then, just call the treeGatewayConfig tool directly into your terminal.
To see the program help:
$ treeGatewayConfig -h
Note that for all commands available, you always need to provide:
- -u (or --username): your admin username
- -p (or --password): your admin user's password
- -s (or --swagger): The address of the swagger file on the target tree-gateway instance serving the admin service.
The program allow you to configure:
- the gateway;
- middlewares;
- apis
Ex: Configuring gateway object via cli:
$ treeGatewayConfig gateway -u <userName> -p <password> -s http://localhost:8001/api-docs/json --update ./myGateway.config.json
If you need help for a specific command, just type:
$ treeGatewayConfig <command> -h
Example:
$ treeGatewayConfig apis -h
This will show the list with descriptions of all operations supported by apis
command.