Closed (fixed)
Project:
Drush
Version:
All-Versions-2.0
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2009 at 16:28 UTC
Updated:
26 Jun 2019 at 09:39 UTC
Jump to comment: Most recent
Comments
Comment #1
moshe weitzman commentedwhat different behavior do you want?
Comment #2
joachim commentedAn extra option to download files to the current directory bare, or to a given directory, if this is not already possible?
If the folder "public_html" already exists, the commands to issue might be:
$ cd public_html/
$ drush dl --bare
or standing in the parent directory:
$ drush dl --destination="public_html" --bare
Comment #3
moshe weitzman commentedoh. thats only useful for core itself. i think we can expect users to use the mv command for this.
Comment #4
joachim commentedIt would be nice if installing a fresh drupal could be as simple as:
$ drush dl
$ drush install
Isn't the mv step a bit fiddly?
Comment #5
moshe weitzman commentedWe don't support install. That would be a duplicate feature request.
Comment #6
joachim commented...yet :)
A bunch of us at DrupalCampUK last weekend were talking about writing a drush command for install.
Is there already an issue for that?
Comment #7
psynaptic commentedI think we'll need to make a new drush hook then.
Comment #8
ethanw commentedIn the meantime, I'm currently using rsync and temp folders to install drush into a given directory (eg. one checked out from an existing repo):
you can put this into a bash script, something like "new-drupal.sh" and run it from any directory.
Comment #9
kenorb commentedThe same problem.
Can't install Drupal into current directory.
Comment #10
kenorb commentedTried:
But it removes the current dir.
Comment #11
kenorb commentedAnother try:
But the current dir is empty;/
Debug:
Comment #12
kenorb commentedIt works, great stuff!
Where: $(basename `pwd`) should return the name of current directory.
If you do 'ls -la', the current dir will be empty, but it's not: 'ls -al `pwd`'. If you re-enter the same folder, the files are there.
But remember, all files in current folder will be removed and overridden by Drupal core! Please be careful by adding '-y'!
Comment #13
kenorb commentedSome simple script for downloading and installing Drupal site from scratch:
Comment #16
murzHere is Linux Bash one-liner cli script for download and extract Drupal via Drush to current folder directly, without creating additional directory like in #12:
drush dl drupal --drupal-project-rename="../${PWD##*/}" -yComment #17
murzBut why this issue is marked as fixed? Hacks via providing current folder name with
..is not the good way - please provide standard command line argument for Drush script, that download Drupal directly to current folder! I can't reopen this issue, so I create a new feature request: https://www.drupal.org/project/drush/issues/2947845Comment #18
swathiyernagula commenteddrush dl drupal --drupal-project-rename=projectname
Above command is to download drupal core files in the above mentioned projectname folder
drush dl drupal --destination=path
Also, you can just type in drush help pm-download to see all the available options