CLI Reference¶
Complete command-line interface reference for Rxiv-Maker.
Quick Help
Use rxiv <command> --help for detailed help on any command.
Quick Command Overview¶
| Command | Purpose | Common Use |
|---|---|---|
rxiv init | Create new manuscript | Starting new paper |
rxiv pdf | Generate PDF | Main workflow |
rxiv validate | Check manuscript | Before submission |
rxiv arxiv | Prepare arXiv package | arXiv uploads |
rxiv clean | Clean build files | Fresh rebuild |
rxiv track-changes | Compare versions | Revision tracking |
rxiv get-rxiv-preprint | Clone example | Learning |
rxiv check-installation | Verify setup | Troubleshooting |
Command Reference¶
rxiv init¶
Create a new manuscript project with template structure.
Parameters: - <name> - Project name (creates directory) - --force - Initialize in non-empty directory - --no-interactive - Use defaults without prompts
rxiv pdf¶
Generate publication-ready PDF from your manuscript.
Options: - [manuscript_path] - Path to manuscript directory (default: current) - --output-dir <path> - Custom output directory (default: output/) - --force-figures - Regenerate all figures ignoring cache - --skip-validation - Skip manuscript validation (faster builds) - --skip-figures - Use existing figure files - --track-changes <tag> - Track changes against git tag - --verbose - Detailed build output - --quiet - Minimal output - --debug - Enable debug logging - --draft - Add draft watermark
Output Files: - manuscript.pdf - Publication-ready PDF - manuscript.tex - Generated LaTeX source - Figures/ - Generated figure files - logs/ - Build logs and diagnostics
rxiv validate¶
Check manuscript for errors and issues.
Validation Checks:
- ✅ Structure - Required files and directory organization
- ✅ Syntax - Markdown formatting and enhanced syntax
- ✅ Citations - BibTeX entries and references
- ✅ Figures - File existence and script validity
- ✅ Cross-references - Figure, table, and equation references
- ✅ Mathematics - LaTeX math syntax
- ✅ Configuration - YAML metadata completeness
- ✅ Dependencies - Required packages and tools
Options: - [manuscript_path] - Path to manuscript (default: current) - --detailed - Show detailed validation report - --no-doi - Skip DOI validation for speed - --fix-common - Auto-fix common issues
Exit Codes: - 0 - No issues found - 1 - Warnings (proceed with caution) - 2 - Errors (must fix)
rxiv arxiv¶
Prepare arXiv-ready submission package.
Package Contents:
for_arxiv.zip
├── manuscript.tex # LaTeX source
├── manuscript.bbl # Compiled bibliography
├── Figures/ # All figures (PNG/PDF)
│ ├── figure_01.png
│ ├── figure_02.pdf
│ └── ...
└── [additional .sty/.cls if custom]
Options: - [manuscript_path] - Path to manuscript (default: current) - --output-dir <path> - Output directory - --arxiv-dir <path> - Custom arXiv staging directory - --zip-filename <name> - Custom zip filename - --no-zip - Skip zip creation
Submission Steps: 1. Run rxiv arxiv to generate package 2. Upload for_arxiv.zip to arXiv 3. Follow arXiv's processing instructions 4. Verify PDF compilation on arXiv
rxiv clean¶
Remove generated files and build artifacts.
Removes: - Generated PDFs - LaTeX auxiliary files (.aux, .log, .bbl, etc.) - Figure cache - Build logs - Temporary files
Options: - [manuscript_path] - Path to manuscript (default: current) - --all - Remove all generated files including cache - --figures-only - Only clean figure files - --cache-only - Only clean cache - --dry-run - Show what would be deleted without deleting
rxiv track-changes¶
Compare manuscript versions and generate diff.
Features: - Visual diff with additions/deletions highlighted - Works with git tags, commits, or branches - Generates standalone PDF showing changes - Preserves formatting and figures - Useful for reviewer responses
Options: - <old_ref> - Old git reference (tag/commit/branch) - <new_ref> - New git reference (tag/commit/branch) - --output <filename> - Custom output filename - --color-changes - Use colored diff - --no-highlight - Plain text diff
rxiv get-rxiv-preprint¶
Clone the official example manuscript.
# Clone official example
rxiv get-rxiv-preprint
# Creates: manuscript-rxiv-maker/
cd manuscript-rxiv-maker/MANUSCRIPT
rxiv pdf
What You Get: - Complete example manuscript - Production-ready figures - Dynamic content examples - All features demonstrated - Published on arXiv
Repository: manuscript-rxiv-maker
rxiv check-installation¶
Verify Rxiv-Maker installation and dependencies.
Checks: - ✅ Rxiv-Maker version - ✅ Python installation and version - ✅ LaTeX distribution - ✅ Required LaTeX packages - ✅ Python packages (matplotlib, pandas, etc.) - ✅ System commands (git, etc.) - ✅ File permissions
Options: - --detailed - Show comprehensive diagnostic information - --fix-issues - Attempt to auto-fix common issues
Global Options¶
Available for all commands:
rxiv <command> --help # Show command help
rxiv --version # Show version
rxiv --config <path> # Use custom config file
rxiv --no-color # Disable colored output
rxiv --log-level <level> # Set logging level (DEBUG, INFO, WARNING, ERROR)
Configuration¶
For 00_CONFIG.yml options, see the Configuration Reference.
Getting Help¶
Command-Specific Help¶
Documentation¶
- Installation Guide - Setup and prerequisites
- First Manuscript - Getting started
- User Guide - Complete feature documentation
- Troubleshooting - Common issues
Community Support¶
- GitHub Discussions - Q&A and community help
- GitHub Issues - Bug reports and feature requests
- Example Repository - Working example