How can I send Drush commands to Pantheon

381 Views Asked by At

I am trying to migrate my drupal 7 siteto drupal 8 site that resides on pantheon. For this purpose I have installed 3 migration modules as described in the docs. I have added my drush aliases in drush directory and I can see all my sites available:

enter image description here

I am using this drush commands to migrate my data to drupal 8 site on pantheon:

drush @pantheon.syyamtwo.dev drush migrate-upgrade --configure-only

But when I execute this I get the following error:

enter image description here

My drush version is: 8.3.1

1

There are 1 best solutions below

0
On

I prefer using terminus, terminus drush [site-name.site-env] -- drush_command. Where site-name and site-env are your pantheon values.

Here is what that looks like for migration-tools drush commmands on a site name "foo" with an environment "bar":

terminus drush foo.bar -- ms
terminus drush foo.bar -- mim --tag=terms

Notice the use of --, this allows you to pass options to the drush command.