brctl is a command line utility for managing the CloudDocs (iCloud) daemon.

bctrl status | grep "somefile.ext" could be useful for checking the status of a particular file.