This article explains how you can automatically download the latest Memtime version using the command-line tool curl. This can be useful if you're managing installations via MDM systems or automation scripts.
Why Use curl?
Using curl gives you:
- Automation: Automatically pull the latest software version.
- Efficiency: No need to manually check or download installers.
- Flexibility: Easily integrate into scripts or system management tools.
Options for Downloading
You can choose between JSON response links (for version checking) or direct download links (for immediate downloading).
1. JSON Response Links (Check Before Download)
These endpoints return the latest version info in JSON format. Ideal if you want to verify the version before downloading.
macOS ARM64:curl -s "https://api.memtime.com/release/v2/app/latest/macos/arm64"
macOS ARM64 dmg:curl -s "https://api.memtime.com/release/v2/app/latest/macos/arm64?type=dmg"
macOS x64:curl -s "https://api.memtime.com/release/v2/app/latest/macos/x64"
macOS x64 dmg: curl -s "https://api.memtime.com/release/v2/app/latest/macos/x64?type=dmg"
Windows ARM64:curl -s "https://api.memtime.com/release/v2/app/latest/windows/arm64"
Windows x64:curl -s "https://api.memtime.com/release/v2/app/latest/windows/x64"
Linux x64:curl -s "https://api.memtime.com/release/v2/app/latest/linux/x64"
2. Direct Download Links (Skip Version Check)
macOS ARM64:curl -L "https://api.memtime.com/release/v2/app/latest/macos/arm64/download"
macOS ARM64 dmg:curl -L "https://api.memtime.com/release/v2/app/latest/macos/x64/download?type=dmg"
macOS x64:curl -L "https://api.memtime.com/release/v2/app/latest/macos/x64/download"
macOS x64 dmg:curl -L "https://api.memtime.com/release/v2/app/latest/macos/x64/download?type=dmg"
Windows ARM64:curl -L "https://api.memtime.com/release/v2/app/latest/windows/arm64/download"
Windows x64:curl -L "https://api.memtime.com/release/v2/app/latest/windows/x64/download"
Linux x64:curl -L "https://api.memtime.com/release/v2/app/latest/linux/x64/download"
Expected Responses
When using the JSON response links, you will receive a JSON object containing:
-
version: The latest version number.
-
installer: The URL to download the installer for that version.
-
sha512: A hash for verifying the integrity of the downloaded file.
Example JSON Response:
{
"version": "4.4.6",
"installer": "https://releases.memtime.com/app/memtime/production/macos/arm64/4.4.6/stable/installer.pkg",
"sha512": "p6HCqXZmmXqVt4ZZMT6wiAZwPhPq0rURk2RvxvTCcZqVOYR5RNURckYrTOxM8yuVFc9A/4zdvDYzKTCmEu+GYQ=="
}
Conclusion
Using these links with curl allows for seamless integration into automated workflows, ensuring that you always have the latest version of the software with minimal manual intervention.
Need Help? If you have questions or issues with automated downloads, feel free to reach out to our support team at support@memtime.com.