title: Is there a Phoenix equivalent to Rails Console
body: <p>I'm just learning Phoenix and Elixir and I'm coming from Ruby/Rails where I work in the REPL using <code>pry</code> to inspect my database and application state.</p>
  
  <p>I'm trying to figure out how to interact with my database and models in a Phoenix app. I'm aware of <code>iex</code>, but I don't know how to use it inspect my app's database from the repl. Do I need to connect to it with ecto each time from the repl? Is there a <code>rails console</code> equivalent. I've checked the Phoenix docs, Elixir Dose, and the Ecto repo, but can't find what I'm looking for. Am I missing something?</p>
  
  <p>Edit: Based on the answer below I found <a href="http://www.phoenixframework.org/v0.6.2/docs/ecto-models#section-experiments-with-our-model" rel="noreferrer">this</a> section of the ecto docs. Based on this I can do something like <code>ArticlesApi.Repo.all ArticlesApi.Article</code></p>