WP_CLI\Utils\parse_ssh_url() Edit

Parse a SSH url for its host, port, and path.


Usage Usage

WP_CLI\Utils\parse_ssh_url( $url, $component = -1 )
@return (mixed)

Top ↑

Notes Notes

Similar to parse_url(), but adds support for defined SSH aliases.

host OR host/path/to/wordpress OR host:port/path/to/wordpress

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.


Top ↑