With a combination of my_app eval "EXPR" and https://hexdocs.pm/elixir/Kernel.html#exit/1-cli-exits it’s easy to add functionality to your #elixir application to be run from the CLI in scripts or other automated situations.
I’ve just used them for enabling k8s health checks in an app that lacks any HTTP interface.