Using mix help to get docs for mix tasks (like Phoenix generators)

Notes

I love mix help to get the docs for mix tasks.

For example, I always forget the correct arguments for Phoenix’s generators. 🤔

  • You can type mix help phx.gen to get a list of available generator tasks, and then assuming you choose one,
  • Run mix help phx.gen.context

That’ll give you all the docs found in the task’s @moduledoc.

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.