iex
IEX, short for Interactive Elixir, is a command line tool used for running Elixir code interactively. It is a powerful feature of the Elixir programming language.
-
IEX allows you to execute code in real-time, providing a REPL (Read-Eval-Print Loop) environment where you can experiment, debug, and test Elixir code snippets.
-
It is installed along with the Elixir programming language and can be accessed by simply typing "iex" in the command prompt.
-
With IEX, you can load and evaluate modules, call functions, and even define new functions and modules on-the-fly.
-
It provides a friendly and colorful shell that supports autocompletion, syntax highlighting, and history navigation, enhancing productivity and ease of use.
-
IEX also offers features like documentation lookup, allowing you to quickly access information about any function, module, or built-in keyword.
-
It supports multiple shells, including a standard shell (iex) and an alternative shell designed for embedding (iex -S mix).
-
IEX has built-in tools for debugging, such as breakpoints, tracing, and inspecting process states, enabling effective problem-solving and code troubleshooting.
-
It supports hot code swapping, which means you can update and reload modules without the need to restart the entire Elixir application.
-
IEX provides a friendly community, allowing users to ask questions, share their knowledge, and learn from other Elixir developers.
-
It is an indispensable tool for Elixir developers, helping them write, test, and explore code in an interactive and efficient manner.
List of commands for iex:
-
iex:tldr:478e5 iex: Start and load Mix project files.$ iex -S mixtry on your machineexplain this command
-
iex:tldr:b51fe iex: Start a session that remembers history.$ iex --erl "-kernel shell_history enabled"try on your machineexplain this command