dword-design/wp-cli-ssh-command

WP-CLI command to create a persistent SSH connection to a site alias.

dev-master 2017-06-04 23:56 UTC

This package is not auto-updated.

Last update: 2024-04-12 20:39:47 UTC


README

This command allows to connect to an SSH alias and stay connected. The core functionality only allows to execute single commands via SSH.

Installation

Since the package index of WP-CLI is currently on hold, the package has to be installed by hand:

$ cd ~/.wp-cli/packages/
$ composer require dword-design/wp-cli-ssh-command

Usage

Configure your SSH aliases in wp-cli.yml:

@live:
  ssh: user@myserver.de
  path: www

@alias2:
  ...

Connect to the server via the SSH command:

wp ssh @live

TODO

  • Directly navigate into the SSH aliase's path