title: Rails 5+ Show All Custom Rake Tasks From Rails CLI
body: <p>In Rails 5+, how do I show all custom Rake tasks from the <code>rails</code> CLI? Before Rails 5, all Rake tasks, including custom tasks, would be shown with <code>rake -T</code>. In Rails 5 and beyond, all <code>rake</code> commands have been replaced with <code>rails</code>. So naturally, <code>rails -T</code> will list available Rails commands. However, it is not listing my project's custom Rake tasks, even though running that task through the <code>rails</code> CLI will still function properly.</p>