Remote Port as a Variable

Hi there,

I’m looking at setting up WP-CLI for my local sites and the only draw back I see with it is that you have to manually enter the port in for every single site.

Ideally, I would like to be setup to the point that the remote port is automatically picked up by WP-CLI to save the time of entering it myself (and if possible, the remote host as well).

Is there a way for this to be achieved, could the host and port be added as environmental values on site creation, are they available already and I’m blind?

Cheers,

Jack

**This is the tool I am using for WP-CLI currently https://www.npmjs.com/package/local-wpcli

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.