Modern CLI for Minecraft server operations and Modrinth mod management.
- Lifecycle: Start, stop, and restart via GNU screen.
- Mods: Automated updates and dependency resolution from Modrinth.
- Backups: Compressed archives with smart retention policies.
- Alerts: Discord webhook integration for status and errors.
- Health: Integrated diagnostic suite for paths and dependencies.
curl -sSL https://raw.githubusercontent.com/dacrab/craftops/main/install.sh | bashmake installdocker pull ghcr.io/dacrab/craftops:latestcraftops init-config # Initialize default config
craftops health-check # Run system diagnostics
craftops update-mods # Check and install mod updates
craftops server start|stop|restart # Control server process
craftops backup create|list # Manage server archivesGlobal Flags: --config, --debug, --dry-run
Generate a default config with craftops init-config, then edit ~/.config/craftops/config.toml:
[minecraft]
version = "1.20.1"
modloader = "fabric"
[paths]
server = "/home/minecraft/server"
mods = "/home/minecraft/server/mods"
backups = "/home/minecraft/backups"
[mods]
modrinth_sources = [
"https://modrinth.com/mod/fabric-api",
"https://modrinth.com/mod/lithium"
]
[backup]
enabled = true
max_backups = 5
[notifications]
discord_webhook = "" # Optional Discord integration- Linux or macOS
- GNU screen
- Java 17+ (installed on the host for non-Docker use)
MIT