{"id":2167,"date":"2019-01-02T07:55:28","date_gmt":"2019-01-02T07:55:28","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/import-installation-from-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"import-installation-from-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/import-installation-from-cli\/","title":{"rendered":"Import installation from CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Import an Installation from Command Line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Softaculous allows you to import an installation from command line. Here is the guide:<\/strong>&nbsp;<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to import an installation&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --import --sid=SID --user=USER_NAME --url=URL_OF_INSTALLATION\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>That&#8217;s it. The installation is now imported to Softaculous.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Variables<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be&nbsp;<strong>&#8211;import<\/strong>&nbsp;as this parameter will initiate the import function.<\/li><li><strong>&#8211;user=USERNAME<\/strong>&nbsp;&#8211; Here&nbsp;<strong>USERNAME<\/strong>&nbsp;is the control panel username whose records you want to import.<\/li><li><strong>&#8211;sid=SID<\/strong>&nbsp;&#8211; Here&nbsp;<strong>sid<\/strong>&nbsp;is the Script ID of the script which is installed. Eg:&nbsp;<strong>26<\/strong>&nbsp;for&nbsp;<strong>WordPress<\/strong>&nbsp;<br><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can get a complete list of script ids here&nbsp;:&nbsp;<a href=\"http:\/\/www.softaculous.com\/scripts.php\">http:\/\/www.softaculous.com\/scripts.php<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>&#8211;url=URL_OF_INSTALLATION<\/strong>&nbsp;&#8211; Here&nbsp;<strong>URL<\/strong>&nbsp;is the full URL of the installation (Including http).<\/li><\/ul>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2167","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=2167"}],"version-history":[{"count":3,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2167\/revisions"}],"predecessor-version":[{"id":5268,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2167\/revisions\/5268"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1686"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=2167"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}