Difference between revisions of "LRM Commands Reference"

From Lingoport Wiki
Jump to: navigation, search
Line 24: Line 24:
 
<pre>
 
<pre>
   
-ad,--add-user Add a user. Example: lrm-cli.jar -au
 
--new-name=MyName
 
--new-password=MyPassword
 
 
-ak,--activate-kit Activate a kit. Example: lrm-cli.jar -ak
 
-ak,--activate-kit Activate a kit. Example: lrm-cli.jar -ak
 
--project-name MyProject --kit-version 2
 
--project-name MyProject --kit-version 2
  +
-au,--add-user Add a user. Example: lrm-cli.jar -au
  +
--new-name MyName --new-password
  +
MyPassword
 
-cp,--create-project Create a project from an xml file.
 
-cp,--create-project Create a project from an xml file.
Example: lrm-cli.jar -cp --file
+
Example: lrm-cli.jar -cp -f
 
C:/MyLocation/Setup.xml
 
C:/MyLocation/Setup.xml
 
-d,--debug Log4j Debug mode
 
-d,--debug Log4j Debug mode
Line 54: Line 54:
 
MyProjectName
 
MyProjectName
 
-ik,--import-kit Import the translated kit. Example:
 
-ik,--import-kit Import the translated kit. Example:
lrm-cli.jar -ik -f C:/KitLocation
+
lrm-cli.jar -ik -pn MyProject -f
  +
C:/KitLocation
 
-ks,--kit-status Report on all the incomplete and complete
 
-ks,--kit-status Report on all the incomplete and complete
 
kits. Example lrm-cli.jar -r -ks -pn
 
kits. Example lrm-cli.jar -r -ks -pn
Line 69: Line 70:
 
-np,--new-password <string> Specifies the password when adding a user
 
-np,--new-password <string> Specifies the password when adding a user
 
(-au).
 
(-au).
-on,--old-name <string> Specifies the old project name when
 
renaming a project (-rp).
 
 
-p,--password <string> Optional argument used to log into the LRM
 
-p,--password <string> Optional argument used to log into the LRM
 
system as a different user than indicated
 
system as a different user than indicated
Line 82: Line 81:
 
-pn,--project-name <string> Specifies the project name.
 
-pn,--project-name <string> Specifies the project name.
   
-ps,--project_status Report on the productivity and status of
+
-ps,--project-status Report on the productivity and status of
 
the supplied project name. Example
 
the supplied project name. Example
 
lrm-cli.jar -r -ps -pn MyProjectName
 
lrm-cli.jar -r -ps -pn MyProjectName
Line 88: Line 87:
 
additional option. If option `-f` is not
 
additional option. If option `-f` is not
 
specified then the report is saved to the
 
specified then the report is saved to the
default report directory. Example: {0}
+
default report directory. Example:
  +
lrm-cli.jar -r <report option>
 
-rp,--rename-project Rename a project. Example: lrm-cli.jar -rp
 
-rp,--rename-project Rename a project. Example: lrm-cli.jar -rp
--old-name OldName --new-name NewName
+
--project-name projectName --new-name
  +
NewName
 
-si,--source-issues Report on the source issues for the
 
-si,--source-issues Report on the source issues for the
 
supplied project name. Example:
 
supplied project name. Example:
Line 101: Line 102:
 
C:/MyLocation/Setup.xml
 
C:/MyLocation/Setup.xml
 
-v,--verbose Verbose (console logging)
 
-v,--verbose Verbose (console logging)
  +
   
 
</pre>
 
</pre>

Revision as of 23:07, 25 September 2012

Introduction

To invoke a command, you must type java -jar <path-to-jarfile -command -parameters For instance, on Windows, if the Resource Manager Command Line Interface jar file is located under C:\Lingoport\ResourceManagerClient-1.0 and you want to list the Resource Manager projects, you would type:

 java -jar C:\Lingoport\ResourceManagerClient-1.0\lrm-cli.jar --list-projects

Each command also has an abbreviation. The long version of each command starts with two dashes, --. The short version of each command starts with one dash, -.

