The purpose of this script is to read the versions of all the modules in a Mendix application. This script leverages the Mendix Platform SDK and requires the following information to work:
- A Mendix Personal Access Token with the mx:modelrepository:repo:read permission: https://user-settings.mendix.com/link/developersettings
- Your app's App ID: https://sprintr.home.mendix.com/link/myapps, Select your app → Click on “Settings” (left side navigation) → find App ID under the 'General' tab
- The name of the branch to check
Before you can use this project, ensure you have the following installed on your system:
-
Clone the repository:
git clone https://github.com/SamuelEganMX/MendixModuleVersionReader.git cd MendixModuleVersionReader -
Install dependencies:
In the root directory of the project, run the following command to install the necessary Node.js packages:
npm install
This project is written in TypeScript and must be compiled to JavaScript before running. To compile the TypeScript code:
-
Compile the TypeScript files:
Run the following command to compile the TypeScript files to JavaScript:
tsc
-
Running the compiled JavaScript:
After compiling the TypeScript files, you can run the generated JavaScript file using Node.js. To run the script:
node promptScript.js
-
Follow the Prompts:
The script will prompt you for the following inputs:
- Mendix token
- App ID
- Branch name
-
Output:
Once you provide the necessary inputs, the script will retrieve and display information about the app's modules that are from the Mendix App Store, including:
- Module name
- App Store version
- App Store GUIDs
If you'd rather skip the steps above and are on a windows machine, you can download the exe from the releases and run it using this command:
.\MendixModuleReader.exe