ICloud – A command line utility to test the status of files in iCloud drive directory

filesystemicloudterminal

Is there a command-line program that determines the status of files (uploaded, uploading, ineligible, etc) in the iCloud drive?

For example, I would like to be able to use a program such as find to get a list of files that have not been successfully uploaded to iCloud drive.

Best Answer

You can use brctl status.

It outputs alot, but you can grep pretty easily, for example brctl status |grep needs-sync-up |cut -d'"' -f2 will show you all files waiting for being uploaded (without their path), or use brctl status |grep 'somefile.ext' for checking the status of somefile.ext.

See brctl --help for more.