Deepanshu Goyal
Deepanshu Goyal

Reputation: 2813

CakePHP Install Specific Version

I am trying to install CakePHP by referring to their website link: http://book.cakephp.org/3.0/en/installation.html

I use the below command to install Cake, which it does, but it installs the latest version, i.e, 3.2.0

composer create-project --prefer-dist cakephp/app my_app_name

I need to install the version 3.0.0 for a project. Does anybody know how to install cake by specific version?

Upvotes: 6

Views: 5713

Answers (4)

Tony Lisanti
Tony Lisanti

Reputation: 67

This worked for me:

composer create-project --prefer-dist cakephp/cakephp:3.0.0 myapp

I used /cakephp instead of /app

Upvotes: 0

John C
John C

Reputation: 21

that's work to me...

composer create-project --prefer-dist cakephp/app ProjectName 3.0

specify version after project name.

Upvotes: 2

drmonkeyninja
drmonkeyninja

Reputation: 8540

If you run composer help create-project it states that:-

You can also specify the version with the package name using = or : as separator.

So you can use either of the following commands (similar to installing a package with require):-

composer create-project --prefer-dist cakephp/app:3.0.0 my_app_name

Or:-

composer create-project --prefer-dist cakephp/app=3.0.0 my_app_name

You can also use * notation as a wildcard in the version number. So if you want to make sure you get all the most recent bug fixes of the 3.0.x branch:-

composer create-project --prefer-dist cakephp/app:3.0.* my_app_name

Upvotes: 9

Salines
Salines

Reputation: 5769

Try

composer create-project --prefer-dist cakephp/app=3.0.0 my_app_name 

Upvotes: 2

Related Questions