CLI Usage
Command-line access to all Xberg extraction features.
Installation
Section titled “Installation”curl -fsSL https://raw.githubusercontent.com/xberg-io/xberg/main/scripts/install.sh | bashbrew trust xberg-io/tapbrew install xberg-io/tap/xbergcargo install xberg-clidocker pull ghcr.io/xberg-io/xberg-cli:latestdocker run -v $(pwd):/data ghcr.io/xberg-io/xberg-cli:latest extract /data/document.pdfgo get github.com/xberg-io/xberg/packages/go@latest- ✅ Text extraction (PDF, Office, images, 100 formats)
- ✅ OCR with Tesseract
- ✅ HTTP API server (
servecommand) - ✅ MCP protocol server (
mcpcommand) - ✅ Chunking, quality scoring, language detection
- ❌ Embeddings - Not available via CLI flags. Use config file or Docker image.
Docker Images:
- All features enabled including embeddings (ONNX Runtime included)
Global Flags
Section titled “Global Flags”Log Level
Section titled “Log Level”--log-level controls log verbosity and overrides RUST_LOG.
# Set log level to debug for troubleshootingxberg --log-level debug extract document.pdf
# Suppress all but error messagesxberg --log-level error batch documents/*.pdf
# Trace-level logging for maximum detailxberg --log-level trace extract document.pdfValid levels: trace, debug, info (default), warn, error.
Colored Output
Section titled “Colored Output”Output is colored by default. Disable with NO_COLOR:
# Disable colored outputNO_COLOR=1 xberg extract document.pdfBasic Usage
Section titled “Basic Usage”Extract from Single File
Section titled “Extract from Single File”# Extract text content to stdoutxberg extract document.pdf
# Specify MIME type (auto-detected if not provided)xberg extract document.pdf --mime-type application/pdfBatch Extract Multiple Files
Section titled “Batch Extract Multiple Files”# Extract from multiple filesxberg batch doc1.pdf doc2.docx doc3.txt
# Batch extract all PDFs in directoryxberg batch documents/*.pdf
# Batch extract recursivelyxberg batch documents/**/*.pdfOutput Formats
Section titled “Output Formats”# Output as plain text (default for extract)xberg extract document.pdf --format text
# Output as JSON (default for batch)xberg batch documents/*.pdf --format json
# Extract single file as JSONxberg extract document.pdf --format json
# Output as TOON wire format (token-efficient alternative to JSON)xberg extract document.pdf --format toonContent Output Format
Section titled “Content Output Format”--content-format (alias: --output-format) sets the format of extracted text content:
# Extract as plain text (default)xberg extract document.pdf --content-format plain
# Extract as Markdownxberg extract document.pdf --content-format markdown
# Extract as Djot markupxberg extract document.pdf --content-format djot
# Extract as HTMLxberg extract document.pdf --content-format html
# Combine content format with wire formatxberg extract document.pdf --content-format markdown --format toon--content-format formats result.content; --format controls the wire format of the entire response (text, json, or toon).
OCR Extraction
Section titled “OCR Extraction”Enable OCR
Section titled “Enable OCR”# Enable OCR (overrides config file setting)xberg extract scanned.pdf --ocr true
# Disable OCRxberg extract document.pdf --ocr falseForce OCR
Section titled “Force OCR”Force OCR even for PDFs with text layer:
# Force OCR to run regardless of existing textxberg extract document.pdf --force-ocr trueOCR Language Selection
Section titled “OCR Language Selection”--ocr-language is backend-agnostic and overrides config-file or default settings.
| Backend | Code format | Examples |
|---|---|---|
| Tesseract | ISO 639-3 (three-letter) | eng, fra, deu, spa, jpn |
| PaddleOCR | short codes / language names | en, ch, french, korean, thai, cyrillic |
# French OCR with Tesseract (default backend)xberg extract --ocr true --ocr-language fra document.pdf
# Chinese OCR with PaddleOCRxberg extract --ocr true --ocr-backend paddle-ocr --ocr-language ch document.pdf
# Thai OCR with PaddleOCRxberg extract --ocr true --ocr-backend paddle-ocr --ocr-language thai document.pdf
# German OCR with Tesseractxberg extract --ocr true --ocr-language deu document.pdf
# Override config file language with Spanishxberg extract document.pdf --config xberg.toml --ocr-language spaOCR Configuration
Section titled “OCR Configuration”OCR options live in the config file; CLI flags override:
xberg extract scanned.pdf --config xberg.toml --ocr trueSee Configuration Files for backend, language, and Tesseract options.
Configuration Files
Section titled “Configuration Files”Using Config Files
Section titled “Using Config Files”Xberg auto-discovers xberg.toml by walking up from the current directory. For YAML or JSON, pass --config explicitly.
xberg extract document.pdf # auto-discovers xberg.tomlSpecify Config File
Section titled “Specify Config File”Load TOML, YAML (.yaml/.yml), or JSON via --config:
xberg extract document.pdf --config my-config.tomlxberg extract document.pdf --config xberg.yamlxberg extract document.pdf --config my-config.jsonInline JSON Config
Section titled “Inline JSON Config”Inline JSON is merged after config file, before individual flags:
# Inline JSON (applied after config file)xberg extract document.pdf --config-json '{"ocr":{"backend":"tesseract"},"chunking":{"max_chars":1000}}'
# Base64-encoded JSON (useful in shells where quoting is awkward)xberg extract document.pdf --config-json-base64 eyJvY3IiOnsiYmFja2VuZCI6InRlc3NlcmFjdCJ9fQ==Both extract and batch support --config-json and --config-json-base64.
Example Config Files
Section titled “Example Config Files”xberg.toml:
use_cache = trueenable_quality_processing = true
[ocr]backend = "tesseract"language = "eng"
[ocr.tesseract_config]psm = 3
[chunking]max_characters = 1000overlap = 100xberg.yaml:
use_cache: trueenable_quality_processing: true
ocr: backend: tesseract language: eng tesseract_config: psm: 3
chunking: max_characters: 1000 overlap: 100xberg.json:
{ "use_cache": true, "enable_quality_processing": true, "ocr": { "backend": "tesseract", "language": "eng", "tesseract_config": { "psm": 3 } }, "chunking": { "max_characters": 1000, "overlap": 100 }}Batch Processing
Section titled “Batch Processing”Process multiple files with batch:
# Extract all PDFs in directoryxberg batch documents/*.pdf
# Extract PDFs recursively from subdirectoriesxberg batch documents/**/*.pdf
# Extract multiple file typesxberg batch documents/**/*.{pdf,docx,txt}Batch with Output Formats
Section titled “Batch with Output Formats”# Output as JSON (default for batch command)xberg batch documents/*.pdf --format json
# Output as plain textxberg batch documents/*.pdf --format textBatch with OCR
Section titled “Batch with OCR”# Batch extract with OCR enabledxberg batch scanned/*.pdf --ocr true
# Batch extract with force OCRxberg batch documents/*.pdf --force-ocr true
# Batch extract with quality processingxberg batch documents/*.pdf --quality trueBatch with Content Format
Section titled “Batch with Content Format”# Batch extract with djot formattingxberg batch documents/*.pdf --output-format djot --format json
# Batch extract as Markdownxberg batch documents/*.pdf --output-format markdown --format json
# Batch extract as HTMLxberg batch documents/*.pdf --output-format html --format jsonAdvanced Features
Section titled “Advanced Features”Language Detection
Section titled “Language Detection”# Extract with automatic language detectionxberg extract document.pdf --detect-language true
# Disable language detectionxberg extract document.pdf --detect-language falseContent Chunking
Section titled “Content Chunking”# Split content into chunks for LLM processingxberg extract document.pdf --chunk true
# Specify chunk size and overlapxberg extract document.pdf --chunk true --chunk-size 1000 --chunk-overlap 100
# Output chunked content as JSONxberg extract document.pdf --chunk true --format jsonQuality Processing
Section titled “Quality Processing”# Apply quality processing for improved formattingxberg extract document.pdf --quality true
# Disable quality processingxberg extract document.pdf --quality false
# Batch extraction with quality processingxberg batch documents/*.pdf --quality trueCaching
Section titled “Caching”# Extract with result caching enabled (default)xberg extract document.pdf
# Extract without caching resultsxberg extract document.pdf --no-cache true
# Clear all cached resultsxberg cache clear
# View cache statisticsxberg cache statsEnvironment Diagnostics
Section titled “Environment Diagnostics”doctor checks whether the backends in your config will actually run on this machine, before the first document. Each check reports pass, warn, fail, or skip with a one-line reason; warnings are actionable but never fail the command, and it exits nonzero only on failures.
# Probe the backends from xberg.toml (or the discovered config)xberg doctor
# JSON output for bug reportsxberg doctor --format json
# Also remove stray files from xberg-owned cache dirsxberg doctor --cleanTesseract checks tessdata per configured language, PaddleOCR verifies model checksums, VLM checks the API key and endpoint reachability (no billable call), and layout detection runs one real RT-DETR inference. Models that aren’t downloaded yet report skip rather than failing.
When XBERG_CACHE_DIR is set, cache inspection and --clean are disabled (reported as skip): the override is a raw path and xberg cannot verify it owns the directory.
Extraction Override Flags
Section titled “Extraction Override Flags”extract and batch accept the flags below; they take precedence over config-file settings.
OCR Flags
Section titled “OCR Flags”| Flag | Description |
|---|---|
--ocr <true|false> |
Enable or disable OCR. Defaults to tesseract backend when enabled. |
--ocr-backend <BACKEND> |
OCR backend: tesseract, paddle-ocr, sceptre, candle-trocr, candle-paddleocr-vl, candle-paddleocr-vl-15, candle-glm-ocr, candle-deepseek-ocr, or vlm. |
--ocr-language <LANG> |
OCR language code. Sceptre accepts its eight group tokens or ISO aliases such as eng, deu, tel, and kan. |
--force-ocr <true|false> |
Force OCR even if the document has an existing text layer. |
--ocr-auto-rotate <true|false> |
Automatically rotate images before OCR based on detected orientation. |
--disable-ocr <true|false> |
Disable OCR entirely, even for images. |
Candle-based backends (candle-trocr, candle-paddleocr-vl, candle-paddleocr-vl-15, candle-glm-ocr, candle-deepseek-ocr) are pure-Rust VLM and vision-transformer OCR engines. No ONNX Runtime required; GPU-accelerated on Metal (macOS) and CUDA (Linux). They ship compiled into the CLI/Docker image by default — no extra install or feature flag needed. Model weights download automatically from Hugging Face on first use.
xberg extract scanned.pdf --ocr true --ocr-backend paddle-ocr --ocr-language chxberg extract document.pdf --force-ocr true --ocr-auto-rotate trueChunking Flags
Section titled “Chunking Flags”| Flag | Description |
|---|---|
--chunk <true|false> |
Enable or disable text chunking. |
--chunk-size <N> |
Maximum chunk size in characters (default: 1000). |
--chunk-overlap <N> |
Overlap between consecutive chunks in characters (default: 200). |
--chunking-tokenizer <MODEL> |
Tokenizer model for token-based chunk sizing (for example Xenova/gpt-4o). Implicitly enables chunking. Requires the chunking-tokenizers feature. |
xberg extract document.pdf --chunk true --chunk-size 512 --chunk-overlap 50xberg extract document.pdf --chunking-tokenizer "Xenova/gpt-4o"Output Flags
Section titled “Output Flags”| Flag | Description |
|---|---|
--content-format <FORMAT> |
Content output format: plain, markdown, djot, or html. Controls how extracted text is formatted. (Deprecated alias: --output-format) |
--include-structure <true|false> |
Include hierarchical document structure in results. |
xberg extract document.pdf --content-format markdown --include-structure trueLayout Detection Flags
Section titled “Layout Detection Flags”| Flag | Description |
|---|---|
--layout |
Enable layout detection with default settings (RT-DETR v2). Use --layout false to explicitly disable. Requires the layout-detection feature. |
--layout-confidence <FLOAT> |
Layout detection confidence threshold (0.0 - 1.0). |
--layout-table-model <MODEL> |
Table structure model: tatr (default), slanet_wired, slanet_wireless, slanet_plus, slanet_auto, disabled. |
xberg extract document.pdf --layout --layout-confidence 0.7Acceleration Flags
Section titled “Acceleration Flags”| Flag | Description |
|---|---|
--acceleration <PROVIDER> |
ONNX Runtime execution provider for model inference: auto, cpu, coreml, cuda, or tensorrt. |
# Use CoreML on macOS for GPU accelerationxberg extract document.pdf --acceleration coreml
# Use CUDA on Linux with NVIDIA GPUxberg extract document.pdf --acceleration cudaPage Flags
Section titled “Page Flags”| Flag | Description |
|---|---|
--extract-pages <true|false> |
Extract pages as a separate array in results. |
--page-markers <true|false> |
Insert page marker comments into the main content string. |
xberg extract document.pdf --extract-pages true --page-markers true --format jsonImage Flags
Section titled “Image Flags”| Flag | Description |
|---|---|
--extract-images <true|false> |
Enable image extraction from documents. |
--target-dpi <N> |
Target DPI for image normalisation (36 - 2400). |
xberg extract document.pdf --extract-images true --target-dpi 300PDF Flags
Section titled “PDF Flags”| Flag | Description |
|---|---|
--pdf-password <PASSWORD> |
Password for encrypted PDFs. Can be specified multiple times for multiple passwords. |
--pdf-extract-images <true|false> |
Extract images embedded in PDF pages. |
--pdf-extract-metadata <true|false> |
Extract PDF metadata (title, author, etc.). |
xberg extract encrypted.pdf --pdf-password "secret"xberg extract document.pdf --pdf-extract-images true --pdf-extract-metadata trueToken Reduction Flags
Section titled “Token Reduction Flags”| Flag | Description |
|---|---|
--token-reduction <LEVEL> |
Token reduction intensity: off, light, moderate, aggressive, or maximum. Reduces token count for LLM consumption. |
# Aggressive token reduction for cheaper LLM processingxberg extract document.pdf --token-reduction aggressive
# Maximum compression (lossy)xberg extract document.pdf --token-reduction maximumQuality and Detection Flags
Section titled “Quality and Detection Flags”| Flag | Description |
|---|---|
--quality <true|false> |
Enable quality post-processing for improved formatting. |
--detect-language <true|false> |
Enable automatic language detection on extracted text. |
Cache Flags
Section titled “Cache Flags”| Flag | Description |
|---|---|
--no-cache <true|false> |
Disable extraction result caching. |
--cache-namespace <NAMESPACE> |
Cache namespace for tenant isolation. |
--cache-ttl-secs <SECONDS> |
Per-request cache TTL in seconds (0 = skip cache). |
Concurrency Flags
Section titled “Concurrency Flags”| Flag | Description |
|---|---|
--max-concurrent <N> |
Limit parallel extractions in batch mode. |
--max-threads <N> |
Cap all internal thread pools (Rayon, ONNX intra-op, batch semaphore). Useful for constrained environments. |
xberg batch documents/*.pdf --max-concurrent 4 --max-threads 8Email Flags
Section titled “Email Flags”| Flag | Description |
|---|---|
--msg-codepage <N> |
Windows codepage fallback for MSG files without codepage metadata. Common values: 1250 (Central European), 1251 (Cyrillic), 1252 (Western). |
xberg extract message.msg --msg-codepage 1251Output Options
Section titled “Output Options”Standard Output (Text Format)
Section titled “Standard Output (Text Format)”# Extract and print content to stdoutxberg extract document.pdf
# Extract and redirect output to filexberg extract document.pdf > output.txt
# Batch extract as textxberg batch documents/*.pdf --format textJSON Output
Section titled “JSON Output”# Output as JSONxberg extract document.pdf --format json
# Batch extract as JSON (default format)xberg batch documents/*.pdf --format jsonJSON Output Structure:
{ "content": "Extracted text content...", "metadata": { "mime_type": "application/pdf" }}Error Handling
Section titled “Error Handling”The CLI returns non-zero exit codes on error. Use shell idioms:
# Check for extraction errorsxberg extract document.pdf || echo "Extraction failed"
# Continue processing even if one file fails (bash)for file in documents/*.pdf; do xberg batch "$file" || continuedoneExamples
Section titled “Examples”Extract Single PDF
Section titled “Extract Single PDF”xberg extract document.pdfBatch Extract All PDFs in Directory
Section titled “Batch Extract All PDFs in Directory”xberg batch documents/*.pdf --format jsonOCR Scanned Documents
Section titled “OCR Scanned Documents”xberg batch scans/*.pdf --ocr true --format jsonExtract with Quality Processing
Section titled “Extract with Quality Processing”xberg extract document.pdf --quality true --format jsonExtract with Chunking
Section titled “Extract with Chunking”xberg extract document.pdf --config xberg.toml --chunk true --chunk-size 1000 --chunk-overlap 100 --format jsonBatch Extract Multiple File Types
Section titled “Batch Extract Multiple File Types”xberg batch documents/**/*.{pdf,docx,txt} --format jsonExtract with Config File
Section titled “Extract with Config File”xberg extract document.pdf --config /path/to/xberg.tomlDetect MIME Type
Section titled “Detect MIME Type”xberg detect document.pdfDocker Usage
Section titled “Docker Usage”Use ghcr.io/xberg-io/xberg-cli:latest for the CLI image, or ghcr.io/xberg-io/xberg:latest for the full image (also includes the CLI).
Basic Docker
Section titled “Basic Docker”# Extract document using Docker with mounted directorydocker run -v $(pwd):/data ghcr.io/xberg-io/xberg-cli:latest \ extract /data/document.pdf
# Extract and save output to host directory using shell redirectiondocker run -v $(pwd):/data ghcr.io/xberg-io/xberg-cli:latest \ extract /data/document.pdf > output.txtDocker with OCR
Section titled “Docker with OCR”# Extract with OCR using Dockerdocker run -v $(pwd):/data ghcr.io/xberg-io/xberg-cli:latest \ extract /data/scanned.pdf --ocr trueDocker Compose
Section titled “Docker Compose”docker-compose.yaml:
version: "3.8"
services: xberg: image: ghcr.io/xberg-io/xberg-cli:latest volumes: - ./documents:/input command: extract /input/document.pdf --ocr trueRun:
docker-compose upPerformance Tips
Section titled “Performance Tips”Optimize Extraction Speed
Section titled “Optimize Extraction Speed”# Extract without quality processing for faster speedxberg extract large.pdf --quality false
# Use batch for processing multiple filesxberg batch large_files/*.pdf --format jsonManage Memory Usage
Section titled “Manage Memory Usage”# Disable caching to reduce memory footprintxberg extract large_file.pdf --no-cache true
# Compress output to save disk spacexberg extract document.pdf | gzip > output.txt.gzTroubleshooting
Section titled “Troubleshooting”Check Installation
Section titled “Check Installation”# Display installed versionxberg --version
# Display help for commandsxberg --helpCommon Issues
Section titled “Common Issues”Issue: “Tesseract not found”
When using OCR, Tesseract must be installed:
# Install Tesseract OCR engine on macOSbrew install tesseract
# Install Tesseract OCR engine on Ubuntusudo apt-get install tesseract-ocrIssue: “File not found”
Ensure the file path is correct and accessible:
# Check if file exists and is readablels -la document.pdf
# Extract with absolute pathxberg extract /absolute/path/to/document.pdfServer Commands
Section titled “Server Commands”Start API Server
Section titled “Start API Server”serve starts the HTTP REST API:
# Start server on default host (127.0.0.1) and port (8000)xberg serve
# Start server on specific host and port (-H / -p are short forms)xberg serve --host 0.0.0.0 --port 8000xberg serve -H 0.0.0.0 -p 8000
# Start server with custom configuration filexberg serve --config xberg.toml --host 0.0.0.0 --port 8000Server Endpoints
Section titled “Server Endpoints”The server provides the following endpoints:
POST /extract- Extract text from uploaded filesPOST /batch- Batch extract from multiple filesGET /detect- Detect MIME type of fileGET /health- Health checkGET /info- Server informationGET /cache/stats- Cache statisticsPOST /cache/clear- Clear cache
See API Server Guide for full API details.
Start MCP Server
Section titled “Start MCP Server”mcp starts a Model Context Protocol server for AI agents:
# Start MCP server with stdio transport (default for Claude Desktop)xberg mcp
# Start MCP server with HTTP transportxberg mcp --transport http
# Start MCP server on specific HTTP host and portxberg mcp --transport http --host 0.0.0.0 --port 8001
# Start MCP server with custom configuration filexberg mcp --config xberg.toml --transport stdioThe MCP server provides tools for AI agents:
extract- Extract text from a file pathextract- Extract text from base64-encoded bytesextract_batch- Extract from multiple files
See API Server Guide for MCP integration details.
Embeddings
Section titled “Embeddings”Generate vector embeddings using pre-trained models. Input via --text or stdin.
# Generate embeddings for a single textxberg embed --text "hello world" --preset balanced
# Generate embeddings with a specific presetxberg embed --text "document content" --preset fast
# Batch embed multiple textsxberg embed --text "first document" --text "second document" --preset quality
# Read from stdinecho "hello world" | xberg embed --preset balanced
# Output as text instead of JSONxberg embed --text "hello" --preset balanced --format textAvailable presets: fast, balanced (default), quality, multilingual.
Chunking Command
Section titled “Chunking Command”Split text with configurable size and overlap. Input via --text or stdin.
# Chunk text with default settingsxberg chunk --text "long text content to be split into chunks..."
# Specify chunk size and overlapxberg chunk --text "long text..." --chunk-size 512 --chunk-overlap 50
# Use markdown-aware chunkingxberg chunk --text "# Heading\n\nParagraph..." --chunker-type markdown
# Use a tokenizer model for token-based sizingxberg chunk --text "long text..." --chunking-tokenizer "Xenova/gpt-4o"
# Read from stdincat document.txt | xberg chunk --chunk-size 1000
# Output as text instead of JSONxberg chunk --text "long text..." --format text
# Use a config file for chunking settingsxberg chunk --text "long text..." --config xberg.tomlShell Completions
Section titled “Shell Completions”Tab-completion scripts for bash, zsh, and fish:
# Generate bash completionsxberg completions bash
# Generate zsh completionsxberg completions zsh
# Generate fish completionsxberg completions fish
# Install bash completionseval "$(xberg completions bash)"
# Install zsh completions (add to .zshrc)eval "$(xberg completions zsh)"API Utilities
Section titled “API Utilities”Dump OpenAPI Schema
Section titled “Dump OpenAPI Schema”Output the OpenAPI 3.1 specification — useful for code generation and API client tooling.
# Print OpenAPI schema as JSONxberg api schema
# Save to filexberg api schema > openapi.jsonList Supported Formats
Section titled “List Supported Formats”List supported formats with extensions and MIME types:
# List formats as a tablexberg formats
# List formats as JSONxberg formats --format jsonCache Management
Section titled “Cache Management”View Cache Statistics
Section titled “View Cache Statistics”# Display cache usage statisticsxberg cache stats
# Display statistics for specific cache directoryxberg cache stats --cache-dir /path/to/cache
# Output cache statistics as JSONxberg cache stats --format jsonClear Cache
Section titled “Clear Cache”# Remove all cached extraction resultsxberg cache clear
# Clear specific cache directoryxberg cache clear --cache-dir /path/to/cache
# Clear cache and display removal detailsxberg cache clear --format jsonWarm Model Cache
Section titled “Warm Model Cache”Pre-download ML models (PaddleOCR, layout detection, embeddings, NER) for offline use — useful for containerized deployments.
Default cache directories:
- Linux:
~/.cache/xberg/{module}(or$XDG_CACHE_HOME/xberg/{module}) - macOS:
~/Library/Caches/xberg/{module} - Windows:
%LOCALAPPDATA%/xberg/{module}
Override with XBERG_CACHE_DIR or --cache-dir.
NER warming downloads exported GLiNER artifacts from xberg-io/gliner-models,
not arbitrary GLiNER source repositories. If that Hugging Face repository is
private or not publicly readable, configure credentials supported by hf-hub
first.
# Download all OCR and layout models eagerlyxberg cache warm
# Download to a specific cache directoryxberg cache warm --cache-dir /path/to/cache
# Also download all 4 embedding model presets (fast, balanced, quality, multilingual)xberg cache warm --all-embeddings
# Download a specific embedding model presetxberg cache warm --embedding-model balanced
# Download the default GLiNER NER model aliasxberg cache warm --ner
# Download a specific xberg GLiNER alias or catalog idxberg cache warm --ner-model fast
# Output download results as JSONxberg cache warm --format jsonModel Manifest
Section titled “Model Manifest”Manifest of expected model files with SHA256 checksums and sizes — for cache integrity checks or scripted pre-population.
# Output manifest as JSON (default)xberg cache manifest
# Output manifest as human-readable textxberg cache manifest --format textGetting Help
Section titled “Getting Help”CLI Help
Section titled “CLI Help”# Display general CLI helpxberg --help
# Display command-specific helpxberg extract --helpxberg batch --helpxberg detect --helpxberg formats --helpxberg version --helpxberg embed --helpxberg chunk --helpxberg completions --helpxberg serve --helpxberg mcp --helpxberg cache --helpxberg cache stats --helpxberg cache clear --helpxberg cache warm --helpxberg cache manifest --helpxberg api schema --helpVersion Information
Section titled “Version Information”# Display version numberxberg --version
# Show version with JSON outputxberg version --format jsonNext Steps
Section titled “Next Steps”- API Server Guide - API and MCP server setup
- Chunking - Split text for RAG
- Embeddings - Semantic vectors for search
- Language Detection - Multilingual document analysis
- Token Reduction - Optimize for LLMs
- Quality Processing - Filter low-quality text
- PDF Form Fields - Extract form data
- Plugin Development - Extend Xberg functionality
- API Reference - Programmatic access