Pantheon Community

Discussion for doc: Terminus Command Reference

Terminus Command Reference
How can i show / get selected sites only. like my sites name are myorg-uk and myorg-us etc there are arround 20+ sites but i want to select only myorg-uk and myowg-us then how can i pass to --name paramter. is any way other then regix expression bcz my sites name are unique there no regix possible

terminus site:list --name

1 Like

If you only want to send commands to myorg-uk and myorg-us, I’d just hard code them, honestly. Alternatively, set up a script with a command line argument that will determine the site to which commands are sent. Then, you can run the command twice and it’ll work for other sites in the future.

Are you writing a bash script? If so, this could be helpful: Just scroll down to the Command Line Options header. That’s how I tend to do them.

1 Like