TIL: How to install a specific Phoenix version
Herminio Torres

Herminio Torres @herminiotorres

Location:
Remotely
Joined:
Oct 19, 2019

TIL: How to install a specific Phoenix version

Publish Date: Feb 7 '23
6 3

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

Comments 3 total

  • Willian Frantz
    Willian FrantzFeb 7, 2023

    nice!!! thats good to know

    • Herminio Torres
      Herminio TorresFeb 8, 2023

      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.

  • Byron Salty
    Byron SaltyJul 14, 2023

    Saved me much time and headache. Thanks!

Add comment