Tools to improve your development workflow on Pantheon sites including:
- Tips to make your workflow smoother/faster/less-risky.
- automating important steps that are easy to forget.
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. - Use Git to checkout this pantheon-tools repository, maybe to the same place you store your other code projects.
- Add the directory containing pantheon-tools to your Path.
E.g.
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="$PATH:$HOME/path/to/pantheon-tools"
Depending on your system, you must add the above paths to ~/.profile
, ~/.bash_profile
, or ~/.zshrc
.
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).
Command | Description |
---|---|
pantheon-quick-deploy |
Quickly deploy something from dev->test->live |
pantheon-commit-and-quick-deploy |
Commit any local changes and then deploy them |
pantheon-deploy |
Deploy dev->test or test->live |
Command | Description |
---|---|
pantheon-drupal-status-report |
Report a summary of the Status Report for every Drupal site |
pantheon-sites-report |
Get a metric about all sites (e.g. PHP version, or Upstream) |
pantheon-module-report |
Get a list of which sites use which version of a module |
Command | Description |
---|---|
pantheon-security-update |
Run security updates on a Pantheon site by first creating a new multi-dev environment |
Command | Description |
---|---|
pantheon-db-dump |
Dump a database from any Pantheon site. Even VIP clients that require an SSH tunnel to connect to the database |
pantheon-db-cli |
Connect to the database of any Pantheon site. Even VIP clients that require an SSH tunnel to connect to the database |
Command | Description |
---|---|
pantheon-multidev-create |
Create a new multi-dev environment |
pantheon-multidev-merge |
Merge a multi-dev environment into master (the dev environment) |
pantheon-move-domains |
Move custom domains from one site to another |
Command | Description |
---|---|
pantheon-sites-accounts-rename |
Iterate over all a given list of sites and rename usernames/email addresses |
pantheon-offboard |
Offboard a staff member from your organization |