Print the public Intermediate Representation of a Caravela domain as JSON. Intended for consumption by editors, LLMs, and external tooling that wants a structured view of the domain without parsing Elixir source.
mix caravela.ir MyApp.Domains.LibraryFlags:
--output PATH— write to a file instead of stdout--no-pretty— emit compact JSON (one line, no indentation)
The emitted shape is documented in Caravela.IR. Anonymous
functions inside policies are not included — only their metadata
(the fact that a rule exists, its arity, its target entity).