Hi
We're using Views date export that way :

drush views-data-export export views_data_export_2 test.txt

The problem is that in export:views_data_export_2 we're using some contextual filters (in this case, the nid) to export only one thing, according to the nid.

Is it possible to pass that nid in the command line
drush views-data-export export views_data_export_2 test.txt ?

Can't find out how to do that.
Thanks for help
Best regards

D.

CommentFileSizeAuthor
#1 test.txt30 bytesdbourrion
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbourrion’s picture

FileSize
30 bytes

Hi

I've try
drush views-data-export export views_data_export_2?nid=352 test.txt

No errors but test.txt only contains , lignes

Any ideas to help ?

D.

Steven Jones’s picture

Status: Active » Closed (duplicate)

This is a much-needed feature: #1483118: A way to set view arguments when running from Drush CLI. Follow there for updates.