CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • upgrading via command line... how to run the upgrade script
Pages: [1]

Author Topic: upgrading via command line... how to run the upgrade script  (Read 1042 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
upgrading via command line... how to run the upgrade script
October 11, 2011, 02:11:34 pm
I like to do all my Drupal and CiviCRM updates and upgrades within a bash script so that I can perform the update/upgrade actions on a test server, work out all the kinks, and then replicate the successful actions on the live server quickly. My one sticking point with CiviCRM though is running the upgrade script. (This is the step of the process where the CiviCRM documentation instructs users to point their web browser to http://<your_drupal_home>/civicrm/upgrade?reset=1 and follow the instructions.) With Drupal, I'm able to accomplish the analogous step by running "drush -y pm-update". Is there a way I can update/upgrade the CiviCRM database from the command line? Currently, I have my script just pause at that step and wait for user input to affirm that the action has been completed manually, but I'd like to improve it so that I don't have to use the web browser at all.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: upgrading via command line... how to run the upgrade script
October 12, 2011, 12:31:38 am
You can also use drush for upgrading CiviCRM. Check this for list of commands: http://svn.civicrm.org/civicrm/branches/v3.4/drupal/drush/civicrm.drush.inc

Hth
Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • upgrading via command line... how to run the upgrade script

This forum was archived on 2017-11-26.