Articles in this section

How to list all domain names via CLI?

Plesk for Windows Plesk for Linux kb: technical

Question

How to list all domain names via the command line interface?

Answer

One can use the following command to list all domain names:

# plesk bin site --list

Alternatively, one can extract those via the database with this command:

# plesk db "SELECT name FROM domains;"

In order for the list to include all domain aliases, please use the command below instead:

# plesk db "SELECT name FROM domains UNION SELECT name FROM domain_aliases"

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.