I would like to check Phoenix
framework version from the command line like I check for Elixir (elixir -v)
Asked
Active
Viewed 3,462 times
5

palerdot
- 7,416
- 5
- 41
- 47
1 Answers
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
-
1Just as a heads up, the `phoenix.*` tasks are deprecated in v1.3. This may still work for now, but you will want to use `phx.*` tasks going forward. – Justin Wood Jun 09 '18 at 12:12
-
@JustinWood Thanks for the info. I have updated the answer with this info – palerdot Jun 09 '18 at 14:55
-
It is actually 1.3+ where you would want to use the `phx.*` tasks. – Justin Wood Jun 09 '18 at 14:57