Sail Knowledgebase

How to import domains and SSL certificates with Sail CLI

In this article you will learn how to use the sail domain import command to import domains configuration and SSL certificates from a previous export.

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

Sail domain import

This command allows you to import a previously exported archive with domains configuration and SSL certificates.

To import a domains and SSL certificates archive to your application, run:

sail domain import /path/to/domains.tar.gz

This will restore a copy of all your SSL certificates, Let's Encrypt renewal configuration and account settings, along with your domains configuration to your current application.

Note that it may overwrite existing SSL certificates when importing to an environment with existing domains and SSL configuration. You can run sail domain list to verify the new list of domains and their HTTPS status. For more information about domain management, visit this page.

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