UNPKG

@tririga/tri-pull

Version:

A tool for pulling the UX view source files from the TRIRIGA server.

43 lines (28 loc) 1.75 kB
# tri-pull A tool for pulling the UX view source files from the TRIRIGA server. ### Installation $ npm install @tririga/tri-pull -g ### Synopsis $ tri-pull -t <tririga_url> -u <user> -p <password> ### Options - `-u, --user user` The user name of your TRIRIGA user. Required. - `-p, --password password` The password for your TRIRIGA user. Required. - `-t, --target url` The URL of the TRIRIGA server. It must include the context path. - `--basicuser user` The user name for basic authentication. - `--basicpassword password` The user password for basic authentication. - `-v, --view view_name` The name of the view to be pulled. Defaults to the current directory name. - `-d, --dir directory_path` The directory to save the view files. Defaults to the current directory path. - `-y, --polymer string` The Polymer version of the view to be pulled. Acceptable values are 1 or 3. Defaults to 3. - `-w, --webapp` Pull files from a web application. When this property is used, -y option is ignored. - `-m, --maxconcurrent` The maximum concurrent pull requests to the server. Defaults to 1. - `--version` Print tri-pull version. - `-q, --quiet` Do not print any non-error message to the console. - `-h, --help` Print this help information. ### Usage 1. Pull the Polymer 3 my-ux-3 view files to the current directory: `$ cd my-ux-3` `$ tri-pull -t http://tririga.dev:8001/dev -u myUserName -p myPassword` 2. Pull the Polymer 1 my-ux-1 view files to a different directory: `$ tri-pull -t http://tririga.dev:8001/dev -u myUserName -p myPassword -v my-ux-1 -d /my-ux-1 -y 1` 3. Pull the files from the Web Application my-ux-02: `$ tri-pull -t http://tririga.dev:8001/dev -u myUserName -p myPassword -v my-ux-02 -d /my-ux-02 -w`