DEV Community

Herminio Torres
Herminio Torres

Posted on

TIL: How to install a specific Phoenix version

When you open the Phoenix Framework website, you will see a section on the right-side called "Try it now", where you will install the Phoenix project generator.

$ mix archive.install hex phx_new
Enter fullscreen mode Exit fullscreen mode

Nice, but if I want to choose which version I want, So I need to uninstall any phx_new version installed first, and then I can choose which version I want to install.

$ mix archive.uninstall phx_new
$ mix archive.install hex phx_new VERSION
Enter fullscreen mode Exit fullscreen mode

Install Phoenix 1.7 release candidate and LiveView 0.18:

$ mix archive.install hex phx_new 1.7.0-rc.2
Enter fullscreen mode Exit fullscreen mode

Latest comments (3)

Collapse
 
byronsalty profile image
Byron Salty

Saved me much time and headache. Thanks!

Collapse
 
wlsf profile image
Willian Frantz

nice!!! thats good to know

Collapse
 
herminiotorres profile image
Herminio Torres

Oh yes, I just like to test the latest Phoenix version, and I didn't know how to install a specific version I like, so after that I thought I should write a post about it.