We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Unable to Create project using command line.

Hi, i just insatall Phalcon and trying to create a new project using devtoll but unable to do that. I am using this docs "https://docs.phalcon.io/4.0/en/devtools".

Getting

C:\Windows\system32>phalcon ERROR: Please run composer install

C:\Windows\system32>phalcon --help ERROR: Please run composer install

C:\Windows\system32>d:

D:>cd xampp\htdocs\phalcon-todo

D:\xampp\htdocs\phalcon-todo>phalcon ERROR: Please run composer install

D:\xampp\htdocs\phalcon-todo>composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files 14 packages you are using are looking for funding. Use the composer fund command to find out more!

Can anyone help me on this?

Thanks Rajesh

The documentation states, right near the top, that you have to require phalcon devtools:

composer require phalcon/devtools

That creates a composer.json that tells composer what to install.

Once that's done, then you run composer install to install the libraries you previously required.

Then you can run phalcon - but you'll likely need to change some things as I think those instructions are for *nix systems, not Windows.

These codes are quite complicated for me.