{"id":2214,"date":"2019-01-02T09:44:32","date_gmt":"2019-01-02T09:44:32","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/list-installations-from-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"list-installations-from-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/list-installations-from-cli\/","title":{"rendered":"List Installations from CLI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>This guide will help you to get all installations list<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">System Admin and User both can list the installations from command line<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">For System Admin<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Admin needs to execute this utility as root and pass the parameter &#8211;user=USER to get the list of installations of that particular user.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>USER<\/strong>&nbsp;is the username for which you want to list the Installations.<\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note<\/strong>&nbsp;: For Plesk please enter USER as DOMAIN NAME (i.e &#8211;user=example.com).<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For&nbsp;<strong>cPanel<\/strong>, SSH to your server as root and enter the following command&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 --list_ins --user=USER <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For&nbsp;<strong>Direct Admin<\/strong>, SSH to your server as root and enter the following command&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/bin\/php -d open_basedir=\"\" -d safe_mode=0 -d disable_functions=\"\" \/usr\/local\/directadmin\/plugins\/softaculous\/cli.php --list_ins --user=USER<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For\u00a0<strong>Plesk<\/strong> SSH to your server as root and enter the following command\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/softaculous\/bin\/php \/usr\/local\/softaculous\/cli.php --list_ins --user=USER<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For\u00a0<strong>ISPManager<\/strong>, SSH to your server as root and enter the following command\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/usr\/local\/softaculous\/cli.php --list_ins --user=USER<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For&nbsp;<strong>InterWorx<\/strong>, SSH to your server as root and enter the following command&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/home\/interworx\/bin\/php \/usr\/local\/softaculous\/cli.php --list_ins --user=USER<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List in Tabular format<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>By default the installations will be listed in tabular format.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">List in JSON\/Serialize\/XML format<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to fetch the list in JSON\/PHP Serialize\/XML format you need to pass the&nbsp;<strong>&#8211;resp<\/strong>&nbsp;parameter&nbsp;:<ul><li>For JSON&nbsp;:&nbsp;<strong>&#8211;resp=json<\/strong><\/li><li>For PHP Serialize&nbsp;:&nbsp;<strong>&#8211;resp=serialize<\/strong><\/li><li>For XML&nbsp;:&nbsp;<strong>&#8211;resp=xml<\/strong><\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --user=USER --resp=json <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List by Script<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to filter the list by script you need to pass the&nbsp;<strong>&#8211;sid<\/strong>&nbsp;parameter&nbsp;:<ul><li>For WordPress&nbsp;:&nbsp;<strong>&#8211;sid=26<\/strong><\/li><li>For Joomla&nbsp;:&nbsp;<strong>&#8211;sid=413<\/strong><\/li><li>Similarly pass the script id for any script you want to list the installations for.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --user=USER --sid=26 <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List by Installation id<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to list the details of a particular installation you need to pass the&nbsp;<strong>&#8211;insid<\/strong>&nbsp;parameter&nbsp;:<ul><li>List installations for insid&nbsp;<strong>26_55678<\/strong>&nbsp;:&nbsp;<strong>&#8211;insid=26_55678<\/strong><\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --user=USER --insid=26_55678 <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Get only Installations Count<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to get only the count of installations pass the <strong>count<\/strong> parameter:<ul><li>&#8211;count=1<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --user=USER --count=1<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List Installations of All Users<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to get the list of installations of <strong>ALL Users <\/strong>do not pass the <strong>user<\/strong> parameter:<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">For Endusers<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>This utility will list the installations for the user currently logged in as.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For&nbsp;<strong>cPanel<\/strong>, SSH to your server and enter the following command&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 --list_ins<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For&nbsp;<strong>Direct Admin<\/strong>, SSH to your server and enter the following command&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/bin\/php -d open_basedir=\"\" -d safe_mode=0 -d disable_functions=\"\" \/usr\/local\/directadmin\/plugins\/softaculous\/cli.php --list_ins<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For\u00a0<strong>Plesk<\/strong> SSH to your server and enter the following command\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/softaculous\/bin\/php \/usr\/local\/softaculous\/cli.php --list_ins <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For\u00a0<strong>ISPManager<\/strong>, SSH to your server and enter the following command\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/usr\/local\/softaculous\/cli.php --list_ins <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>For&nbsp;<strong>InterWorx<\/strong>, SSH to your server and enter the following command&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/usr\/local\/softaculous\/cli.php --list_ins <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List in Tabular format<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>By default the installations will be listed in tabular format.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">List in JSON\/Serialize\/XML format<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to fetch the list in JSON\/PHP Serialize\/XML format you need to pass the&nbsp;<strong>&#8211;resp<\/strong>&nbsp;parameter&nbsp;:<ul><li>For JSON&nbsp;:&nbsp;<strong>&#8211;resp=json<\/strong><\/li><li>For PHP Serialize&nbsp;:&nbsp;<strong>&#8211;resp=serialize<\/strong><\/li><li>For XML&nbsp;:&nbsp;<strong>&#8211;resp=xml<\/strong><\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --resp=json <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List by Script<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to filter the list by script you need to pass the&nbsp;<strong>&#8211;sid<\/strong>&nbsp;parameter&nbsp;:<ul><li>For WordPress&nbsp;:&nbsp;<strong>&#8211;sid=26<\/strong><\/li><li>For Joomla&nbsp;:&nbsp;<strong>&#8211;sid=413<\/strong><\/li><li>Similarly pass the script id for any script you want to list the installations for.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --sid=26 <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List by Installation id<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to list the details of a particular installation you need to pass the&nbsp;<strong>&#8211;insid<\/strong>&nbsp;parameter&nbsp;:<ul><li>List installations for insid&nbsp;<strong>26_55678<\/strong>&nbsp;:&nbsp;<strong>&#8211;insid=26_55678<\/strong><\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --insid=26_55678 <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Get only Installations Count<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you would like to get only the count of installations pass the <strong>count<\/strong> parameter:<ul><li>&#8211;count=1<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong>&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 --list_ins --count=1<\/pre>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2214","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2214","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=2214"}],"version-history":[{"count":10,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2214\/revisions"}],"predecessor-version":[{"id":4113,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2214\/revisions\/4113"}],"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=2214"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}