Sail Knowledgebase

How to export domains and SSL certificates with Sail CLI

In this article you will learn how to use the sail domain export command to create and download an export of all your domains configuration and SSL certificates.

If you like Sail, don't forget to give us a star on GitHub!

Sail domain export

To create a new domains and SSL certificates export from your site, run:

sail domain export

This will make a copy of all your SSL certificates, Let's Encrypt renewal configuration and account settings, along with your domains configuration in Sail.

The resulting copy will be archived into the .backups directory in your local Sail working copy and will have a .domains.tar.gz extension. To view all your backups in your local copy, run:

cd /path/to/project
ls -lh .backups

To import the domains configuration to a new Sail application, you can run sail domain import. You can learn more about it here.

If you're having trouble with importing/exporting domain configurations with Sail, please refer to our getting help section.