warcraft-rs CLI
Unified command-line tool for working with World of Warcraft file formats.
Installation
From crates.io
# Install with all features
# Or install with specific features only
From Source
# Clone the repository
# Build with all features
# Or build with specific features only
# The binary will be at target/release/warcraft-rs
Using Cargo Install (Local)
# Install with all formats
# Or with specific formats only
Usage
The warcraft-rs CLI provides subcommands for each supported file format:
Available Formats
mpq- MPQ archive operations (implemented)dbc- DBC database operations (implemented)blp- BLP texture operations (planned)m2- M2 model operations (planned)wmo- WMO object operations (implemented)adt- ADT terrain operations (implemented)wdt- WDT map operations (implemented)wdl- WDL world operations (implemented)
MPQ Commands
# List files in an archive
# Extract files
# Create a new archive
# Show archive information
# Validate archive integrity
Global Options
-v, --verbose- Increase verbosity (can be repeated)-q, --quiet- Suppress all output except errors--help- Show help for any command
Shell Completions
Generate shell completions for your shell:
# Bash
# Zsh
# Fish
# PowerShell
Features
The CLI can be built with different feature flags to include only the formats you need:
default- Includes MPQ support onlyfull- Includes all format supportmpq- MPQ archive supportdbc- DBC database supportblp- BLP texture supportm2- M2 model supportwmo- WMO object supportadt- ADT terrain supportwdt- WDT map supportwdl- WDL world support
Examples
Working with MPQ Archives
# Extract all DBC files from an MPQ
| \
# Create a new MPQ with compressed files
# Validate multiple archives
for; do
done
Future Format Support
Once implemented, other formats will follow similar patterns:
# Convert BLP textures to PNG
# Export DBC to JSON
# Get model information
Development
See the main warcraft-rs repository for development information.