• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

listing domains on CLI

M

MykelS

Guest
hi,

apologies if this question has been asked before, i cannot find a response here or on google (or even the documentation) and im stumped.

does anyone know how to get a list of domains currently hosted?

i need just the domain names and it needs to be on the CLI - not through the web interface.

thanks,
mykel
 
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select name from domains"
 
Back
Top