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).
brew install sshfs
sudo apt-get update && sudo apt-get install sshfs
sudo yum install sshfs
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.