New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

terminus-plugin-project/terminus-cantilever-plugin

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terminus-plugin-project/terminus-cantilever-plugin

touch any/all terminus environments

terminus-plugin
Source
Packagist
Version
1.1
Version published
Total downloads
54
Maintainers
0
Created
Source

Terminus Cantilever Plugin

Terminus v1.x Compatible

  • isolate environments by framework (drupal, drupal8, wordpress)
  • isolate environments by service level (free, basic, pro, business, performance)
  • run drush and/or wp-cli commands, or really any commands at all
  • provide organized report of operations on per site basis

Watch the video

Watch the video to learn more about the why and how of Cantilever.

Use Case

This plugin extends site:list to allow users to execute commands on each site that is listed.

It will take arguments for environment --env=, framework --frame=, tags --tags= and organizations --org=.

You can also specify a command --command= to apply to all of the sites targeted.

Ex. terminus can --frame='wordpress' --env='dev' --command='terminus [site] wp plugin update --all && terminus [site] wp theme update themename'.

In the command, you have tokens available to use as placeholders for each sites data.

  • [site] will produce site.env; Ex. yoursite.live
  • [name] will produce the sites name; Ex. yoursite
  • [env] will produce the environment selected; Ex. live

Installation

To install this plugin place it in ~/.terminus/plugins/.

On Mac OS/Linux:

mkdir -p ~/.terminus/plugins
composer create-project -d ~/.terminus/plugins terminus-plugin-project/terminus-cantilever-plugin:~1

Examples

terminus can --env=live --level='pro,business,performance' --frame='drupal,drupal8' --command='terminus drush [site] pml|grep redis'

terminus can --env=live --frame='wordpress' --command='terminus wp [site] option get home'

Help

Run terminus can --help for help.

TODO

  • Add support for organization/membership tags

This plugin is provided by Inclind

FAQs

Package last updated on 04 Oct 2018

Related posts