Configuration Files

Hi, I’d like to maintain my logseq configuration files as part of my dotfiles, but I’m not able to figure out which files to pick up. First and foremost, at least in Linux, there are two configuration folders, $HOME/.logseq and $HOME/.config/Logseq, and inside those folders seem to be configuration files as well state files. Regarding the plugins, should I add to my dotfiles the whole $HOME/.config/plugins folder? Is it not possible to install plugins programmatically or something like that?

Is there any document about it?

Thanks!