Any time there are major new versions of software, some of the tooling surrounding the software requires tweaks before everything works like it used to, or as it's documented. Since Drupal 8 and Drush 8 are both relatively young, I expect some growing pains here and there.

One problem I ran into lately was quite a head-scratcher: On Acquia Cloud, I had a cloud hook set up that was supposed to do the following after code deployments:

This code (well, with fra -y instead of cim) works fine for some Drupal 7 sites I work on in Acquia Cloud, but it seems that database updates were detected but never run, and configuration changes were detected but never made... it took a little time to see what was happening, but I eventually figured it out.

# I forgot a -y, so Drush never actually executed the changes!drush @${drush_alias} cim -y vcs

For the first issue, Acquia cloud generates its own Drush alias files, and in all the aliases, it includes some options like site and env. It seems that Drush < 8 would just ignore extra options like those... but Drush 8.x throws an error and stops execution for the current task because of those extra variables. Using --strict=0 tells Drush to squelch any erros thrown by those extra options. Eventually, I'm guessing Acquia Cloud's Drush aliases will be made to be fully-compatible with Drush 8.x, but this workaround is fine for now.

For the second issue, it was just my boneheadedness... if you're running any command that requires a prompt non-interactively (e.g. through an automated system like cloud hooks), you have to add the 'assume-yes' option, -y, just like I used to with fra -y in Drupal 7!

Before, I would get the following error message on every Cloud deployment:

The following updates are pending:

custom module : 8001 - Add customizations.

Do you wish to run all pending updates? (y/n): yUnknown options: --site, --env. See `drush help [error]updatedb-batch-process` for available options. To suppress thiserror, add the option --strict=0.Unknown options: --site, --env. See `drush help cache-rebuild` for [error]available options. To suppress this error, add the option --strict=0.Finished performing updates. [ok]

Even though it says 'Finished performing updates', they didn't actually get run. Now it runs the updates without any issue:

Comments

To add extra metadata to a generated alias file that should not be interpreted as an option, prefix the option name with a '#', e.g. '#site' and '#env' instead of 'site' and 'env'. If someone else is adding the metadata for you, then your easiest option is --strict, as described above.