Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Elixir CLI

$ elixir Official Low Risk
Elixir · Code & DevOps · Apache-2.0 · macos / linux / windows

Official 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.

FCRS-1.0 Score
75 /100
Good
Medium Confidence
Zero-Friction Install
brew install elixir
CLI vs MCP Decision CLI Only

Local BEAM VM runtime and Mix project toolchain; executes Elixir code and tests directly on disk.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

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 -e executes expressions headlessly
  • Fresh mix invocations can prompt for Hex/rebar3 unless --force is used
Trust & Safety 20 / 25

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 mix flags
Setup & Portability 12 / 15

Easy install via Homebrew, apt, or mise/asdf across OSes, though it depends on a matching Erlang/OTP installation.

  • Requires compatible Erlang/OTP runtime
Utility & Efficiency 12 / 15

Essential runtime and mix ecosystem entrypoint for BEAM projects.

  • Bundled mix handles compilation, dependencies, formatting, and ExUnit tests
Maintenance & Lineage 9 / 10

Official Elixir core team project maintained under Apache-2.0.

  • Official elixir-lang/elixir repository
Docs & Verifiability 8 / 10

Excellent HexDocs documentation and mix help <task> discovery.

  • Structured hexdocs.pm reference and CLI --help

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Runtime execution needs no auth; Hex package publishing via mix hex.publish stores encrypted keys in ~/.hex/hex.config.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Apache-2.0 open-source language and runtime; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Print Elixir and Erlang/OTP runtime versions
elixir --version

Reports installed Elixir and BEAM OTP versions without starting an interactive shell.

Evaluate a read-only Elixir expression
elixir -e "IO.puts(System.version())"

Runs an inline expression in the BEAM VM and exits immediately.

Controlled Writes & Previews

Run Mix tests with strict compiler warnings
mix test --warnings-as-errors

Compiles and executes the project test suite while failing on compiler warnings.

Strengths for Agents

  • + Bundled mix provides formatting checks, compilation, and fast ExUnit test execution.
  • + elixir -e and elixir --version run cleanly without interactive prompts.

Caveats & Pitfalls

  • ! No built-in --json diagnostic or test output format without third-party formatters.
  • ! First-time mix runs in clean containers can prompt to install hex or rebar3 unless mix local.hex --force is run first.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI