Things of interest for CLI stuff:
#!/usr/bin/env elixir
Mix.install([ {:jason, "~> 1.4"}, ])
{output, status_code} = System.cmd("ls", ["-la"])
Path.join/2 __ENV__.file Path.dirname/1 Path.expand/1 File.lstat/1 File.read/1
argv = System.argv() OptionParser.parse(argv, [strict: [switch: :boolean], aliases: [s: :switch]]) exit({:shutdown, status_code}) # for shutting down with an error
iex> IO.ANSI.format(["Hello, ", :red, :bright, "world!"], true)
Things of interest for CLI stuff:
Use Mix.install like so Execute shell commands For handling files and paths: Parsing arguments For printing colors (from docs)