Elixir CLI
$ elixir Official Low RiskOfficial Elixir runtime launcher (elixir), compiler (elixirc), and companion mix build tool targeting the Erlang BEAM VM. Ideal for running .exs scripts and Mix project tasks (mix test, mix compile), though elixir itself has no JSON output mode.
brew install elixir Local BEAM VM runtime and Mix project toolchain; executes Elixir code and tests directly on disk.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports elixir -e and NO_COLOR=1 non-interactively, but lacks built-in --json diagnostics and mix tasks may prompt to install Hex/rebar3 on fresh environments.
elixir -eexecutes expressions headlessly- Fresh
mixinvocations can prompt for Hex/rebar3 unless--forceis used
Local runtime execution with optional mix format --check-formatted read-only checks; publishing requires explicit mix hex.publish.
- Read-only format/compile checks available via
mixflags
Easy install via Homebrew, apt, or mise/asdf across OSes, though it depends on a matching Erlang/OTP installation.
- Requires compatible Erlang/OTP runtime
Essential runtime and mix ecosystem entrypoint for BEAM projects.
- Bundled
mixhandles compilation, dependencies, formatting, and ExUnit tests
Official Elixir core team project maintained under Apache-2.0.
- Official
elixir-lang/elixirrepository
Excellent HexDocs documentation and mix help <task> discovery.
- Structured
hexdocs.pmreference and CLI--help
Security, Auth & Guardrails
Runtime execution needs no auth; Hex package publishing via mix hex.publish stores encrypted keys in ~/.hex/hex.config.
Apache-2.0 open-source language and runtime; completely free.
# Elixir CLI (elixir) Agent Rules - Always pass `-e` or a script path to `elixir`; never invoke `iex` in non-TTY agent shells. - Use `mix test --warnings-as-errors` and `mix format --check-formatted` for deterministic project verification.
Agent-Ready Command Recipes
Safe Read-Only Queries
elixir --version
Reports installed Elixir and BEAM OTP versions without starting an interactive shell.
elixir -e "IO.puts(System.version())"
Runs an inline expression in the BEAM VM and exits immediately.
Controlled Writes & Previews
mix test --warnings-as-errors
Compiles and executes the project test suite while failing on compiler warnings.
Strengths for Agents
- + Bundled
mixprovides formatting checks, compilation, and fast ExUnit test execution. - +
elixir -eandelixir --versionrun cleanly without interactive prompts.
Caveats & Pitfalls
- ! No built-in
--jsondiagnostic or test output format without third-party formatters. - ! First-time
mixruns in clean containers can prompt to installhexorrebar3unlessmix local.hex --forceis run first.