Batch Text-to-Code

Generate React/TSX page code from scratch in batch, with support for reference materials and prompt expansion.

meitu batch text-code

Note: Batch processing is available from meitu-cli v2.1.1 onward. Please upgrade if you're on an older version.

Usage Examples

# Config file mode (config file required)
meitu batch text-code \
  --config ./batch.text-code.yaml \
  --output-dir ./code \
  --json

Config File Example

version: 1
defaults:
  outputDir: ./code
items:
  - prompt: Create a dark-themed login page
  - prompt: Create a product list page with filtering

Parameter Reference

ParameterRequiredDescription
--output-dirYesOutput directory
--configYesPath to YAML/JSON config file (config file required)
--concurrencyNoType: number; Default: 3; Number of parallel tasks
--max-retriesNoType: number; Default: 0; Number of retries on failure
--skip-existNoSkip existing output files
--dry-runNoPreview the plan without executing
--no-progressNoDisable per-task progress logging
--jsonNoOutput results in JSON format
--json-outputNoWrite results to a specified JSON file
--skill-nameNoSkill name for server-side attribution