2017 © Pedro Peláez
 

terminus-plugin terminus-mass-update

Apply upstream updates to all of your sites

image

pantheon-systems/terminus-mass-update

Apply upstream updates to all of your sites

  • Friday, May 25, 2018
  • by greg.1.anderson
  • Repository
  • 11 Watchers
  • 7 Stars
  • 195 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 10 Open issues
  • 4 Versions
  • 38 % Grown

The README.md

Terminus Mass Update Plugin

Terminus v1.x Compatible, (*1)

A Terminus plugin that applies upstream updates to a list of sites., (*2)

This plugin contains two commands:, (*3)

terminus site:mass-update:apply

Apply the available upstream updates for each of the sites specified., (*4)

To specify the list of sites to apply updates to you must send them to this function on stdin using a pipe. This allows you to use any other Terminus command to generate the list of sites to work on:, (*5)

$ terminus site:list --format=list | terminus sites:mass-update:apply
$ terminus org:site:list --format=list | terminus sites:mass-update:apply

By adding --format=list to a Terminus command you will get a list of site IDs suitable for input into this command., (*6)

When working with organizations it can be useful to filter org:site:list by tags as well. One strategy is to create a mass-update tag in order to apply mass updates to specific sites within an organization using terminus org:site:list --tag="mass-update" --format=list | terminus sites:mass-update:apply., (*7)

The mass-update command has some other options:, (*8)

  • --dry-run: Show what updates would be applied but do not apply them.
  • --updatedb: Run update.php after updating (Drupal only)
  • --accept-upstream: Attempt to automatically resolve conflicts in favor of the upstream
  • --upstream=<upstream id>: Update only sites using the given upstream

terminus site:mass-update:list

List the available upstream updates for each of the sites specified., (*9)

Input for this function works the same way as the apply command. This command can be used to discover exactly which update would be applied by apply, (*10)

$ terminus site:list --format=list | terminus sites:mass-update:list
$ terminus org:site:list --format=list | terminus sites:mass-update:list

Installation

To install this plugin place it in ~/.terminus/plugins/., (*11)

On Mac OS/Linux:, (*12)

mkdir -p ~/.terminus/plugins
curl https://github.com/pantheon-systems/terminus-mass-update/archive/1.x.tar.gz -L | tar -C ~/.terminus/plugins -xvz

Help

Run terminus help sites:mass-update:list or terminus help sites:mass-update:apply for help., (*13)

The Versions

25/05 2018

1.x-dev

1.9999999.9999999.9999999-dev

Apply upstream updates to all of your sites

  Sources   Download

MIT

25/05 2018

dev-master

9999999-dev

Apply upstream updates to all of your sites

  Sources   Download

MIT

11/01 2017

dev-fix/issue-1

dev-fix/issue-1

Apply upstream updates to all of your sites

  Sources   Download

MIT

21/12 2016

v1.0.0

1.0.0.0

Apply upstream updates to all of your sites

  Sources   Download

MIT