Options
Command Line Options¶
This page provides a comprehensive reference of all command-line options available in LDA.
Global Options¶
These options are available for all LDA commands:
--config, -c¶
Specify a custom configuration file:
Default: lda_config.yaml in current directory
--verbose, -v¶
Enable verbose output for debugging:
Effect: Shows detailed execution information
--quiet, -q¶
Suppress non-error output:
Effect: Only shows errors and critical information
--help, -h¶
Show help for any command:
Command-Specific Options¶
init Command Options¶
Initialize a new LDA project:
--template, -t¶
Choose a project template:
Options: default, research, clinical, minimal
--name, -n¶
Set project name:
--analyst, -a¶
Set primary analyst:
--force, -f¶
Force initialization even if directory is not empty:
track Command Options¶
Track files in the manifest:
--message, -m¶
Add a tracking message:
--all, -a¶
Track all files in the section:
--force, -f¶
Force tracking even without changes:
--exclude¶
Exclude files matching pattern:
--dry-run¶
Show what would be tracked without making changes:
status Command Options¶
Show project status:
--format, -f¶
Output format:
Options: table (default), json, yaml
--section, -s¶
Show status for specific section:
--detailed, -d¶
Show detailed file information:
changes Command Options¶
Show file changes:
--since¶
Show changes since date:
--analyst¶
Filter changes by analyst:
--section¶
Show changes for specific section:
--diff¶
Show detailed diffs:
history Command Options¶
Show project history:
--limit, -n¶
Limit number of entries:
--output, -o¶
Export history to file:
--format, -f¶
Output format:
Options: json, csv, html
--file¶
Show history for specific file:
validate Command Options¶
Validate project integrity:
--fix¶
Attempt to fix issues:
--strict¶
Use strict validation rules:
--report¶
Generate validation report:
export Command Options¶
Export project data:
--output, -o¶
Output file (required):
--format, -f¶
Export format:
Options: csv, json, html, pdf
--sections¶
Export specific sections:
docs Command Options¶
Documentation management:
serve Subcommand¶
Serve documentation locally:
Options: - --port, -p: Port number (default: 8000) - --dev: Enable development mode with auto-reload - --host: Host address (default: 127.0.0.1)
build Subcommand¶
Build documentation:
Options: - --output, -o: Output directory (default: site) - --strict, -s: Fail on warnings - --clean, -c: Clean build directory first
Environment Variables¶
LDA_CONFIG¶
Default configuration file path:
LDA_PROJECT_ROOT¶
Override project root detection:
LDA_LOG_LEVEL¶
Set logging level:
Options: DEBUG, INFO, WARNING, ERROR
Configuration File Options¶
Many command-line options can be set in the configuration file:
# lda_config.yaml
cli:
default_format: json
verbose: true
colors: true
track:
auto_message: true
exclude_patterns:
- "*.tmp"
- ".DS_Store"
validate:
strict: true
auto_fix: true
Combining Options¶
Options can be combined for complex operations:
# Track with multiple options
lda track \
--all \
--exclude "*.tmp" \
--message "Complete analysis run" \
--verbose
# Export with filters
lda export manifest \
--sections sec01,sec02 \
--format json \
--output filtered_manifest.json \
--since "2024-01-01"
# Validate with reporting
lda validate \
--strict \
--fix \
--report validation_report.html \
--verbose
Option Precedence¶
When the same option is specified multiple times, precedence is:
- Command-line arguments (highest)
- Environment variables
- Configuration file
- Default values (lowest)
Example:
# Config file has: verbose: false
# Environment has: LDA_LOG_LEVEL=DEBUG
# Command line has: --quiet
lda status --quiet # Quiet mode wins
Boolean Options¶
Boolean options can be negated with --no- prefix:
# Disable colors even if config enables them
lda status --no-colors
# Disable auto-fix even if config enables it
lda validate --no-fix
See Also¶
- Commands - Detailed command documentation
- Configuration - Configuration file reference
- Environment Variables - Environment variable reference