'How to check Phoenix (Elixir framework) installed version?

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



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1