-
Notifications
You must be signed in to change notification settings - Fork 43
CLI
Samuel Cardoso edited this page Jul 8, 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-gatewayThen, just call the treeGatewayConfig tool directly into your terminal.
To see the program help:
$ treeGatewayConfig -hNote that you can provide for all commands available the following option:
- -c (or --config): the gateway config file.
The program allow you to configure:
- the gateway;
- middlewares;
- apis;
- users for the REST Apis
Once you have an instance running you can configure it. For instance, using the cli you can type:
$ treeGatewayConfig gateway --update ./myGateway.config.jsonIf you need help for a specific command, just type:
$ treeGatewayConfig <command> -hExample:
$ treeGatewayConfig apis -hThis will show the list with descriptions of all operations supported by apis command.