usage of shell like environments for drupal administration. This could involve drush, mysql, memcached or any other command line tool. Also questions about bootstraping modules or debugging might land here.

learn more… | top users | synonyms

1
vote
3answers
32 views

Executing multiple drush commands

I manage a lot of Drupal sites and drush is a lifesaver. I usually script what I need done and then loop over all of the sites. Many times I need to execute several Drush commands on the same site. ...
0
votes
2answers
29 views

Drush can't connect to local MySQL through socket on WAMP

Trying to set up Drush with in a local dev environment on Windows 7 and can't get MySQL properly configured. A test command I've been running via Cygwin, with the resulting error, is as follows: $ ...
1
vote
2answers
39 views

Drush returns “sh: php: command not found, code: 127”

Drush returns "sh: php: command not found, code: 127" I just managed to get Drush working finally on my MacBook-Pro (2008). For the longest time Drush would not interact with the Drupal ...
5
votes
1answer
260 views

How to dump a single table from database using drush?

I'm aware of mysqldump utility, but is there any way of dumping a single table from database using drush (e.g. for sql-dump, sql-sync)?
0
votes
1answer
110 views

What is the Aegir make_working_copy SCM option mean?

If one creates a platform and chooses to preserve the working copy, does this initiate a .git clone that the aegir user from CLI, could update and merge branches to? Create a new platform: ...
3
votes
1answer
111 views

How to install drush on a restricted shell access account? Media Temple shared environment

I'm working with a client that has a media temple server (gs)-gridserver. its a shared environment, but i do have access to the shell. How would i go about installing drush for an account like this? ...
1
vote
2answers
124 views

What is the ideal way to restore a previous version of a site with Backup & Migrate files?

So I've been backing up my sites with backup and migrate and I always found weird that the backup&migrate .mysql files are smaller than the "drush sql-dump" sql files. Does anyone know why? Also ...
0
votes
1answer
67 views

How to sort drush status messages in test scripts?

I'm using drush to run test scripts agains my drupal 7 installation. Simply calling: $ drush scr path/to/myScript.php My script is using drupal_set_message() to output status of my test scripts. ...
0
votes
1answer
109 views

Command option to ignore errors during drush dl <list of modules>

Just trying to start creating prefab lists (of modules etc.) and building my site development environment at the moment. I'm trying to call sudo drush dl (list of modules) and it works until it can't ...
2
votes
1answer
210 views

Custom drush command not being loaded

I'm creating a custom drush command in my module but it's not being seen. Wondering if someone would know why. The module is enabled. It seems the hook_drush_command() is never being called for my ...
0
votes
1answer
76 views

What is wrong with this drush command in Drupal 7 Ubercart 3 to delete orders in bulk via command line?

I am trying to delete my Ubercart 3 orders in bulk via the command line with just a one liner: for XX in {1..12}; do drush ev 'uc_order_delete($XX)' -v; done; It beats having to do it via the bulk ...
4
votes
1answer
214 views

How do you disable modules in bulk via Drush matching a specific pattern?

Currently I have to disable all of the ubercart modules in bulk, but there are too many of them to do it one at a time via the modules page. And doing it via drush doesn't disable every module related ...
2
votes
2answers
617 views

Bootstrapping Drupal from the command line

Here is what I'm trying to do : Write a php script that import external data into drupal. Run that script every night with a cron that executes it using php, not wget. In other words, I need my ...
3
votes
2answers
298 views

How to convert a command line table (drush output) to any spreadsheet? (csv,excel,ods)

I often use commands like drush pm-list or drush views-list to get some listings of what my current project is using and for sake of usability I would like to import that stuff in a spreadsheet ...
1
vote
1answer
42 views

Edit nodes from command line

I am looking for a way to manage nodes from command line. I am aware of drush and drush-entity, and it can do the job in a way, but I thought it could be easier having the nodes stored in files ...
1
vote
4answers
1k views

How to access a remote site using the command line (with drush)?

I don´t know how to use drush nor the command line, so I´ve started to read some tutorials, and watch some videos. I´ve installed the drush windows installer, because I have windows. The thing is ...
2
votes
5answers
485 views

How to inspect a variable when testing with `drush test-run`.

When testing with my SimpleTests, I want to inspect a variable. var_dump() and the likes are not being rendered in the output of Drush, Xdebug interactive debugger does not work due to the simulated ...
1
vote
2answers
209 views

Creating nodes and interacting with drupal from the command line

I have a requirement where I will have to insert content (nodes) from the command line. I know that drupal bootstraping is needed to acces the environment, and this can be done using PHP. Is there ...
2
votes
2answers
1k views

Drupal's 7 sites folder with its mysterious permissions and ownership

The problem is that I had to give sites directory and all subfolders and files of it permissions 777 in order for drupal to recognize this folder and not redirect me to install.php page. But on a ...
3
votes
3answers
763 views

Drupal bootstrap running from command line

I am using Drupal 7 functions externally, and I followed this tutorial for using Drupal functions externally; it works perfectly. In test.php file I have loaded/included Drupal bootstrap. When I ...
5
votes
3answers
1k views

Can Xdebug be triggered by Drush commands?

I'm running into an issue with my Features modules and installation profile when installing the site with drush si. There are a number of probably related issues in the Features issue queue, but none ...
2
votes
2answers
148 views

Need web framework with full command line capability

Currently I'm building large website with Drupal 7. Most website is corporate and organization website. I need to develop basic web application as quick as possible. I'm using drush together with ...
2
votes
1answer
1k views

Drush one line command to create field

I want to create field with name img for content type announcement From the documentation, I can type drush field-create announcement. After that typing the field name img, after that type 2, lastly ...
1
vote
1answer
187 views

Command line submit node

Previously I'm using combination of cURL and sed to submit to Drupal 6 website. It was very flexible but it will works if I submit very frequently. If I want to submit 2 posts in one week, it will ...
0
votes
2answers
53 views

Safely pass user input to a server-application?

(This question may actually belong on StackOverflow, but I exclusively interested in how this can be safely done in Drupal, so I'm asking here.) In a particular module I'm writing, I will need to ...
1
vote
3answers
868 views

drush variable-set for permission table

I want to enable access comments, post comments, and post comments without approval for anonymous using drush. Fresh install, the table entry look like this: INSERT INTO `permission` VALUES ...
1
vote
1answer
416 views

Replace data from command line: site name

I run in mysql: update variable set value = replace(value,'SiteName','NewName'); and then clearing cache: drush cache-clear But I dont know why the site name become blank instead of NewName ...
1
vote
2answers
152 views

how to create shell command 'd' as equivalent to 'drush'?

Typing "drush" over and over again, I find it is quite time consuming. How can I shorten the command so I can just type "d"? I am using Mac OS X.
0
votes
1answer
251 views

How to run a Drush command in interactive mode

I want Drush to actively output messages instead of putting them into a buffer and then outputting them when it is done running. Now Drush has an interactive mode that I think will do this. However I ...
3
votes
2answers
220 views

How to distinguish between drush and HTTP request

How can I distinguish whether a function is called from drush or by a real HTTP request?