CLI Usage
MDXE provides a powerful CLI for processing MDX files.
Installation
npm install -g mdxe
Basic Commands
# Process single file
mdxe file.mdx
# Watch mode
mdxe file.mdx --watch
# Process directory
mdxe content/
Configuration
Create mdxe.config.js
:
module.exports = {
watch: {
enabled: true,
ignore: ['**/node_modules/**']
}
}
Common Options
--version
: Show version--help
: Show help--watch
: Enable watch mode--config
: Specify config file
See CLI API Reference for all options.