is there a way to specify the name of the CSV file that results from a command like this: ``` synapse get -q "SELECT * FROM synXXXXXXXX" ``` currently the resulting CSV filename is completely uninformative, _eg_ `SYNAPSE_TABLE_QUERY_73671948.csv` thanks, Sheila

Created by Sheila M Reynolds SheilaMReynolds
thanks!
There is not currently an option for this. The **get** command does accept an optional **--downloadLocation** that allows specifying the download directory where files will be downloaded to. In the case of a table query this means downloading the csv file to that directory (though it will still have a uniquely generated name), so using this option the csv could be downloaded to a special path. Alternatively moving the latest SYNAPSE_TABLE_QUERY*.csv file after a successful **get -q** command to a specific path should also have somewhat similar results, e.g. ``` # run a synapse table query and if successful move the most recent table query csv to the desired destination synapse get -q 'select foo from syn25178576' && mv $(ls -t SYNAPSE_TABLE_QUERY*.csv | head -1) /path/to/file.csv ``` I will create a feature request issue for this.
@jordank Does the 'synapse get' command return the file name such that it can be 'piped' into the 'mv' command, and so renamed to something else?

option to specify output file name from `synapse get -q` CLI command? page is loading…