{"id":6128,"date":"2025-01-31T12:10:10","date_gmt":"2025-01-31T12:10:10","guid":{"rendered":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/download-script-package-cli\/"},"modified":"2025-01-31T12:47:39","modified_gmt":"2025-01-31T12:47:39","slug":"download-script-package-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/download-script-package-cli\/","title":{"rendered":"Download Script Package CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p>Softaculous allows you to Download Scripts packages from command line.&nbsp;<br><\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note&nbsp;<\/strong>: This has been added in Softaculous 6.1.7<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Download Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the following command to&nbsp;<strong>Download<\/strong> scripts:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --download_script --sid=26,413 --sp=1<br><\/pre>\n\n\n\n<p>E.g. for Webuzo :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/emps\/bin\/php \/usr\/local\/softaculous\/cli.php --download_script --sid=26,413 --sp=1<br><\/pre>\n\n\n\n<p>E.g. for cPanel&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php --download_script --sid=26,413 --sp=1<br><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>That&#8217;s it. Scripts will be downloaded and saved.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the above command the first parameter should be&nbsp;<strong>&#8211;download_script <\/strong>as this parameter will initiate the download script function.<\/li>\n\n\n\n<li><strong>&#8211;sid=26,413<\/strong> &#8211; This is the script id. You can enable a script or a number of scripts using comma separated list of script ids. 26 is for WordPress, 413 for Joomla, etc. You can find the script id in \/path\/to\/softaculous\/enduser\/scripts.ser<\/li>\n\n\n\n<li><strong>&#8211;sp=1<\/strong> (Optional) &#8211; Pass <strong>1<\/strong> to download the full script package including zip and sql files or <strong>0<\/strong> to download small package i.e. without zip and sql files. Softaculous will download the full package when a user tries to install a script. <\/li>\n\n\n\n<li><strong>&#8211;force=1<\/strong> (Optional) &#8211; Pass this parameter to forcefully re-download the script package even if the package present on the server is latest. By default the package will be downloaded only if a new version of that script is available or the package does not exist.<\/li>\n<\/ul>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-6128","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/6128","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=6128"}],"version-history":[{"count":5,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/6128\/revisions"}],"predecessor-version":[{"id":6135,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/6128\/revisions\/6135"}],"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=6128"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=6128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}