Skip to main content

morphir generate

  • Usage: morphir generate [FLAGS]

Generate code from Morphir IR

Flags​

  • -t --target <TARGET> — Target language or format
  • -i --input <INPUT> — Path to the Morphir IR file or directory
  • -o --output <OUTPUT> — Install task outputs into this directory after the run. Canonical output stays under .morphir/out
  • --config <CONFIG> — Explicit config file path
  • --project <PROJECT> — Declared workspace-relative member path or exact project name
  • --option <KEY=VALUE>… — Override a backend option as KEY=VALUE. May be repeated
  • --from-partial-compile — Generate from the last compile even when it compiled an explicit selection of source files rather than the project
  • --json — Output as JSON
  • --json-lines — Output as JSON Lines (streaming)