Align mode
In this mode, uploading target files containing translations is followed by an alignment. This mode is used only in some specific cases.
Use case:
Developers have implemented a new feature and uploaded the new source files to Rigi. The new strings have the Untranslated status in all target languages. The developers now pre-translate (using machine translations) newly added strings in their environment and use Rigi to review them. In this case, the Align mode allows them to upload target files containing machine-translated strings and align the untranslated strings in Rigi with translations from the machine-translated files.
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.
-repoDescription: The path to the repository (local working directory).
The path can be absolute or relative to the location where the tool is executed.
Example:
-repo .\src.Required: Yes.
-targetfilesDescription: The path to the text file in which each line contains a file path to the file that must be uploaded to the workspace. The file path can be a relative file path with respect to this file or an absolute path. The files will be added to the workspace but not assigned a file ID.
Type: String.
Example:
-targetfiles targets.txt
-localesDescription: A comma-separated list of locales (e.g., de-DE, nl-NL) for which an alignment must be performed. If this parameter is omitted, all locales will be aligned.
Type: Comma-separated list.
Example:
-locales de-DE,ja-JP.
-cleanupDescription: Removes all unassigned files from the workspace before adding the new files that are uploaded with this call.
Type: Flag.
Example:
-cleanup.Default:
False.
-alignstateDescription: The state that will be assigned to the target strings after the alignment.
Possible values (case-insensitive): Untranslated, Translated, Reviewed, Validated.
Example:
-alignstate Translated.Default:
Translated.
-replacestatesDescription: Strings that match one of the listed states will be overwritten during the alignment.
Type: Comma-separated list of states.
Possible values (case-insensitive): Untranslated, Translated, Reviewed, Validated.
Example:
-replacestates Untranslated,Translated.Default:
Untranslated.
-tempfolderDescription: The path to the temporary folder used to store the
align.zipfile before uploading it to the server. If not specified, the app will create a temporary folder, and the-tempkeepparameter will always befalse.The generated temporary folder will have the following name: rigi_{tenantname_rigi_io}_{projectid}.
Example:
-tempfolder .\temp.Required: No.
Default: A temporary folder created by the app.
-tempkeepDescription: Indicates whether to keep the content in the temporary folder
-tempfolderafter the operation is complete. Can be used for debugging purposes.Required: No.
Default: If
-tempfolderis not provided, the value isfalse.
-timeout <seconds>Description: Checks whether the server is busy before starting the upload for the specified time.
Required: No.
Default:
120seconds.