Tools to run actions against a Pantheon site, including many best practices for development workflow.
This includes things like:
- Sort out configuration problems before you move on to the next step.
- Create a backup before deploying.
- Merge the main/master branch into a multidev before going the other direction.
- Pause a deployment if there's undeployed code in the next environment.
- General standardization around development process.
- etc.
- Install Terminus.
terminus auth:login
to store an access token.- Upload your SSH key to the Pantheon dashboard.
- Add Terminus to your Path. For example, if Terminus is installed at
~/.composer/vendor/bin/terminus
then you need to add~/.composer/vendor/bin
to your path. - Add the directory containing pantheon-tools to your Path.
E.g.
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="$PATH:$HOME/Sites/pantheon-tools"
You typically add these lines to ~/.profile
or ~/.bash_profile
.
Note that an alias will not work.
- This may be getting a lot of updates, so first ensure that you have the latest version.
cd /path/to/the/pantheon-tools
git pull
- The scripts are totally interactive. Just run them. E.g.:
pantheon-security-update
The script will ask you questions along the way (and give you hints when there's ways to add arguments to make things faster).
Run security updates on a Pantheon site by first creating a new multi-dev environment.
Create a new multi-dev environment.
Merge a multi-dev environment into master (the dev environment).
Quickly deploy something from dev->test->live.
Commit any local changes and then deploy them.
Dump a database from any Pantheon site. Even VIP clients that require an SSH tunnel to connect to the database.
Connect to the database of any Pantheon site. Even VIP clients that require an SSH tunnel to connect to the database.
Get a list of which sites use which version of a module.
Get a metric about all sites (e.g. PHP version, or Upstream).
Offboard a staff member from your organization.
Deploy dev->test or test->live.
Report a summary of the Status Report for every Drupal site.