Howt to create a CLI with Elixir?

Mix releases doesn’t require an Erlang installation in the target, but requires that you build it to the target.

In other words you need to build the release in a machine with the same architecture of the target, and this is usually done with docker.

The tricky bit is that the target needs to have all the static linked dependencies required at runtime, like for example a compatible version of OpenSSL or any other your application may require.

So, building a CLI in Elixir is not hard, the problem is to distribute it, and not even Bakeware solves it as I mentioned here:

I would love to be proven wrong and be told that Bakeware indeed solves the issue like Go and Rust :slight_smile:

2 Likes