validate command analyzes Minecraft projects for errors, warnings, and adherence to best practices. It supports multiple validation suites and can process single projects or batch validate multiple projects.
Syntax
Arguments
The validation suite to run.Choices:
all- Run all available validation testsdefault- Default validation suiteaddon- Strict validation for marketplace add-onscurrentplatform- Validate against current platform versionsmain- Most commonly used validation tests (default)
Comma-separated list of test codes to exclude from validation.Example:
PATHLENGTH,PACKSIZEControl report aggregation across multiple projects.Choices:
aggregate- Aggregate reports and build content indexaggregatenoindex- Aggregate reports without building indextrue,1- Same asaggregatefalse,0- No aggregation
Options
Path to the project folder to validate.
Path to a packaged file (MCWorld, MCTemplate, MCPack, MCAddon) to validate.
Path where validation reports will be written.
Display validation results in the console instead of writing report files.
Number of worker threads for parallel validation. Use
1 for sequential processing.Show detailed logging information during validation.
Only validate projects whose names start with this prefix. Useful for batch processing subsets.
Type of output to generate.Choices:
noreports- Skip report file generation
Examples
Validate a single project folder
Expected Output
Expected Output
Validate with strict addon suite
Validate a packaged file
Batch validate multiple projects
./projects folder and creates aggregated reports.
Validate with exclusions
Validate with parallel processing
Sequential validation (debugging)
Validation Output
Console Output
When using-show, validation results appear in the console:
File Output
Without-show, reports are written to the output folder:
Validation Suites
- main (default)
- addon
- all
- currentplatform
The most commonly used validation suite. Checks for:
- Syntax errors in JSON files
- Missing required files
- Invalid references
- Common mistakes
- Basic best practices
Multi-Project Validation
The CLI supports three project detection modes:Single Project
Point to a folder containing a Minecraft project:Multi-Level Multi-Project
Parent folder with subfolders containing zip files:Children-of-Folder Multi-Project
Folder with multiple project subfolders or zip files:Performance Optimization
Thread Configuration
The--threads option controls parallelization:
- Default (8 threads): Good balance for most systems
- More threads (16+): Better for validating many small projects
- Sequential (1 thread): Better for debugging or memory-constrained environments
Memory Considerations
Each worker thread has a 16GB memory limit. For large projects, consider:- Using fewer threads
- Validating projects individually
- Using output files instead of
-show
Aggregated Reports
When validating multiple projects with theaggregate option:
Generated Files:
all.csv- All validation issues across projectsallprojects.csv- Summary statistics per projectmci/index.json- Content index of all projects
Exit Codes
| Code | Description |
|---|---|
0 | Validation passed with no errors |
53 | Internal processing error |
56 | Test failure |
57 | Validation error found |
Troubleshooting
Validation hangs on large projects
Validation hangs on large projects
Reduce the number of threads or use sequential processing:
Out of memory errors
Out of memory errors
Use fewer threads and output to files instead of console:
Some projects not validated
Some projects not validated
Use the
-psw option to filter or validate individually: