Skip to main content


The command-line interface (CLI) tool supports exporting JMAP accounts, which allows system administrator to perform comprehensive backups or transfer user data to other mail servers. The exported data is stored in JSON files, which are structured according to the JMAP schema. This standardized format ensures compatibility and interoperability across different systems and platforms that support the JMAP protocol. An exported JMAP account is not limited to only the emails of the user, but it also includes mailboxes, Sieve scripts, identities, and vacation responses. This means that all critical account information, settings, and data are encapsulated within the export.

The CLI command used to export an account is export account and accepts the following options:

Export a JMAP account

Usage: stalwart-cli export account [OPTIONS] <ACCOUNT> <PATH>

<ACCOUNT> Account name or email to import messages into
<PATH> Path to export the account to

-n, --num-concurrent <NUM_CONCURRENT>
Number of concurrent blob downloads to perform, defaults to the number of CPUs
-h, --help
Print help


To export a JMAP account, specify the account name and the path to the directory where the account data will be stored:

$ stalwart-cli -u export account john ~/export/john