Download mode
The download mode tool facilitates downloading target files from a specified Rigi server.
Important
After each operation, the Rigi CLI tool returns a return code. The return code 0 indicates a successful operation. Any other return code signifies an error.
Parameters
-urlDescription: The URL of the project on the Rigi server.
Type: String.
Example:
-url https://xyz.rigi.io/projects/123.
-tokenImportant
This is the recommended authentication method.
If this parameter is present, both
-usernameand-passwordwill be ignored.Important
Access tokens for the Rigi CLI tool must have the following authorizations:
Update project settings.
Upload to workspace.
Download from workspace.
Tokenize strings.
Upload translations.
Download translations.

For more details, see the Project settings – Access tokens section.
This parameter has two options:
(Recommended) The file containing the access token for authentication (
-token-file).Example:
-token token.txt.Required: No.
The access token for authentication.
Example:
-token your-access-token.Required: No.
-usernameDescription: The username for authentication. It will be ignored if the
-tokenparameter is provided or the environment variableRIGICICD_USERNAMEis defined.Example:
-username jdoe@xyz.com.Required: No.
-passwordDescription: The password for authentication. It will be ignored if the
-tokenparameter is provided or the environment variableRIGICICD_PASSWORDis defined.Example:
-password "Mygreatsecret%%".Required: No.
-localesDescription: A comma-separated list of locale values that specify the languages or regions for which target files must be downloaded. If not defined, the target files for all locales will be downloaded unless
-nolocalesis set.Type: Comma-separated list.
Example:
-locales en,fr,de.
-nolocalesDescription: When specified, no target languages will be downloaded. This parameter overrides the
-localesparameter.Type: Flag.
Example:
-nolocales.
-masterDescription: Includes the (mastered) source files in the download.
Type: Flag.
Example:
-master.
-master-localeDescription: Downloads the master language as the target language.
Type: Flag.
Example:
-master-locale.
-pseudoDescription: Downloads files containing Rigi tokens that can be used for simulation or testing scenarios.
Type: Flag.
Example:
-pseudo.
-targetfolderDescription: Specifies the folder in which the downloaded ZIP files will be extracted.
Type: Directory path.
Example:
-targetfolder /path/to/target.
-workspaceIf you have multiple development teams working on different modules of an application, we recommend creating separate subfolders in the Rigi workspace for each module. This strategy is particularly beneficial when the teams have different localization resource files or follow different release cycles.
By using the
-workspaceparameter, you can target the specific subfolder where a team is working, ensuring that only the files in that folder are affected by the Rigi CLI tool.Description: Specifies the workspace subfolder with source files, from which the files should be generated. If no folder is specified, the files will be generated for all source files in the workspace.
Type: Directory path.
Example:
-workspace "module1".
-writestatesDescription: A comma-separated list of states. Supported parsers will only write strings with the listed states.
By default, all strings are written to the target resource files.
Type: Comma-separated list.
Possible values (case-insensitive): untranslated, translated, reviewed, validated.
Example:
-writestates translated,reviewed,validated. This will write all strings except those with the statusuntranslated.
-mtDescription: When specified, applies machine translation to untranslated strings before downloading. The applied MT engine will be selected according to the project's MT Profile (for details, see Project settings – Translation).
Type: Flag.
Required: No.
Example:
-mt.
Usage
To download the latest state of translation files, utilize the command structure in the following manner:
dotnet Rigi-CLI.dll download -url https://xyz.rigi.io/projects/123 -targetfolder C:\repos\repo -locales de-DE,pl-PL -username jdoe@xyz.com -password "xxxxxxxx" -master -pseudo