|
| 1 | +# wp cache patch |
| 2 | + |
| 3 | +Update a nested value from the cache. |
| 4 | + |
| 5 | +### OPTIONS |
| 6 | + |
| 7 | +<action> |
| 8 | +: Patch action to perform. |
| 9 | +\--- |
| 10 | +options: |
| 11 | + - insert |
| 12 | + - update |
| 13 | + - delete |
| 14 | +\--- |
| 15 | + |
| 16 | +<key> |
| 17 | +: Cache key. |
| 18 | + |
| 19 | +<key-path>... |
| 20 | +: The name(s) of the keys within the value to locate the value to patch. |
| 21 | + |
| 22 | +[<value>] |
| 23 | +: The new value. If omitted, the value is read from STDIN. |
| 24 | + |
| 25 | +[\--group=<group>] |
| 26 | +: Method for grouping data within the cache which allows the same key to be used across groups. |
| 27 | +\--- |
| 28 | +default: default |
| 29 | +\--- |
| 30 | + |
| 31 | +[\--expiration=<expiration>] |
| 32 | + : Define how long to keep the value, in seconds. `0` means as long as possible. |
| 33 | + --- |
| 34 | + default: 0 |
| 35 | + --- |
| 36 | + |
| 37 | +[\--format=<format>] |
| 38 | +: The serialization format for the value. |
| 39 | +\--- |
| 40 | +default: plaintext |
| 41 | +options: |
| 42 | + - plaintext |
| 43 | + - json |
| 44 | +\--- |
| 45 | + |
| 46 | +### GLOBAL PARAMETERS |
| 47 | + |
| 48 | +These [global parameters](https://make.wordpress.org/cli/handbook/config/) have the same behavior across all commands and affect how WP-CLI interacts with WordPress. |
| 49 | + |
| 50 | +| **Argument** | **Description** | |
| 51 | +|:----------------|:-----------------------------| |
| 52 | +| `--path=<path>` | Path to the WordPress files. | |
| 53 | +| `--url=<url>` | Pretend request came from given URL. In multisite, this argument is how the target site is specified. | |
| 54 | +| `--ssh=[<scheme>:][<user>@]<host\|container>[:<port>][<path>]` | Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "docker-compose-run", "vagrant"). | |
| 55 | +| `--http=<http>` | Perform operation against a remote WordPress installation over HTTP. | |
| 56 | +| `--user=<id\|login\|email>` | Set the WordPress user. | |
| 57 | +| `--skip-plugins[=<plugins>]` | Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded. | |
| 58 | +| `--skip-themes[=<themes>]` | Skip loading all themes, or a comma-separated list of themes. | |
| 59 | +| `--skip-packages` | Skip loading all installed packages. | |
| 60 | +| `--require=<path>` | Load PHP file before running the command (may be used more than once). | |
| 61 | +| `--exec=<php-code>` | Execute PHP code before running the command (may be used more than once). | |
| 62 | +| `--context=<context>` | Load WordPress in a given context. | |
| 63 | +| `--[no-]color` | Whether to colorize the output. | |
| 64 | +| `--debug[=<group>]` | Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help. | |
| 65 | +| `--prompt[=<assoc>]` | Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values. | |
| 66 | +| `--quiet` | Suppress informational messages. | |
0 commit comments