Run and compile workflows
Learning objective
- Execute Lucia code consistently in Python and JavaScript targets.
Key syntax
lucia run examples/00_features.lucia
lucia compile examples/00_features.lucia --target js --save
Examples
--target <python|javascript|js>selects output/runtime target.--savewrites generated output.--out <path>custom output path (requires--save).--debugprints full traceback.--show-pythonshows generated code for the active target:
- Python code when target is Python - JavaScript code when target is js/javascript
Common mistakes
- Using
--outwithout--save. - Running JS target without
nodein PATH.
Suggested practice
- Run same Lucia file in Python and JavaScript, compare outputs.
Related
- diagnostics
- getting-started