Giter Club home page Giter Club logo

cantilever's Introduction

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

cantilever's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cantilever's Issues

Suggestion: Allow site list to be passed in via stdin

Thanks for making this plugin - it looks neat! As a user attached to multiple organizations and access to hundreds of sites looping through all sites I have access to takes a large amount of time.

It would be great to be able to send the results of terminus site:list or terminus org:site:list to cantilever via stdin. The Terminus mass update plugin does this and it is really useful.

For example, I can list sites from a specific org and filter by tag with terminus org:site:list --tag. That takes much less time and then cantilever could just loop through the sites I provide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.