6

Seems like searching for the answer on Google just leads me to how to create make files and profiles.

I know how to do that. I also know how to install Drupal with drush.

But I want to install one of the many existing Drupal profiles, like Drupal Commons, Commerce Kick Start, etc. with drush.

I would have thought it would have been just an easy process to find the profile's makefile and run that. Drush will take care of the rest. But I can't find the repositories where these makefiles sits.

Some direction would be appreciated.

7

To build on what Patrick said, if the profile is not already in your profile directory, you can download it with Drush dl: drush dl drupal --drupal-project-rename=drupal cd drupal drush dl commons drush site-install commons --db-url=mysql://user:pwd@localhost/db_name --site-name=Example --account-name=admin --account-pass=pwd You do not need to run drush make, because drupal.org runs it prior to making the profile available for download. Thus, when you run drush dl commons, you get all of the components that the Drupal Commons distribution needs to install.

  • OK, we getting somewhere. Seems like my dependency of wanting just a makefile for something like 'Commons' to run is out the door. so this leads to another question: Where can I find a list of profiles I can do like this? – Quentin Campbell Apr 24 '15 at 19:32
  • 1
    Run drush dl commons as I suggest above; you will find the makefile inside of the files that are downloaded. If you move it to another folder, you could then run drush make on it to rebuild the distribution. You might also want to look at drupal.org/project/composer_generate – greg_1_anderson Apr 25 '15 at 1:59
1

If the profile is already in your drupal/profiles directory you can just pass it into site-install.

drush site-install your_profile --db-url=mysql://user:pwd@localhost/db_name --site-name=Example --account-name=admin --account-pass=pwd
  • As I said, I don't want to have the need to download the whole profile first. I want to run the drush makefile that will do it for me. – Quentin Campbell Apr 24 '15 at 19:13
0

Maybe Drush Make is what you're looking for?

There are various questions (and answers) tagged with .

And the answer to Changing Drush make default subdir for install profiles may also help.

Does this answer your question?

  • I know drush-make. Now I want to drush-make one of the the many installation profiles that is already out there. Some thing like drush make drupal-commons.makefile (pseudo example), and the rest is taken care of. But where would I find the drupal-commons.makefile? – Quentin Campbell Apr 24 '15 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.