Skip to content
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-gateway

Then, just call the treeGatewayConfig tool directly into your terminal.

To see the program help:

$ treeGatewayConfig -h

Note 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:

$ treeGatewayConfig gateway --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.

Clone this wiki locally