wp-cli-package wp-cli-ssh-command
WP-CLI command to create a persistent SSH connection to a site alias.
dword-design/wp-cli-ssh-command
WP-CLI command to create a persistent SSH connection to a site alias.
- Monday, June 5, 2017
- by Dword
- Repository
- 1 Watchers
- 0 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 1 Versions
- 0 % Grown
WP-CLI SSH Command
This command allows to connect to an SSH alias and stay connected. The core functionality only allows to execute single commands via SSH., (*1)
Installation
Since the package index of WP-CLI is currently on hold, the package has to be installed by hand:, (*2)
$ cd ~/.wp-cli/packages/
$ composer require dword-design/wp-cli-ssh-command
Usage
Configure your SSH aliases in wp-cli.yml
:, (*3)
@live:
ssh: user@myserver.de
path: www
@alias2:
...
Connect to the server via the SSH command:, (*4)
wp ssh @live
TODO
- Directly navigate into the SSH aliase's
path