Skip to content

Releases: pantheon-systems/terminus

0.11.2

03 Jun 23:55
Compare
Choose a tag to compare

Added

  • New field frozen appears in sites list when a site belonging to your user has been frozen. (#1015)
  • New command site lookup to look up sites by name. (#1027)
  • New command site complete-migration. (#1077)
  • site clear-cache now automatically clears the framework cache as well as the Varnish cache. (#1083)

Changed

  • Removed the port number from the create-a-machine token URL seen when using auth login except for when the host is localhost. (#1034)
  • Changed the SynopsisValidator so that any unnamed command argument between < and > may be given any name. (#1041)
  • When running site deploy and there are no changes to deploy, Terminus will now exit with status 0 rather than 1. (#1054)
  • Moved log-out function out of AuthCommand and into the Auth model. (#1058)
  • A site's frozen status will appear now in both the site info output and when running organizations sites list. (#1091)

Fixed

  • wp and drush commands both now use the object buffer and output the result of the operation without formatting. (#1023)
  • Runner::getLogger() will no longer return null. (#1049)
  • Fixed undefined-variable bug when attempting to access list of upstreams in InputHelper::upstream(). (#1050)
  • Fixed undefined-variable bug which appears when a user has one machine token saved but is logged out. (#1053)
  • Multiline option details will now fully appear in help output. (#1055)
  • TERMINUS_PLUGINS_DIR now overrides the plugin directory appropriately. (#1062)
  • Undefined method error while running sites mass-update has been fixed. (#1064)
  • Eliminated superfluous exception catching in TerminusRequest so that Github API rate limit overages will not disrupt scripts. (#1082)
  • Fixed bug in delete-env which prevented the --remove-branch option from working. (#1084)
  • Fixed bug in site set-https-certificate. (#1085)
  • Updated dependencies to fix blank-menus-in-Windows bug. (#1086)
  • The created field returned by site info now is in the format specified by TERMINUS_DATE_FORMAT. (#1093)
  • The created field returned by organizations sites list now is in the format specified by TERMINUS_DATE_FORMAT. (#1093)
  • The created field returned by sites list now is in the format specified by TERMINUS_DATE_FORMAT. (#1093)
  • Switched all remaining date-formatted fields to use the format specified by TERMINUS_DATE_FORMAT. (#1093)
  • Handling of directories in Windows has been fixed. (#1094)

0.11.1

30 Mar 23:18
Compare
Choose a tag to compare

Added

  • New command site drupal-version to check the Drush version number of any or all environments. (#1001)
  • New command site set-drupal-version to set the Drush version number of any or all environments. (#1001)
  • New parameter --owner added to sites list to filter the list just for the sites the current user owns. (#1003)
  • New option to filter for organization sites via sites list --org=all. (#1003)

Changed

  • InputHelper#upstream() now returns the UUID of the chosen upstream rather than an upstream object. (#1013)
  • InputHelper#upstream() will not check upstream data if it has been given a UUID in the $args[$key]. (#1013)
  • InputHelper#orgId() will not check organizational data if it has been given a UUID in the $args[$key]. (#1013)
  • Running Sites#addSiteToCache while the cache is empty will no longer trigger a full cache sync. (#1013)

Fixed

  • Alternate command suggestion for drush "sql-connect" corrected to site connection-info --field=mysql_command. (#1005)
  • Fixed output in JSON format for site hostnames list. (#1011)

0.11.0

17 Mar 00:17
Compare
Choose a tag to compare

Added

  • New command ssh-keys list added. (#990)
  • New command ssh-keys add added. (#990)
  • New command ssh-keys delete added. (#990)
  • New parameter --env=<env> has been added to site import-content. (#994)

Changed

  • WP-CLI function import has been removed from the command blacklist. See the documentation for more information. (#979)
  • When running terminus auth login and more than one machine token is present, Terminus will now tell you how to use them instead of giving the same error message received when no tokens are present. (#987)
  • SiteCommand#import has been renamed to SiteCommand#importContent. (#994)
  • Site#importDatabase has been moved to Environment#importDatabase. (#994)
  • Site#importFiles has been moved to Environment#importFiles. (#994)

Fixed

  • Fixed unidentified index email warning which appeared when logging in via saved machine token by email. (#983)
  • Prevented long loop of configurator loadings. (#988)
  • Fixed auth status check before running CommandWithSSH descendant commands (drush, wp). (#986)
  • Ensured that API and server errors exit with non-zero status. (#996)
  • Fixed error in site import-content documentation regarding what is importable. (#994)

0.10.6

07 Mar 22:37
Compare
Choose a tag to compare

Changed

  • Terminus\Helpers\AuthHelper has become Terminus\Models\Auth. (#971)

Fixed

  • Now compatible with PHP 7.0. (#973)
  • If there no updates to apply, site upstream-updates apply will exit stating that there aren't any. (#974)

0.10.5

26 Feb 19:38
Compare
Choose a tag to compare

Added

  • Added site set-php-version command to set the PHP version on both sites and their environments. (#937)

Changed

  • Data returned from site code branches has changed to use hash keys. (#940)
  • workflows show parameter has changed from --worklow_id to --workflow-id. (#947)
  • Added workflow times to workflows watch output. (#951)
  • Added workflow times to workflows watch output. (#952)
  • site set-https-certificate parameter has changed from --private_key to --private-key. (#954)
  • site set-https-certificate parameter has changed from --intermediate_certificate to --intermediate-certificate. (#954)
  • Changed InputHelper#string() so that entries may be required to not be blank. (#954)

Fixed

  • site code diffstat no longer gives a non-object error. (#939)
  • InputHelper#env now will generate a list of all environments when fed a site object. (#950)
  • Fixed name and label entry for sites create such that they cannot be blank. (#954)

0.10.4

18 Feb 01:47
Compare
Choose a tag to compare

Added

  • Added new role data to the information returned by site team list. (#924)
  • Added site hostnames get-recommendations to retrieve DNS recommendations. (#933)

Changed

  • The --set argument in site set-owner has been renamed to --member for consistency. (#924)
  • Site and environment PHP versions are now reported with the '.' (e.g. 5.3, 5.5). (#931)

Fixed

  • Help text when inputting an incomplete command has been repaired. (#919)
  • Automatic checking for the current version will no longer err unless GitHub is down. (#925)
  • Fixed strict standards issue occurring in Environment#wake(). (#928)
  • Utils\checkForUpdate() now appropriately interpolates error messages. (#929)
  • Changed Symfony\Finder versions so as to not conflict with Drupal Console. (#932)
  • Ensured that PHP version numbers appear when the API returns no value. (#931)

0.10.3

12 Feb 23:55
Compare
Choose a tag to compare

Added

  • New Hostnames collection and Hostname model. (#860)
  • Added 3rd Party plugin support (#857)
  • Output destinations can now be set via Terminus#setOutputter or an element of the options fed into the Terminus constructor. (#873)
  • HTTPS Certificates on Site Environments can be added/updated using site set-https-certificate (#792)
  • New command organizations team add-member. (#904)
  • New command organizations team remove-member. (#904)
  • New command organizations team change-role. (#904)
  • Added new role data to the information returned by organizations team list. (#904)

Changed

  • When an object cannot be found by TerminusModel#get, it now throws an exception rather than issuing a notice. (#861)
  • Input helper functions are no longer static. (#864)
  • site set-instrument no longer does client-side checking for personal instrument access. (#872)
  • The --point=<int> argument in cli completions is now optional. (#873)
  • Outputter#line() now outputs to the set writer output destination rather than STDERR. (#873)
  • Terminus\Auth now re-designated as Terminus\Helpers\AuthHelper. (#881)
  • Helpers are now added to the TerminusCommand's helpers property. (#881)
  • Extracted launching functions from Terminus (base class) and moved them into new LaunchHelper class. (#882)
  • Extracted template function from Utils and moved it into new TemplateHelper class. (#884)
  • Changed the site-DNE message to instruct the user to run sites list. (#895)
  • site set-service-level now also accepts levels of "professional", "sandbox", and "personal". (#894)
  • organizations team has been changed to organizations team list. (#904)
  • Changed log message on site deploy to not give the workflow's status but a failure message upon failure. (#896)

Removed

  • addHostnames, deleteHostnames(), and getHostnames() has been removed from Environment. Use new hostnames property (contains Hostnames collection) instead. (#860)

Fixed

  • auth login <email> --password=<password> will not automatically attempt to log in via machine token if a token with the given email is present. (#865)
  • site deploy now correctly counts queued commits and will not report there is nothing to deploy erroneously. (#879)
  • site set-service-level now uses a workflow which will also generate an email upon level change. (#897)
  • Commands making use of InputHelper#string no longer experience an inaccessable-property error. (#900)
  • Fixed site delete-env environment selection when there are one or fewer multidev environments present on as site. (#909)
  • site delete-branch now lists all branches, not just those associated with multidev environments. (#911)
  • site connection-info no longer errors on some sites which have Redis cache servers. (#912)

0.10.2

27 Jan 23:47
Compare
Choose a tag to compare

Added

  • Added a Drush alias-generating script to the Terminus-as-a-library docmentation examples. (#808)
  • New command site redis enable to enable Redis caching. (#813)
  • New command site redis disable to disable Redis caching. (#813)
  • New command site solr enable to enable Solr indexing. (#814)
  • New command site solr disable to disable Solr indexing. (#814)
  • Added Environment#getParentEnvironment(). (#831)
  • Added Commits collection and Commit model. (#831)
  • Added machine-token list and machine-token delete commands. (#798)

Changed

  • drush and wp commands now issue a warning to change your connection mode to SFTP if it is in Git mode. (#807)
  • Removed field name in reply of site info --field=<field_name>. (#811)
  • site redis clear no longer complains of an inability to find hosts. (#813)
  • Machine tokens are now saved in a ~/.terminus/tokens directory, a sibling to the Terminus cache directory. (#825)
  • The <email> in auth login <email> will now reuse a saved machine token for the account associated with that email address, if present. (#825)
  • TERMINUS_USER will be used to locate a matching saved machine token before user/password login is attempted. (#825)
  • If only one saved token is present, auth login will use it when it has no other arguments. (#825)
  • If a drush or wp command exits with any status except for 0, Terminus now exits with that status. (#827)
  • Removed "Backup URL:" label from the single-record output of site backups get. (#828)
  • Added machine_token to the error output blacklist. (#840)
  • Status on workflows list and workflows show now read "running", "succeeded", or "failed". (#850)
  • Renamed Environment#log() to Environment#getCodeLog(). (#831)
  • site deploy will exit with status 1 and the message "There is nothing to deploy." if there are no changes to deploy. (#831)
  • When not logged in, the message given now refers the user to create a machine token in order to log in. (#790)

Fixed

  • Fixed bug in Input#orgId. (#812)
  • Fixed error appearing in organizations sites list when there are no results. (#812)
  • Fixed missing-variable error in Request#request which appeared when attempting to sanitize error messages. (#835)
  • Fixed log-in admonition if a machine token, TERMINUS_USER, or TEMRINUS_MACHINE_TOKEN are present. (#849)
  • Fixed erroneous, old --[no-]format tag listing in help, replacing it with current --format=<json|bash|silent> option. (#854)

Removed

  • --session=<session_id> argument has been removed from auth login. (#826)
  • logInViaSessionToken() has been removed from Auth. (#826)
  • log() has been removed from Environment. Use new commits property (contains Commits collection) instead. (#831)

0.10.1

12 Jan 19:41
Compare
Choose a tag to compare

Added

  • config/constants.yml file to contain the default constants for Terminus. (#791)
  • Added a --name=<regex> filter to sites list. Use regex to filter the sites by name. (#802)

Changed

  • Moved Terminus::prompt(), Terminus::promptSecret() to Terminus\Helpers\Input. (#768)
  • Removed duplicative Terminus::menu() in favor of Terminus\Helpers\Input::menu. (#768)
  • Moved Terminus::line() to Terminus\Outputters\Outputter. (#768)
  • Removed dev packages from PHAR file. (#774)
  • Updated Symfony to version 3.0.0. Minimum PHP version required to run Terminus is now 5.5.9. (#772)
  • auth whoami now returns a user profile rather than their UUID. (#763)

Fixed

  • Missing creation dates in site data while using organizations site list command will no longer cause errors. (#766)
  • Fixed headers in session token-based login. (#764)
  • site backups load --element=database no longer errs upon calling the renamed function "backup". (#767)
  • site backups get --latest bug wherein it was returning the oldest backup, rather than the most recent. (#770)
  • sites aliases will no longer tell you you have no sites when none of your domains include 'pantheon.io'. (#782)
  • site tags add now searches for existing tags before adding another. (#771)
  • site redis clear undefined-variable error has been fixed. (#799)

0.10.0

15 Dec 19:08
Compare
Choose a tag to compare

Added

  • New command workflows show displays details about a workflow (#687)
  • Added back session token-based login. (#693)
  • Added initiator data (manual or automated) to site backups list. (#716)
  • New command workflows watch to stream workflow updates (#722)
  • New command site backups get-schedule shows the scheduled weekly backup day and daily backup time. (#723)
  • New command site backups set-schedule schedules the daily backup and weekly day. (#724)
  • New command site backups cancel-schedule cancels the regular backup schedule. (#725)
  • New command organizations team displays a member list of organizational members. (#726)
  • Added an owners file per the Owners Policy on the Chromium Project. (#727)
  • New subcommand site hostnames lookup --hostname=<hostname> to look up a site and environment by hostname. WARNING: May take a long time to run. (#729)
  • New flag --recursive on help command to show the full details of all subcommands. (#730)
  • Environment variable TERMINUS_SSH_HOST targets a specific host for drush and wp commands. (#737)
  • Documentation and examples for the use of Terminus as a library. (#738)

Fixed

  • site backups get no longer errs when there are no backups. (#690)
  • Interactive commands' environment menus now consistently include multidev environments, where applicable. (#701)
  • site wake (#710)
  • sites create and sites import no longer give warnings about missing $org_id variable. (#733)
  • site backups list now responds to the --latest flag. (#734)
  • Changed Backups#isBackupFinished to falsify if backup size is "0". (#734)
  • Fixed fatal error which appeared when using sites aliases. (#743)
  • Fixed missing-variable error when user has no sites while using sites aliases. (#743)

Changed

  • Extricated the request logic from TerminusCommand class and moved it to the Request class. (#704)
  • Replaced Mustache templates with Twig. (#730)
  • Resolved Terminus base class' and Runner's interfunctionality. Terminus can now be used as a library. (#738)
  • Drush and WP-CLI commands routed through Terminus must now make use of quotes to pass the command and arguments. (#702)