cancel
Showing results for 
Search instead for 
Did you mean: 

question about composer create-project --repository

question about composer create-project --repository

I'm trying to install magento 2.3.2 via composer and have come acrosss this article about how to do it.

 

I wonder what the last parameters of this command is:

composer create-project --repository=https://repo.magento.com/ magento/project-community-edition .

When I run composer help I get this:

create-project [options] [--] [<package>] [<directory>] [<version>]

So I wonder about magento/project-community-edition .

In the article it says run the command from the root directory, does that mean this will command will create a magento/project-community-edition subfolder?..

 

We have a public_html folder, so maybe I should run it like this (if run from root folder of web directory):???

composer create-project --repository=https://repo.magento.com/ public_html .

not sure what . do either, but I read that it is something with version

any ideas?

5 REPLIES 5

Re: question about composer create-project --repository

Hi @Loginname,

You need to run the command same on the public_html folder.

cd public_html/

Then run the command

composer create-project --repository=https://repo.magento.com/ magento/project-community-edition .

"." Means all files/folders will be copied in the current directory.

For more info:

https://devdocs.magento.com/guides/v2.3/install-gde/composer.html

I hope it will help you!

Re: question about composer create-project --repository

Hi @Loginname,

Did it work for you?

Re: question about composer create-project --repository

When I do that it creates a folder called "project-community-edition" in my current directory. kinda sucks

Honestly since there's no documentation of this in the magento docs i just fix it with a mv command.

Just move the files recursively and with the permissions to the directory above. force it so it overwrites and you're good.

 

 

Re: question about composer create-project --repository

@mykkal I hope you find the solution but the trouble you faced, I think due to you missed dot '.' in command 

composer create-project --repository=https://repo.magento.com/ magento/project-community-edition .

 

 

Re: question about composer create-project --repository

Forgot to reply those years ago but thank you!