Terminus plugin to mount Pantheon site environments.
terminus [site:]mount|[site:]u(n)mount site-name.env [--dir=<directory> --drive=<drive letter>]
By default, the site environment will be mounted in $HOME/site-name.env
(Linux / Mac only).
If you want to mount in a different directory, use the --dir=<directory>
option.
Keep in mind, if you mount in a different directory, you will also need to specify the same --dir
option when unmounting.
The --drive=<drive letter>
option is only necessary on Windows. The values can be 'first', 'last' or any available drive letter.
The default is --drive=first
which means the first available drive letter.
Mount the site environment awesome-site.dev.
terminus mount awesome-site.dev [--dir=<directory>]
Unmount the site environment awesome-site.dev.
terminus unmount awesome-site.dev [--dir=<directory>]
Learn more about Terminus and Terminus Plugins.
Executable mount, umount and sshfs commands must exist (Linux / Mac only).
- Download and install the latest release of osxfuse-x.x.x.dmg.
- Install sshfs via
brew install sshfs
- Debian-based (Debian, Linux Mint, Ubuntu and derivatives):
sudo apt-get update && sudo apt-get install sshfs
- RedHat-based (RedHat, Fedora, CentOS and derivatives):
sudo yum install sshfs
- Download and install SFTP Net Drive 2017.
For installation help, see Extend with Plugins.
mkdir -p ~/.terminus/plugins
composer create-project -d ~/.terminus/plugins terminus-plugin-project/terminus-site-mount-plugin:~2
This plugin requires no configuration to use.
Replace my-test-site
with the site you want to test:
export TERMINUS_SITE=my-test-site
cd ~/.terminus/plugins/terminus-site-mount-plugin
composer install
composer test
Run terminus help site:mount
for help.