Tried to backup Joplin from CLI but getting Not authenticated with (None)

Operating system


Joplin version


Desktop version info

Joplin 2.14.9 (prod, linux)

Client ID: 31a65565d08c44a6beabd6fb2e6b47a9
Sync Version: 3
Profile Version: 45
Keychain Supported: No

Revision: 3d7f86498 (dev)

Admonition markdown extension: 1.1.0
Combine notes: 1.2.2
Convert Text To New Note: 1.5.1
Create and go to tags and @notebooks: 1.3.7
Life Calendar: 1.4.1
Math Mode: 0.6.2
Note Tabs: 1.4.0
Quick Links: 1.2.4
Slash Commands: Datetime & More: 1.3.2
Templates: 2.4.0
Text Colorize: 1.2.5
turnToChart: 1.9.3

Sync target

File system


Markdown Editor

What issue do you have?

I'm trying to backup joplin using the command

$JOPLIN_BIN --log-level debug export --format jex "$BACKUP_DIR"

I installed the CLI using npm i -g joplin. However, I get the message

Not authenticated with (None). Please provide any missing credentials.

And it doesn't export anything.

How can I authenticate the CLI to recognize my home joplin?


$JOPLIN_BIN export --format="jex" /path/to/backup/output.jex

thanks, now I used the command

$JOPLIN_BIN export --format jex "$BACKUP_DIR$filename"

and I got

There is no data to export.

joplin CLI has another notebook (empty one), how to instruct it to use the desktop one?

Joplin CLI seems to use /home/kamil/.config/joplin and desktop seems to use /home/kamil/.config/joplin-desktop Is linking enough like

rm -rf "/home/kamil/.config/joplin"
ln -s "/home/kamil/.config/joplin-desktop" "/home/kamil/.config/joplin"?

You can do this, but then you have to make sure that the desktop app and cli never run together, otherwise the database can be corrupted (two clients trying to write to it) and then you need the backup :wink:

This is also the reason why there are two separate folders for desktop, dev and cli or multiple Joplin instances are not supported.

Oh thanks, oof it's good I didn't do it :sweat_smile:

So what's the solution? Is there a way to run a CLI command to export all data without having to close the desktop application or corrupting the database?

Btw it's also good that I didn't try to run dev application and opening the main destkop notebook using it, I learned how to create a deb package and I did it instead

For CLI I think to sync the data again. For Desktop, you can use the Backup plugin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.