Get the dcm4che tk. In there you will find the binary dcmqr. Here is an example of how to move files from dcm4chee (or any PACS) to your local filesystem.
dcmqr -L LISTENER:11113 PACSAE@PACSIP:PACSPORT -cmove LISTENER -qModalitiesInStudy=CT-cstore CT -cstoredest .
-L is the listener ae title. You will need to specify this in probably 99% of the cases.
-cmove is the command for cmove and again the listener AE.
-qModalitiesInStudy is just one example. Lots of things you can query for but you will need to know the modality for the -cstore option.
-cstoredest is where on your local file system you want to store the files.