Joplin is an open-source Evernote alternative with apps for Linux, Windows, Mac, Android & iOS. There's also a CLI client, and sync support using OneDrive.