** (Mix) The task "phoenix.new" could not be found

D:\Projects>mix phoenix.new blog
** (Mix) The task “phoenix.new” could not be found

D:\Projects>mix local.hex
Found existing archive: c:/Users/Dell-Latitude/.mix/archives/hex-0.13.0.
Are you sure you want to replace it with “https://repo.hex.pm/installs/1.3.0/hex-0.13.0.ez”? [Yn] Y

  • creating c:/Users/Dell-Latitude/.mix/archives/hex-0.13.0

D:\Projects>mix phoenix.new blog
** (Mix) The task “phoenix.new” could not be found

How can I fix this problem?


You have not installed the phoenix templates:

mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez

EDIT: You can setup a phoenix app manually without the templates if you want, just specify the versions in your mix.exs file as normal, but the templates (which are what add phoenix.new do the setup work for you, making it easy, but still entirely optional). :slight_smile:


Thank OvermindDL1


Hi. I followed these instructions and still the same error.

**PS G:\docs\github\elixir\discuss> mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
Are you sure you want to install “https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez”? [Yn] y
** (Mix) fetching from URIs require a checksum to be given

Could not run archive.install for:


Please download the file above to your current directory and run:

mix archive.install ./phoenix_new.ez

You can download it either with your browser or via the command line.

On Unix-like operating systems (Linux, macOS):

wget https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez


curl -o phoenix_new.ez https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez

On Windows / PowerShell (Windows 7 or later):

                       powershell -Command "Invoke-WebRequest https://github.com/phoenixframework/archives/raw-OutFile phoenix_new.ez/master/phoenix_new.ez -OutFile phoenix_new.ez"


powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez'/master/phoenix_new.ez', 'phoenix_new.ez')

Invoke-WebRequest https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez -OutFile phoenx_new.ez -OutFile phoenix_new.ez \github\elixir\discuss>
PS G:\docs\github\elixir\discuss> mix phx.new discuss
** (Mix) The task “phx.new” could not be found **

Where do you get those instructions from?

Those look quite ancient and even mix old style generator installation (phoenix_new) with new style generator invocation (phx.new)

Please follow the instructions provided here:


1 Like

Hi. I used what is marked in this thread and before that was following the the course on Udemy. The Complete Elixir and Phoenix Bootcamp. I will look into what you have provided.

That solution is 6 years old, the way how the phoenix generators get installed have changed since then.

Please use mix archive.install hex phx_new as described in the link I gave you.

I saw Thank you. The course is a few years old as well. I did not think to look at the documents website. Will try and remember that option going forward.

What “course”?

I’d carefully check the version of phoenix they require you to use, and if it is not ~> 1.5, I’d search for a different course and ask for a refund if paid.

If I recall correctly, phx.new became a thing with 1.4 and 1.5 removed phoenix.new utlimatively. 1.4 got released 2018. So anything that still uses phoenix.new is probably refering to 1.3 and massively outdated.

I will pass on your comments to the relevant people.

The Complete Elixir and Phoenix Bootcamp

The URL and imbedded name.

That course is based on Elixir 1.3 from the couple of previews I was able to click through.

I’d definitely ask for a refund, as “last updated 2022” is to be misinterpreted as “uses current versions”.

Given what I could see, I would not think that the course has been updated in the last 5 years.

PS: Never pay money for books, courses or certifications that do not tell you what versions to expect or certified for on the cover.