Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drush command line option for download Drupal to current folder #3424

Closed
MurzNN opened this issue Mar 1, 2018 · 1 comment
Closed

Drush command line option for download Drupal to current folder #3424

MurzNN opened this issue Mar 1, 2018 · 1 comment

Comments

@MurzNN
Copy link

MurzNN commented Mar 1, 2018

Very often we need to download Drupal core via Drush directly to current folder via CLI, without Drupal-X.Y or any other subfolder.

At now there are exists only some ugly Bash command line hacks from here like:
drush dl -v -d --destination=".." --drupal-project-rename="$(basename pwd)"
drush dl drupal --drupal-project-rename="../${PWD##*/}" -y
but this is too hard way for newbies, and will work only on Linux.

Please provide standard Drush way for download Drupal directly to current folder!

Best will be having separate Drush command line argument like:
drush dl drupal --to-current-folder

Also will be good to extend arguments --destination=<path> and --drupal-project-rename for support current folder, marked as . (one dot).

@weitzman
Copy link
Member

weitzman commented Mar 1, 2018

For new projects, the expectation is that you are using Composer to download Drupal and any modules you need. Drush9 doesn't even have a dl command.

Drush8 does download to the current folder by default. Also, we are no longer taking feature requests for Drush8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants