How can I check Phoenix version?

Hello, how can I check the Phoenix version ?

Thanks !

8 Likes

mix phoenix.new --version

12 Likes

Thank you !

2 Likes

Both commands

mix phoenix.new --version
mix phx.new --version

Will only give you the version of the installed phoenix generator, it will not tell you the version of phoenix in a project. To learn about the version of phoenix in a given project one has to check the mix.exs file to learn about the version constrains or mix.lock to learn the exact version.

12 Likes

Thanks

Well Explained. Thanks.

Are Phoenix generators backwards compatible? For example I have a Phoenix project I created with phx.new 1.6.6. I have moved the project to a machine with phx.new 1.6.10 installed. Will this cause issues when I run phx.gen?

The globally installed archive only powers mix phx.new. All the other mix tasks are pulled in per project with the local phoenix dependency, so there cannot be any mismatch/compatibility issues.

1 Like

Thank you.