- 
                Notifications
    
You must be signed in to change notification settings  - Fork 44
 
CLI
        Thiago Bustamante edited this page May 19, 2017 
        ·
        16 revisions
      
    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 -hThe 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.jsonTo see all supported command, execute:
$ 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.