-
Notifications
You must be signed in to change notification settings - Fork 357
Document ssh+path configuration limitation in wp-cli.yml #622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -334,6 +334,29 @@ Supported types are: | |||||
|
|
||||||
| All connection types support an optional `path` suffix to specify a directory to `cd` to before running WP-CLI; `path` is a full system path starting with either `/` or `~`. (If `WP_CLI_SSH_PRE_CMD` is specified, `cd` is run after this pre-command.) | ||||||
|
|
||||||
| ### Using path with SSH | ||||||
|
|
||||||
| When using SSH connections, you can specify the remote WordPress path in two ways: | ||||||
|
|
||||||
| 1. **As a suffix in the SSH connection string** (recommended): | ||||||
| ``` | ||||||
| # Using the path suffix directly in the ssh parameter | ||||||
| ssh: user@host~/path/to/wordpress | ||||||
| ``` | ||||||
|
|
||||||
| 2. **As a separate option in an alias**: | ||||||
| ```yaml | ||||||
| @staging: | ||||||
| ssh: user@host | ||||||
| path: /path/to/wordpress | ||||||
| ``` | ||||||
|
|
||||||
| **Important:** When using `ssh` and `path` as separate top-level options in `wp-cli.yml` (not within an alias), the `path` option may not be applied correctly. In such cases, use one of the following workarounds: | ||||||
|
||||||
| **Important:** When using `ssh` and `path` as separate top-level options in `wp-cli.yml` (not within an alias), the `path` option may not be applied correctly. In such cases, use one of the following workarounds: | |
| **Important:** When using `ssh` and `path` as separate top-level options in `wp-cli.yml` (not within an alias), the `path` option will be ignored. In such cases, use one of the following workarounds: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first code block is missing the
yamllanguage marker. The second code block at line 348 hasyamlmarker, but this one doesn't. For consistency, both should have the same format.