CLI Commands
How to use
In your terminal navigate where the PatchManager is located.
Run the program using
PatchManager.exe -iPerform 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, --initDescription: Initialize the CLI.
General Commands
-v, --version
-v, --versionDescription: Display the patch manager version.
-c, --create
-c, --createDescription: Create a new patch.
-s, --switch-workspace
-s, --switch-workspaceDescription: Switch between Launcher and App workspace.
--app-workspace
--app-workspaceDescription: Changes to the App workspace.
--launcher-workspace
--launcher-workspaceDescription: Changes to the Launcher workspace.
-e, --switch-environment
-e, --switch-environmentDescription: Switch between environments. (Release/Beta)
--release
--releaseDescription: Changes to the Release Environment.
--beta
--betaDescription: Changes to the Beta Environment.d
--cleanworkspace
--cleanworkspaceDescription: Clean the workspace. Deletes ALL THE FOLDERS from the current workspace.
-r, --refresh
-r, --refreshDescription: Refresh the workspace. (Useful for seeing any new files or changes).
--settings
--settingsDescription: 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, --openDescription: Open the current workspace folder.
--no-update
--no-updateDescription: Do not check for updates at start.
--exit
--exitDescription: Exit the CLI.
Last updated