CLI Commands
How to use
In your terminal navigate where the PatchManager is located.
Run the program using
PatchManager.exe -i
Perform your commands.

Script for Create Patch and Upload to Host
This script will create the patch and then it will upload your App to your host automatically. Just put your game in the App folder.
@echo off
REM ====================================================
REM © Game Launcher - Create Patch and Upload to Host
REM ====================================================
REM ====================================================
REM Configuration
REM ====================================================
set "FTP_HOST=ftp.example.com"
set "FTP_USER=your_username"
set "FTP_PASS=your_password"
set "HOST_URL=https://game-launcher.net/GameLauncher/"
set "ENVIRONMENT=Release" REM Release or Beta
set "REMOTE_PATH=/public_html/GameLauncher/App/%ENVIRONMENT%"
REM ====================================================
REM Create the patch with PatchManager and then close it
REM ====================================================
(
echo --app-workspace
echo --url=%HOST_URL%
echo -c
echo --exit
) | PatchManager.exe -i
REM ====================================================
REM Upload files using WinSCP via a temporary script
REM ====================================================
(
echo open ftp://%FTP_USER%:%FTP_PASS%@%FTP_HOST%/
echo lcd "%CD%\App Workspace\%ENVIRONMENT%\Output"
echo cd %REMOTE_PATH%
echo put *
echo exit
) > winscp_script.txt
REM Execute WinSCP with the temporary script file using the full path
"C:\Program Files (x86)\WinSCP\winscp.com" /script=winscp_script.txt
REM Delete the temporary WinSCP script file
del winscp_script.txt
echo Process completed. Patch created and files uploaded.
pause
CLI Commands Documentation
Initialization
-i, --init
-i, --init
Description: Initialize the CLI.
General Commands
-v, --version
-v, --version
Description: Display the patch manager version.
-c, --create
-c, --create
Description: Create a new patch.
-s, --switch-workspace
-s, --switch-workspace
Description: Switch between Launcher and App workspace.
--app-workspace
--app-workspace
Description: Changes to the App workspace.
--launcher-workspace
--launcher-workspace
Description: Changes to the Launcher workspace.
-e, --switch-environment
-e, --switch-environment
Description: Switch between environments. (Release/Beta)
--release
--release
Description: Changes to the Release Environment.
--beta
--beta
Description: Changes to the Beta Environment.d
--cleanworkspace
--cleanworkspace
Description: Clean the workspace. Deletes ALL THE FOLDERS from the current workspace.
-r, --refresh
-r, --refresh
Description: Refresh the workspace. (Useful for seeing any new files or changes).
--settings
--settings
Description: Show current project info settings.
Project Settings Commands
--name <ProjectName>
--name <ProjectName>
Description: Set the project name.
--url <BaseDownloadURL>
--url <BaseDownloadURL>
Description: Set the base download URL.
--setrepair <true|false>
--setrepair <true|false>
Description: Enable or disable repair patch creation.
--setincremental <true|false>
--setincremental <true|false>
Description: Enable or disable incremental patch creation.
--setinstaller <true|false>
--setinstaller <true|false>
Description: Enable or disable installer patch creation.
--setbinarydiff <QualityLevel>
--setbinarydiff <QualityLevel>
Description: Set the binary diff quality (1 to 5).
--addignore <Path>
--addignore <Path>
Description: Add a path to ignored paths.
--removeignore <Path>
--removeignore <Path>
Description: Remove a path from ignored paths.
-o, --open
-o, --open
Description: Open the current workspace folder.
--no-update
--no-update
Description: Do not check for updates at start.
--exit
--exit
Description: Exit the CLI.
Last updated