To enable iCloud Photos sync on your Mac, do the following:
Turn on iCloud Photos
Open Safari and go to iCloud.com. Log in with your iCloud account. In the Photos tab, tap Upload > Photo Library. Select the picture(s) you want to upload and tap Add.
When you enable iCloud Photo Library, it uses your iCloud storage space to upload all images and video you've either taken, screenshot, saved, or imported on any of your iOS devices or Macs.
Turning on My Photo Stream on a device with iCloud Photo Library is enabled allows the device to import Photo Stream photos from other non-iCloud devices and also send new photos out to My Photo Stream for display on those devices.
To enable iCloud Photos on your iPhone, iPad or iPod Touch, follow these steps:
Mac: How to free up space with iCloud Photos optimized storage
In the Photos app on your Mac, choose Photos > Preferences, then click iCloud. Select the iCloud Photos checkbox. Select one of the following options: Download Originals to this Mac: Stores the full-size versions of your photos both on your Mac and in iCloud.
If you have an earlier version of macOS, go to System Preferences > iCloud. Click Options next to Photos, then select iCloud Photos.
On>
Go to “Preferences.” Click on the “iCloud” tab. Make sure the “iCloud Photos” checkbox is checked. This will start uploading all images stored in the Photos app to iCloud and sync photos taken from then on.
Turn on iCloud Photos In the Photos app on your Mac, choose Photos > Preferences, then click iCloud. Select the iCloud Photos checkbox. Select one of the following options: Download Originals to this Mac: Stores the full-size versions of your photos both on your Mac and in iCloud.
If you don't want any of your iCloud pictures on your computer. Go to System Preferences > iCloud and turn off iCloud Photo Library. If you click on the Options button in the category, you can turn off single parts of iCloud and keep others on.
Turn on iCloud Photos Click iCloud in the Apple ID preferences sidebar, then select Photos in the list of apps. In the Photos app on your Mac, choose Photos > Preferences, then click iCloud. Select the iCloud Photos checkbox.
How to Backup Mac Photos to Your iCloud Photo Library