{"id":2173,"date":"2019-01-02T07:59:42","date_gmt":"2019-01-02T07:59:42","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/edit-installation-from-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"edit-installation-from-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/edit-installation-from-cli\/","title":{"rendered":"Edit Installation from CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Edit an installation from Command Line<\/h3>\n\n\n\n<p>The below command checks if the Softaculous records are not updated i.e. if a user has manually updated an installation, hence the Softaculous records are not updated. This utility will help you to update the Softaculous records.<\/p>\n\n\n\n<p><strong>Softaculous allows you to edit 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 edit an installation&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --editdetail --user=USER --sid=SID --update_records=1\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>That&#8217;s it. The installation records are now updated.<\/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;editdetail<\/strong>&nbsp;as this parameter will initiate the editdetail function.<\/li><li><strong>&#8211;user=USERNAME<\/strong>&nbsp;&#8211; Here&nbsp;<strong>USERNAME<\/strong>&nbsp;is the user whose records you want to update.<\/li><li><strong>&#8211;sid=SID<\/strong>&nbsp;&#8211; Here&nbsp;<strong>sid<\/strong>&nbsp;is the Script ID of the script you want to update the records for. Eg:&nbsp;<strong>26<\/strong>&nbsp;for&nbsp;<strong>WordPress<\/strong>&nbsp;<br><\/li><\/ul>\n\n\n\n<p>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;show_outdated_version=1<\/strong>&nbsp;&#8211; You can use this to list the outdated installation(s) of the specified user.<\/li><li><strong>&#8211;eu_auto_upgrade=0<\/strong>  You can use this parameter to select auto upgrade preference for the installation, (<strong>parameter<\/strong> <strong>options<\/strong>) : 0 &#8211; To disable auto upgrade, 1 &#8211;  Upgrade to any latest version available (<strong>Major<\/strong> as well as <strong>Minor<\/strong>) , 2-  Upgrade to <strong>Minor<\/strong> versions only <\/li><li><strong>&#8211;auto_upgrade_plugins=1 <\/strong>&#8211; You can use this to enable auto upgrade for plugin.<\/li><li><strong>&#8211;auto_upgrade_themes=1<\/strong> &#8211; You can use this to enable auto upgrade for theme. <\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2173","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2173","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=2173"}],"version-history":[{"count":8,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2173\/revisions"}],"predecessor-version":[{"id":5264,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2173\/revisions\/5264"}],"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=2173"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}