including sites using Drupal Installation Profiles ‣ Trigger workflow operations, including deploying and syncing ‣ Connect to services (e.g. mysql or redis) over secure SSH tunnels
providing equivalent functionality to the Pantheon Web Dashboard and easier scripting. ‣ Requirements: • PHP version 5.5.9 or later • PHP-CLI • PHP-CURL
have homebrew-php already tapped, here are the commands for the taps: $> brew tap homebrew/dupes $> brew tap homebrew/versions $> brew tap homebrew/php And after you're all tapped out, install Terminus with this command: $> brew install homebrew/php/terminus
plan on contributing to the project, create a fork and clone the fork instead. $> cd /install/location $> git clone https://github.com/pantheon-systems/ terminus.git terminus Install the Composer dependencies. $> cd terminus $> composer install
we suggest aliasing or setting the path to this script in your Bash configuration file. This file is located at ~/.bashrc $> alias terminus="/install/location/terminus/bin/ terminus" Install the Composer dependencies. $> export PATH="$PATH:/install/location/terminus/bin"
a few things you'll need in order to make this work: ‣ A Pantheon account with at least one free Dev site slot open. ‣ A working local Drush installation that is up to date with 5.x or 6.x stable. SFTP development controls, including git commits ‣ Drush access to your existing Drupal site.
auth login $> terminus sites import $> Provide a name for the site. This will be part of the default URL: my-drush-import $> URL of archive to import: http://mysite.com/drush- archive.tar.gz $> Site is now building. $> The new site's UUID is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx To get started with Terminus, you must first authenticate:
--site=<sitename> --label=<label> --url=<archive/url.tar.gz> --org=<id> Every aspect of the Terminus process is designed to support automation. You can kick off an import non-interactively using the following options:
command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser. $> wp cache add|decr|delete|flush|get|incr|replace|set|type $> wp post generate --count=1000 $> wp plugin install plugin-name $> wp post generate —count=1000 $> wp db query "SELECT id FROM wp_users;" terminus wp [CMD] —site=[SITENAME] —env=[ENVIRONMENT]
line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache $> drush user-create USERNAME —mail=“[email protected]” --password="pass” $> drush user-add-role "administrator" --uid=<assigned uid> [email protected] terminus drush [CMD] —site=[SITENAME] —env=[ENVIRONMENT] EX. terminus --site=project-bolt --env=dev drush "sql-query 'show tables'"