Prerequisites
Before installing MCReleaser CLI, ensure you have:- Java 17 or higher installed on your system
- Access to download the MCReleaser JAR file
You can verify your Java version by running
java -version in your terminal.Installation
Download the JAR file
Download the latest The JAR file will be located at
mcreleaser.jar file from the releases page or build it from source.To build from source:cli/target/mc-releaser-cli-*.jarUsage
Basic Example
Publish a Minecraft plugin to multiple platforms:With Platform Configuration
Include platform-specific tokens and settings:Environment Variables as Properties
Conversion rules:- Remove underscores
- Convert to camelCase
- Prefix with
-D
| Environment Variable | CLI Property |
|---|---|
GITHUB_TOKEN | -DgithubToken |
MODRINTH_PROJECT | -DmodrinthProject |
GAME_VERSIONS | -DgameVersions |
HANGAR_KEY | -DhangarKey |
CURSEFORGE_TOKEN | -DcurseforgeToken |
Script Example
Create a reusable shell script for easier execution:publish.sh
For detailed configuration options and environment variables, see the Configuration section.
Troubleshooting
Java Version Issues
If you encounter errors about unsupported class versions:Missing Dependencies
If the JAR fails to find required libraries, ensure thelib/ directory is in the same location as the JAR file.
Next Steps
Configuration
Learn about all available configuration options
Platforms
Configure platform-specific settings