iCloud is the easiest way to make sure all your important content is everywhere you are. iCloud stores your documents, photos, music, apps, contacts, and calendars, so you can access them anytime you’re connected to the web.
You can use your System Preferences, click Apple ID > iCloud, then select Find My Mac. See the Apple Support article What is iCloud? in the macOS User Guide.