Cloud File CLI is a command-line utility for interacting with cloud-stored files on macOS. It allows users to materialize (download) or evict (remove locally while keeping in the cloud) files using Apple's NSFileManager.
Forked from kevincar/cloudfile. Added a synchronous option that is useful for use cases where the next command depends on the file being available locally (e.g. a backup script).
cloudfile <command> <file-path>materialize- Downloads the file from the cloudmaterialize-sync- Downloads the file from the cloud synchronously (blocks until the file is fully downloaded)evict- Removes the local copy while retaining it in the cloud
Ensure you have CMake installed before proceeding.
- Clone the repository:
git clone <repo-url> cd <repo-name>
- Run the build script:
chmod +x scripts/build.sh ./scripts/build.sh
- Run the cloudfile binary:
./build/cloudfile
- macOS
- CMake
- Clang (default on macOS)