From 9f36affa01412a23a7d02efe01431798aa1a4918 Mon Sep 17 00:00:00 2001 From: Oleg Voronkovich Date: Wed, 8 Mar 2023 18:24:33 +0300 Subject: [PATCH] Add WP-CLI recipe --- contrib/wp-cli.php | 34 ++++++++++++++++++++++++++++++++++ docs/contrib/README.md | 1 + docs/contrib/wp-cli.md | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 contrib/wp-cli.php create mode 100644 docs/contrib/wp-cli.md diff --git a/contrib/wp-cli.php b/contrib/wp-cli.php new file mode 100644 index 000000000..1110b0edd --- /dev/null +++ b/contrib/wp-cli.php @@ -0,0 +1,34 @@ + + + + +# Wp-cli Recipe + +```php +require 'contrib/wp-cli.php'; +``` + +[Source](/contrib/wp-cli.php) + + + +## Configuration + +- `bin/wp` *(optional)*: set WP-CLI binary, automatically detected otherwise. + +## Usage + +```php +task('deploy:wp-core-download', function() { + run('cd {{release_or_current_path}} && {{bin/wp}} core download'); +}); +``` + + +## Configuration +### bin/wp +[Source](https://github.com/deployphp/deployer/blob/master/contrib/wp-cli.php#L17) + + +:::info Autogenerated +The value of this configuration is autogenerated on access. +::: + + + + +