Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Drush Aliases Available

Parent Feed: 

Pantheon (heart)s Drush. We took care when assembling our DROPs infrastructure to maintain Drush access for developers, and we'll be building more command-line power tools over time. The magic that allows us to offer Drush (as well as rsync and sftp) without traditional shell access will be the subject of a longer "Inside Pantheon" post coming up, but the end-result is there for you now.

When you log in, your account overview screen will let you snag a compiled drushrc.php file:

Download your drushrc file

On linux/MacOS you can drop this file into a .drush directory in your home. You can also put it in the aliases directory of your local Drush installation. Then run drush sa and you should get a list of aliases like so:

# drush sa
@pantheon.open-public-demo.dev
@pantheon.open-public-demo.test
@pantheon.open-public-demo.live
@pantheon.drupal-7-sandbox.dev
@pantheon.drupal-7-sandbox.test
@pantheon.drupal-7-sandbox.live

You're now ready to use these aliases to run all your favorite Drush commands on your remote sites!

# drush @pantheon.drupal-7-sandbox.dev status
 Drupal version         :  7.10                                                 
 Site URI               :  dev.drupal-7-sandbox.gotpantheon.com                          
 Database driver        :  mysql                                                
 Database hostname      :  50.57.231.252                                        
 Database username      :  pantheon                                             
 Database name          :  pantheon                                             
 Database               :  Connected                                            
 Drupal bootstrap       :  Successful                                           
 Drupal user            :  Anonymous                                            
 Default theme          :  waves                                                
 Administration theme   :  seven                                                
 PHP configuration      :  /srv/bindings/12bda2a361064ce680fb4218871a33e5/php.ini                                                   
 Drush version          :  4.5                                                  
 Drush configuration    :  /srv/bindings/12bda2a361064ce680fb4218871a33e5/drushrc.php                                               
 Drush alias files      :                                                       
 Drupal root            :  .                                                    
 Site path              :  sites/default                                        
 File directory path    :  sites/default/files                                  
 Private file           :  sites/default/files/private                          
 directory path         

More power to you!

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web