CLI : Command Line
The Chloros CLI provides powerful command-line access to the Chloros image processing engine, enabling automation, scripting, and headless operation for your imaging workflows.
Key Features
🚀 Automation - Script batch processing of multiple datasets
🔗 Integration - Embed in existing workflows and pipelines
💻 Headless Operation - Run without GUI
🌍 Multi-Language - Support for 38 languages
⚡ Parallel Processing - Dynamically scales to your CPU (up to 16 parallel workers)
Requirements
Operating System
Windows 10/11 (64-bit)
License
Chloros+ (paid plan required)
Memory
8GB RAM minimum (16GB recommended)
Internet
Required for license activation
Disk Space
Varies by project size
License Requirement: The CLI requires a paid Chloros+ subscription. Standard (free) plans do not have CLI access. Visit https://cloud.mapir.camera/pricing to upgrade.
Quick Start
Installation
The CLI is automatically included with the Chloros installer:
Download and run Chloros Installer.exe
Complete the installation wizard
CLI installed to:
C:\Program Files\Chloros\resources\cli\chloros-cli.exe
The installer automatically adds chloros-cli to your system PATH. Restart your terminal after installation.
First-Time Setup
Before using the CLI, activate your Chloros+ license:
Basic Usage
Process a folder with default settings:
Command Reference
General Syntax
Commands
process - Process Images
process - Process ImagesProcess images in a folder with calibration.
Syntax:
Example:
Process Command Options
<input-folder>
Path
Required
Folder containing RAW/JPG multispectral images
-o, --output
Path
Same as input
Output folder for processed images
-n, --project-name
String
Auto-generated
Custom project name
--vignette
Flag
Enabled
Enable vignette correction
--no-vignette
Flag
-
Disable vignette correction
--reflectance
Flag
Enabled
Enable reflectance calibration
--no-reflectance
Flag
-
Disable reflectance calibration
--ppk
Flag
Disabled
Apply PPK corrections from .daq light sensor data
--format
Choice
TIFF (16-bit)
Output format: TIFF (16-bit), TIFF (32-bit, Percent), PNG (8-bit), JPG (8-bit)
--min-target-size
Integer
Auto
Minimum target size in pixels for calibration panel detection
--target-clustering
Integer
Auto
Target clustering threshold (0-100)
--exposure-pin-1
String
None
Lock exposure for camera model (Pin 1)
--exposure-pin-2
String
None
Lock exposure for camera model (Pin 2)
--recal-interval
Integer
Auto
Recalibration interval in seconds
--timezone-offset
Integer
0
Timezone offset in hours
login - Authenticate Account
login - Authenticate AccountLogin with your Chloros+ credentials to enable CLI processing.
Syntax:
Example:
Special Characters: Use single quotes around passwords containing characters like $, !, or spaces.
Output:
logout - Clear Credentials
logout - Clear CredentialsClear stored credentials and logout from your account.
Syntax:
Example:
Output:
status - Check License Status
status - Check License StatusDisplay current license and authentication status.
Syntax:
Example:
Output:
export-status - Check Export Progress
export-status - Check Export ProgressMonitor Thread 4 export progress during or after processing.
Syntax:
Example:
Use Case: Call this command while processing is running to check export progress.
language - Manage Interface Language
language - Manage Interface LanguageView or change the CLI interface language.
Syntax:
Examples:
Supported Languages (38 Total)
en
English
English
es
Spanish
Español
pt
Portuguese
Português
fr
French
Français
de
German
Deutsch
it
Italian
Italiano
ja
Japanese
日本語
ko
Korean
한국어
zh
Chinese (Simplified)
简体中文
zh-TW
Chinese (Traditional)
繁體中文
ru
Russian
Русский
nl
Dutch
Nederlands
ar
Arabic
العربية
pl
Polish
Polski
tr
Turkish
Türkçe
hi
Hindi
हिंदी
id
Indonesian
Bahasa Indonesia
vi
Vietnamese
Tiếng Việt
th
Thai
ไทย
sv
Swedish
Svenska
da
Danish
Dansk
no
Norwegian
Norsk
fi
Finnish
Suomi
el
Greek
Ελληνικά
cs
Czech
Čeština
hu
Hungarian
Magyar
ro
Romanian
Română
uk
Ukrainian
Українська
pt-BR
Brazilian Portuguese
Português Brasileiro
zh-HK
Cantonese
粵語
ms
Malay
Bahasa Melayu
sk
Slovak
Slovenčina
bg
Bulgarian
Български
hr
Croatian
Hrvatski
lt
Lithuanian
Lietuvių
lv
Latvian
Latviešu
et
Estonian
Eesti
sl
Slovenian
Slovenščina
Automatic Persistence: Your language preference is saved to ~/.chloros/cli_language.json and persists across all sessions.
set-project-folder - Set Default Project Folder
set-project-folder - Set Default Project FolderChange the default project folder location (shared with GUI).
Syntax:
Example:
get-project-folder - Show Project Folder
get-project-folder - Show Project FolderDisplay the current default project folder location.
Syntax:
Example:
Output:
reset-project-folder - Reset to Default
reset-project-folder - Reset to DefaultReset the project folder to the default location.
Syntax:
Global Options
These options apply to all commands:
--backend-exe
Path
Auto-detected
Path to backend executable
--port
Integer
5000
Backend API port number
--restart
Flag
-
Force restart backend (kills existing processes)
--version
Flag
-
Show version information and exit
--help
Flag
-
Show help information and exit
Example with Global Options:
Processing Settings Guide
Parallel Processing
Chloros+ CLI automatically scales parallel processing to match your computer's capabilities:
How It Works:
Detects your CPU cores and RAM
Allocates workers: 2× CPU cores (uses hyperthreading)
Maximum: 16 parallel workers (for stability)
System Tiers:
High-End
16+ cores
32+ GB
Up to 16
Maximum speed
Mid-Range
8-15 cores
16-31 GB
8-16
Excellent speed
Low-End
4-7 cores
8-15 GB
4-8
Good speed
Automatic Optimization: The CLI automatically detects your system specs and configures optimal parallel processing. No manual configuration needed!
Debayer Methods
The CLI uses High Quality (Faster) as the default and recommended debayer algorithm:
High Quality (Faster) ⭐
⭐⭐⭐⭐
⚡⚡⚡
Edge-aware algorithm (default, recommended)
Vignette Correction
What it does: Corrects light falloff at image edges (darker corners common in camera imagery).
Enabled by default - Most users should keep this enabled
Use
--no-vignetteto disable
Recommendation: Always enable vignette correction to ensure uniform brightness across the frame.
Reflectance Calibration
Converts raw sensor values to standardized reflectance percentages using calibration panels.
Enabled by default - Essential for vegetation analysis
Requires calibration target panels in images
Use
--no-reflectanceto disable
PPK Corrections
What it does: Applies Post-Processed Kinematic corrections using DAQ-A-SD log data for improved GPS accuracy.
Disabled by default
Use
--ppkto enableRequires .daq files in project folder from MAPIR DAQ-A-SD light sensor.
Output Formats
TIFF (16-bit) ⭐
16-bit integer
Large
GIS analysis, photogrammetry (recommended)
TIFF (32-bit, Percent)
32-bit float
Very Large
Scientific analysis, research
PNG (8-bit)
8-bit integer
Medium
Visual inspection, web sharing
JPG (8-bit)
8-bit integer
Small
Quick preview, compressed output
Automation & Scripting
PowerShell Batch Processing
Process multiple dataset folders automatically:
Windows Batch Script
Simple loop for batch processing:
Python Automation Script
Advanced automation with error handling:
Processing Workflow
Standard Workflow
Input: Folder containing RAW/JPG image pairs
Discovery: CLI auto-scans for supported image files
Processing: Parallel mode scales to your CPU cores (Chloros+)
Output: Creates camera-model subfolders with processed images
Example Output Structure
Processing Time Estimates
Typical processing times for 100 images (12MP each):
Parallel Mode
5-10 min
i7/Ryzen 7, 16GB RAM, SSD (up to 16 workers)
Parallel Mode
10-15 min
i5/Ryzen 5, 8GB RAM, HDD (up to 8 workers)
Troubleshooting
CLI Not Found
Error:
Solutions:
Verify installation location:
Use full path if not in PATH:
Add to PATH manually:
Open System Properties → Environment Variables
Edit PATH variable
Add:
C:\Program Files\Chloros\resources\cliRestart terminal
Backend Failed to Start
Error:
Solutions:
Check if backend already running (close it first)
Check Windows Firewall is not blocking
Try different port:
Force restart backend:
License / Authentication Issues
Error:
Solutions:
Verify you have an active Chloros+ subscription
Login with your credentials:
Check license status:
Contact support: info@mapir.camera
No Images Found
Error:
Solutions:
Verify folder contains supported formats (.RAW, .TIF, .JPG)
Check folder path is correct (use quotes for paths with spaces)
Ensure you have read permissions for the folder
Check file extensions are correct
Processing Stalls or Hangs
Solutions:
Check available disk space (ensure enough for output)
Close other applications to free memory
Reduce image count (process in batches)
Port Already in Use
Error:
Solution:
Specify a different port:
FAQ
Q: Do I need a license for the CLI?
A: Yes! The CLI requires a paid Chloros+ license.
❌ Standard (free) plan: CLI disabled
✅ Chloros+ (paid) plans: CLI fully enabled
Subscribe at: https://cloud.mapir.camera/pricing
Q: Can I use the CLI on a server without GUI?
A: Yes! The CLI runs completely headless. Requirements:
Windows Server 2016 or later
Visual C++ Redistributable installed
Sufficient RAM (8GB minimum, 16GB recommended)
One-time GUI license activation on any machine
Q: Where are processed images saved?
A: By default, processed images are saved in the same folder as input in camera-model subfolders (e.g., Survey3N_RGN/).
Use -o option to specify different output folder:
Q: Can I process multiple folders at once?
A: Not directly in one command, but you can use scripting to process folders sequentially. See Automation & Scripting section.
Q: How do I save CLI output to a log file?
PowerShell:
Batch:
Q: What happens if I press Ctrl+C during processing?
A: The CLI will:
Stop processing gracefully
Shut down the backend
Exit with code 130
Partially processed images may remain in the output folder.
Q: Can I automate CLI processing?
A: Absolutely! The CLI is designed for automation. See Automation & Scripting for PowerShell, Batch, and Python examples.
Q: How do I check the CLI version?
A:
Output:
Getting Help
Command-Line Help
View help information directly in the CLI:
Support Channels
Email: info@mapir.camera
Pricing: https://cloud.mapir.camera/pricing
Complete Examples
Example 1: Basic Processing
Process with default settings (vignette, reflectance):
Example 2: High-Quality Scientific Output
32-bit float TIFF:
Example 3: Fast Preview Processing
8-bit PNG without calibration for quick review:
Example 4: PPK-Corrected Processing
Apply PPK corrections with reflectance:
Example 5: Custom Output Location
Process to different drive with specific format:
Example 6: Authentication Workflow
Complete authentication flow:
Example 7: Multi-Language Usage
Change interface language:
Last updated