Allows exporting all dashboards to a --dir or filtering dashboards by title. If no --dir is specified, a single dashboard must be found and it will be sent to stdout which can be piped to a file. Fixes #1498