For example, the previous example could have been written:

 java -jar C:\Lingoport\ResourceManagerClient-1.0\lrm-cli.jar -lp

To Note

The help provides a list of all available commands. The debug and the verbose flags can be applied to all commands.

 -d,--debug                     Log4j Debug mode

 -v,--verbose                   Verbose (console logging)

 -h,--help                      Displays Help.
                                C:/MyLocation/Setup.xml

Reference

This reference gives the short and the long version of each Resource Manager command and a usage example.


 -ak,--activate-kit             Activate a kit. Example: lrm-cli.jar -ak
                                --project-name MyProject --kit-version 2
 -au,--add-user                 Add a user. Example: lrm-cli.jar -au
                                --new-name MyName --new-password
                                MyPassword
 -cp,--create-project           Create a project from an xml file.
                                Example: lrm-cli.jar -cp -f
                                C:/MyLocation/Setup.xml
 -d,--debug                     Log4j Debug mode

 -dk,--deactivate-kit           Deactivate a specific kit. Example:
                                lrm-cli.jar -dk --project-name MyProject
                                --kit-version 2
 -dp,--delete-project           Delete a project. Example: lrm-cli.jar -dp
                                --project-name MyProject
 -dr,--dry-run                  Optional argument for --prep-kit. Runs
                                --prep-kit without altering the database.
 -ep,--export-project           Export the project into an xml file. If
                                option `-f` is not specified then the xml
                                file is saved to the default report
                                directory. Example: lrm-cli.jar -ep
 -f <string>                    Location of file (-f C:/MyLocation) or
                                file name with path (-f
                                C:/myfolder/myfile.xml)
 -h,--help                      Displays Help.

 -ii,--import-issues            Report on all the active import issues.
                                Example lrm-cli.jar -r -ii -pn
                                MyProjectName
 -ik,--import-kit               Import the translated kit. Example:
                                lrm-cli.jar -ik -pn MyProject -f
                                C:/KitLocation
 -ks,--kit-status               Report on all the incomplete and complete
                                kits. Example lrm-cli.jar -r -ks -pn
                                MyProjectName
 -ksi,--kit-status-incomplete   Report on all the incomplete kits. Example
                                lrm-cli.jar -r -ksi -pn MyProjectName
 -kv,--kit-version <number>     Specifies the kit version id when
                                activating or deactivating a kit.
 -lp,--list-projects            Lists all the projects to the console.
                                Example: lrm-cli.jar -lp
 -nn,--new-name <string>        Specifies either the new project name when
                                renaming a project (-rp) or the user name
                                when adding a user (-au).
 -np,--new-password <string>    Specifies the password when adding a user
                                (-au).
 -p,--password <string>         Optional argument used to log into the LRM
                                system as a different user than indicated
                                in the LrmUserConfig.xml file.
 -pi,--project-inspect          Report on all the files that were found
                                using the project definition for the
                                supplied project name. Example:
                                lrm-cli.jar -r -pi -pn MyProjectName
 -pk,--prep-kit                 Prep a kit. Example: lrm-cli.jar -pk
                                --project-name MyProject
 -pn,--project-name <string>    Specifies the project name.

 -ps,--project-status           Report on the productivity and status of
                                the supplied project name. Example
                                lrm-cli.jar -r -ps -pn MyProjectName
 -r,--report                    Run a report that is specified by an
                                additional option. If option `-f` is not
                                specified then the report is saved to the
                                default report directory.  Example:
                                lrm-cli.jar -r <report option>
 -rp,--rename-project           Rename a project. Example: lrm-cli.jar -rp
                                --project-name projectName --new-name
                                NewName
 -si,--source-issues            Report on the source issues for the
                                supplied project name. Example:
                                lrm-cli.jar -r -si -pn MyProjectName
 -u,--user <string>             Optional argument used to log into the LRM
                                system as a different user than indicated
                                in the LrmUserConfig.xml file.
 -up,--update-project           Update a project from an xml file.
                                Example: lrm-cli.jar -up -f
                                C:/MyLocation/Setup.xml
 -v,--verbose                   Verbose (console logging)