CLI Guide

Command Line Interface

Master MDCode's powerful command line tools. Automate tasks, process documents in batch, and integrate with your workflow.

Basic Commands

Document Processing

Core document operations

mdcode convertConvert documents to different formats
mdcode convert input.md -o output.pdf
mdcode previewPreview markdown in terminal
mdcode preview document.md
mdcode lintCheck markdown formatting
mdcode lint *.md

File Operations

File management tools

mdcode initInitialize new document
mdcode init my-doc.md
mdcode exportExport to various formats
mdcode export doc.md --format pdf
mdcode importImport from other formats
mdcode import doc.docx

Configuration

Setup and settings

mdcode configManage configuration
mdcode config set theme dark
mdcode init-configCreate config file
mdcode init-config
mdcode resetReset to defaults
mdcode reset --all

Automation Tools

Batch Processing

Process multiple files

  • Process multiple files at once
  • Custom file patterns
  • Recursive processing
  • Progress tracking
  • Error handling

Automation Scripts

Create custom workflows

  • Custom script creation
  • Task automation
  • Event triggers
  • Pipeline integration
  • Scheduled tasks

Version Control

Document versioning

  • Git integration
  • Version tracking
  • Change history
  • Branch management
  • Collaboration tools

Advanced Features

API Integration

Extend functionality

  • RESTful API access
  • Custom endpoints
  • Authentication
  • Rate limiting
  • Webhook support

Plugin System

Add custom features

  • Plugin development
  • Extension API
  • Hook system
  • Plugin management
  • Custom commands

Performance Tools

Optimize operations

  • Performance monitoring
  • Resource usage
  • Cache management
  • Optimization tools
  • Diagnostics

Development Tools

Development Kit

Build custom tools

  • SDK access
  • Development tools
  • Testing utilities
  • Documentation
  • Example projects

Integration Tools

Connect with other tools

  • CI/CD integration
  • Build tools
  • Deploy scripts
  • Cloud services
  • Third-party tools

CLI Reference

Explore our complete CLI reference documentation for detailed information about all available commands and options.