wp-cli/wp-cli — pull request #55 by scribu (2013-04-29 15:37:12+00:00)
Title: Make `wp db query` accept a file or STDIN

Example:

```
wp db query < my-dump.sql
```

From https://github.com/andreascreten/wp-cli/issues/44#issuecomment-3341633