I have submitted a simple query using the Force.com CLI like so:
will@mint ~ $ force bulk query CallRecord__c "select Account__c, CallFlow__c from CallRecord__c"
Query Submitted
To retrieve query status use
force bulk query status 750F0000002ok5PIAQ 751F0000004QRtfIAG
To retrieve query data use
force bulk query retrieve 750F0000002ok5PIAQ 751F0000004QRtfIAG
Seems simple enough, so I periodically checked its progress until it was completed:
will@mint ~ $ force bulk query status 750F0000002ok5PIAQ 751F0000004QRtfIAG
Id 751F0000004QRtfIAG
JobId 750F0000002ok5PIAQ
State Completed
CreatedDate 2015-07-08T21:27:22.000Z
SystemModstamp 2015-07-08T22:02:10.000Z
NumberRecordsProcessed 11313805
But then when I try to retrieve the results, I get nothing:
will@mint ~ $ force bulk query retrieve 750F0000002ok5PIAQ 751F0000004QRtfIAG | tee out.txt
will@mint ~ $ cat out.txt
will@mint ~ $
Well, I guess not nothing, but a newline is not the expected results. Am I misunderstanding how bulk queries work, or am I just using force
incorrectly?