https://github.com/terminus-plugin-project/terminus-stooges-plugin
Stooges plugin for Terminus, allowing for Pantheon Platform and Vanity domains to easily be replaced when taking a site live.
https://github.com/terminus-plugin-project/terminus-stooges-plugin
Last synced: about 1 year ago
JSON representation
Stooges plugin for Terminus, allowing for Pantheon Platform and Vanity domains to easily be replaced when taking a site live.
- Host: GitHub
- URL: https://github.com/terminus-plugin-project/terminus-stooges-plugin
- Owner: terminus-plugin-project
- Created: 2018-08-14T03:15:10.000Z (almost 8 years ago)
- Default Branch: 1.x
- Last Pushed: 2018-08-14T03:20:51.000Z (almost 8 years ago)
- Last Synced: 2025-02-14T23:16:42.327Z (over 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terminus Stooges Plugin
[](https://github.com/terminus-plugin-project/terminus-stooges-plugin/tree/1.x)
*Note that this plugin only supports WordPress*
Terminus plugin to search and destroy Platform/Vanity domains from an environment.
This is an automated way of using WP CLI's search and replace functionality to ensure copies
of a Pantheon URL (pantheonsite.io) are removed from content in the database.
## Use Case
When taking your WordPress site live, you are often left with links pointing to live-sitename.pantheonsite.io,
or other links from dev, test, multidev, or vanity domain environments. While each can be cleaned up individually,
this is a time consuming process requiring multiple commands to be run. This plugin aims to simplify this process.
## Examples
### Replace platform and vanity domains from the dev environment
`$ terminus site:stooges companysite-33.dev`
### Replace all platform and vanity domains from the live environment, regardless of source environment
`$ terminus site:stooges:sparky companysite-33`
## 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-stooges-plugin:~1
```
## Help
Run `terminus help site:stooges` for help.