{"action":"created","comment":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/43043096","id":43043096,"diff_hunk":"@@ -11,34 +11,12 @@ keywords: Drupal drush, command line, drupal, terminus drush, cli\n Pantheon does not need the settings.php for your site to work, and your Drupal sites do not contain one out of the box. Drush commands require a settings.php file and it's considered a best practice to have one. Simply duplicate the `sites/default/default.settings.php` to `sites/default/settings.php` for Drush to work on a new site.\r\n \r\n ## Terminus Drush and Local Drush\r\n-Drush-savvy developers should also install and utilize [Terminus](/docs/articles/local/cli/), a command-line interface that allows you to control your Pantheon account and sites. Virtually anything you can do in the Dashboard, you can script with Terminus. It can also make remote drush calls on your environments without having drush installed locally.\r\n+Drush-savvy developers should also install and utilize [Terminus](/docs/articles/local/cli/), a command-line interface that allows you to control your Pantheon account and sites. Virtually anything you can do in the Dashboard, you can script with Terminus. It can also make remote drush calls on your environments without having drush installed locally, eliminating incompatibility issues between locally and remotely installed versions of Drush.\r\n \r\n-Using Terminus to operate Drush commands on your site environments negates the issues below, which stem from incompatibilities between locally and remotely installed versions of Drush. All of the commands below can be run from Terminus instead of using Drush aliases. For more information, see our guide on [Managing Drupal Sites with Terminus and Drush](/docs/guides/terminus-drupal-site-management/).\r\n+All of the commands below can be run from Terminus instead of using Drush aliases. For more information, see our guide on [Managing Drupal Sites with Terminus and Drush](/docs/guides/terminus-drupal-site-management/).\r\n \r\n ## Drush Versions\r\n-Pantheon currently has Drush version 5.10.1 installed. You can run Drush 5.x, 7.x, and 8.x on your local installation to interact with your Pantheon Drupal installations. Pantheon alias files are not compatible with 6.x, however you can execute commands locally with this version by including the `--strict=0` option.\r\n-\r\n-For upgrade information, see [Introducing Drush 8](https://pantheon.io/blog/introducing-drush-8).\r\n-\r\n-#### Drush 7\r\n-Create a new policy file that changes all remote aliases to use Drush 7 instead of the default version of Drush, but only if the target is the Pantheon platform. Our `hook_drush_sitealias_alter` function looks like this:\r\n-```php\r\n-function policy_drush_sitealias_alter(&$alias_record) {\r\n-  // Fix pantheon aliases!\r\n-  if ( isset($alias_record['remote-host']) &&\r\n-      (substr($alias_record['remote-host'],0,10) == 'appserver.') ) {\r\n-    $alias_record['path-aliases']['%drush-script'] = 'drush7';\r\n-  }\r\n-}\r\n-```\r\n-\r\n-With this policy file in place, you are able to use the latest version of Drush on Pantheon:\r\n-```\r\n-$ drush @pantheon.my-great-site.dev version\r\n-Drush Version   :  7.0.0-rc1\r\n-```\r\n-\r\n-For more details, see our [Fix Up Drush Site Aliases with a Policy File](https://pantheon.io/blog/fix-drush-site-aliases-policy-file) blog post.\r\n+For details on managing remote and local Drush versions, see [Managing Drush Versions on Pantheon](/docs/articles/local/drush-versions).\r\n ## Install Drush Aliases Locally\r\n Adding Pantheon aliases to your local Drush aliases file will allow you to run Drush calls against your Pantheon site environments. There are two methods for obtaining the aliases:\r","path":"source/docs/articles/local/drupal-drush-command-line-utility.md","position":36,"original_position":36,"commit_id":"c56dad11aaf11315ad59892224f02e9108b33aff","original_commit_id":"c56dad11aaf11315ad59892224f02e9108b33aff","user":{"login":"ari-gold","id":7874556,"avatar_url":"https://avatars.githubusercontent.com/u/7874556?v=3","gravatar_id":"","url":"https://api.github.com/users/ari-gold","html_url":"https://github.com/ari-gold","followers_url":"https://api.github.com/users/ari-gold/followers","following_url":"https://api.github.com/users/ari-gold/following{/other_user}","gists_url":"https://api.github.com/users/ari-gold/gists{/gist_id}","starred_url":"https://api.github.com/users/ari-gold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ari-gold/subscriptions","organizations_url":"https://api.github.com/users/ari-gold/orgs","repos_url":"https://api.github.com/users/ari-gold/repos","events_url":"https://api.github.com/users/ari-gold/events{/privacy}","received_events_url":"https://api.github.com/users/ari-gold/received_events","type":"User","site_admin":false},"body":"Can we make it more obvious that you don't need to download the Drush aliases file if you're using Terminus to invoke Drush?","created_at":"2015-10-26T19:49:37Z","updated_at":"2015-10-26T19:49:37Z","html_url":"https://github.com/pantheon-systems/documentation/pull/1058#discussion_r43043096","pull_request_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058","_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/43043096"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/1058#discussion_r43043096"},"pull_request":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058"}}},"pull_request":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058","id":48525109,"html_url":"https://github.com/pantheon-systems/documentation/pull/1058","diff_url":"https://github.com/pantheon-systems/documentation/pull/1058.diff","patch_url":"https://github.com/pantheon-systems/documentation/pull/1058.patch","issue_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/1058","number":1058,"state":"open","locked":false,"title":"New doc: How Drush Works on Pantheon ","user":{"login":"nataliejeremy","id":9138609,"avatar_url":"https://avatars.githubusercontent.com/u/9138609?v=3","gravatar_id":"","url":"https://api.github.com/users/nataliejeremy","html_url":"https://github.com/nataliejeremy","followers_url":"https://api.github.com/users/nataliejeremy/followers","following_url":"https://api.github.com/users/nataliejeremy/following{/other_user}","gists_url":"https://api.github.com/users/nataliejeremy/gists{/gist_id}","starred_url":"https://api.github.com/users/nataliejeremy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataliejeremy/subscriptions","organizations_url":"https://api.github.com/users/nataliejeremy/orgs","repos_url":"https://api.github.com/users/nataliejeremy/repos","events_url":"https://api.github.com/users/nataliejeremy/events{/privacy}","received_events_url":"https://api.github.com/users/nataliejeremy/received_events","type":"User","site_admin":false},"body":"Closes #632 \r\n@bmackinney @greg-1-anderson Please review. Thanks!","created_at":"2015-10-22T23:11:43Z","updated_at":"2015-10-26T19:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d3f575b9c5fa2ee3c010083fc3616edccfb36d6","assignee":{"login":"rachelwhitton","id":10119525,"avatar_url":"https://avatars.githubusercontent.com/u/10119525?v=3","gravatar_id":"","url":"https://api.github.com/users/rachelwhitton","html_url":"https://github.com/rachelwhitton","followers_url":"https://api.github.com/users/rachelwhitton/followers","following_url":"https://api.github.com/users/rachelwhitton/following{/other_user}","gists_url":"https://api.github.com/users/rachelwhitton/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelwhitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelwhitton/subscriptions","organizations_url":"https://api.github.com/users/rachelwhitton/orgs","repos_url":"https://api.github.com/users/rachelwhitton/repos","events_url":"https://api.github.com/users/rachelwhitton/events{/privacy}","received_events_url":"https://api.github.com/users/rachelwhitton/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058/commits","review_comments_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058/comments","review_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/1058/comments","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/c56dad11aaf11315ad59892224f02e9108b33aff","head":{"label":"pantheon-systems:632-drush-on-pantheon","ref":"632-drush-on-pantheon","sha":"c56dad11aaf11315ad59892224f02e9108b33aff","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"name":"documentation","full_name":"pantheon-systems/documentation","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","created_at":"2014-11-18T19:26:21Z","updated_at":"2015-10-12T15:30:55Z","pushed_at":"2015-10-26T18:49:21Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":92446,"stargazers_count":29,"watchers_count":29,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"open_issues_count":68,"forks":91,"open_issues":68,"watchers":29,"default_branch":"master"}},"base":{"label":"pantheon-systems:master","ref":"master","sha":"af6e9649b287d309e6b3d81dbe8e956c3b3e3154","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"name":"documentation","full_name":"pantheon-systems/documentation","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","created_at":"2014-11-18T19:26:21Z","updated_at":"2015-10-12T15:30:55Z","pushed_at":"2015-10-26T18:49:21Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":92446,"stargazers_count":29,"watchers_count":29,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"open_issues_count":68,"forks":91,"open_issues":68,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/1058"},"issue":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/1058"},"comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/1058/comments"},"review_comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058/comments"},"review_comment":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/1058/commits"},"statuses":{"href":"https://api.github.com/repos/pantheon-systems/documentation/statuses/c56dad11aaf11315ad59892224f02e9108b33aff"}}}}