Restore a deleted note

Open the Joplin database with SQLite3

sqlite3 ~/.config/joplin-desktop/database.sqlite

Select latest revisions to find your note's item id.

sqlite> select item_id, body_diff, created_time from revisions order by created_time;

Open the command palette in Joplin with Cmd+Shift+P and enter

restoreNoteRevision <item_id>