How can I add a block to a region using Drush?
I'm using Drupal 7.0 and Drush 4.3.
The Drush extras project has commands for administering blocks.
Short instructions (following their README.txt):
Install this Drush add-on:
drush dl drush_extras
Determine desired module name and delta of block, and the desired region name and weight for adding the block:
Add the block to the region:
drush block-configure --module=block_module --delta=block_delta \ --region=region_name --weight=-12
More instructions via:
drush help block-show drush help block-configure drush help block-disable
I think you maybe asking the wrong question here. I think your question might be - "how do I automate deployments to include blocks being placed in regions"?
In this case you have a few options, I would recommend:
I prefer this approach as it keeps your entire site layout in code, thus making it able to be stored in version control, and of course deployable to your production web servers with little hassle. Roll back is also made easy.