5

I would like to check Phoenix framework version from the command line like I check for Elixir (elixir -v)

palerdot
  • 7,416
  • 5
  • 41
  • 47

1 Answers1

11

I was able to do it with

# for >= v1.3
mix phx.new --version

# for < v1.3
mix phoenix.new --version

after navigating to the folder containing the phoenix app. I got the cue from here. Hope it helps someone facing the same query.

In case, you already have older version of phx.new, you can try

mix local.hex
mix archive.install hex phx_new

commands to upgrade phx.new installer

palerdot
  • 7,416
  • 5
  • 41
  • 47