Skip to content

Get docs while in iex with h

When you’re in iex (the Elixir repl), you can ask for documentation like

Terminal window
iex > h HelloWorld

where HelloWorld is a module in your project with some module doc.

Ask what functions are exported from a module like

Terminal window
iex > exports(HelloWorld)

There’s a whole bunch of other iex helpers too.

Sources