To sync using the command line you can use joplin sync && joplin e2ee decrypt
joplin sync && joplin e2ee decrypt