ragepkg
v0.1.1
Published
 
Readme
ragepkg
Multiplatform CLI tool to aid in developing RageMP servers.
Requirements
See package.json for specific versions.
- Node.js
- pnpm
Installation
pnpm install ragepkgUsage
ragepkg <command> [options]ensure
Downloads RageMP server binaries into a target directory. Downloaded files are cached under ~/.cache/ragepkg/<platform>/ (by default) and reused on subsequent runs. If a cached file's size differs from the remote, a warning is printed suggesting --force.
Options:
| Flag | Description | Default |
|------|-------------|---------|
| -d, --dir <directory> | Directory to place server files in | process.cwd() |
| -p, --platform <platform> | Target platform: auto, linux, windows | auto |
| -f, --force | Skip cache and re-download even if binaries already exist | false |
| -c, --cache <directory> | Override the cache directory | ~/.cache/ragepkg/<platform> |
Examples:
# Download server files for the current platform into ./server
ragepkg ensure --dir ./server
# Force re-download for Linux into a specific directory
ragepkg ensure --dir ./server --platform linux --forceclean
Removes RageMP server binaries from a target directory for the given platform.
Options:
| Flag | Description | Default |
|------|-------------|---------|
| -d, --dir <directory> | Directory containing the server files | process.cwd() |
| -p, --platform <platform> | Target platform: auto, linux, windows | auto |
Examples:
# Remove server files for the current platform
ragepkg clean --dir ./server
# Remove Linux server files from a specific directory
ragepkg clean --dir ./server --platform linuxpurge
Removes all cached RageMP server files from the cache directory.
Options:
| Flag | Description | Default |
|------|-------------|---------|
| -c, --cache <directory> | Cache directory to purge | ~/.cache/ragepkg |
Examples:
# Purge the default cache
ragepkg purge
# Purge a custom cache directory
ragepkg purge --cache ./my-cache