{"id":2235,"date":"2019-01-02T09:57:18","date_gmt":"2019-01-02T09:57:18","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/enable-disable-pre-download-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"enable-disable-pre-download-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/enable-disable-pre-download-cli\/","title":{"rendered":"Enable\/Disable Pre Download CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Softaculous allows you to enable\/disable pre download for Scripts from command line.&nbsp;<br><\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note\u00a0<\/strong>: This has been added in Softaculous 5.1.3<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enable Pre Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to&nbsp;<strong>Enable Pre Download<\/strong>&nbsp;for scripts&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --enable_pre_download --sid=26,413\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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 --enable_pre_download --sid=26,413\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In the above example 26 is the ID for WordPress and 413 is the ID for Joomla, so the command will enable pre download for WordPress and Joomla.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Parameters<\/strong>&nbsp;<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>&#8211;enable_pre_download<\/strong>&nbsp;: This parameter will initiate the enable pre download function<\/li><li><strong>&#8211;sid=ID,ID<\/strong>&nbsp;: Pass the script ID of the scripts for which you want to enable pre download. You can pass multiple script ids (comma separated) as well.<\/li><li>That&#8217;s it. Pre Download will be enabled for the Scripts you passed in parameter.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Disable Pre Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to&nbsp;<strong>Disable Pre Download<\/strong>&nbsp;for scripts&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --disable_pre_download --sid=26,413\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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 --disable_pre_download --sid=26,413\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In the above example 26 is the ID for WordPress and 413 is the ID for Joomla, so the command will disable pre download for WordPress and Joomla.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Parameters<\/strong>&nbsp;<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>&#8211;disable_pre_download<\/strong>&nbsp;: This parameter will initiate the disable pre download function<\/li><li><strong>&#8211;sid=ID,ID<\/strong>&nbsp;: Pass the script ID of the scripts for which you want to disable pre download. You can pass multiple script ids (comma separated) as well.<\/li><li>That&#8217;s it. Pre Download will be disabled for the Scripts you passed in parameter.<\/li><\/ul>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":14,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2235","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2235","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=2235"}],"version-history":[{"count":5,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2235\/revisions"}],"predecessor-version":[{"id":2797,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2235\/revisions\/2797"}],"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=2235"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}