From 043ba53079fff7ec67003e4ba109d924f6b72373 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 1 Dec 2026 16:05:14 +0000 Subject: [PATCH] Regenerate handbook --- bin/command-history.json | 1255 ++++++++++++++++- bin/commands-manifest.json | 389 ++--- bin/handbook-manifest.json | 36 +- commands/ability.md | 2 +- commands/ability/can-run.md | 2 +- commands/ability/category.md | 2 +- commands/ability/category/exists.md | 2 +- commands/ability/category/get.md | 2 +- commands/ability/category/list.md | 2 +- commands/ability/exists.md | 2 +- commands/ability/get.md | 2 +- commands/ability/list.md | 2 +- commands/ability/run.md | 2 +- commands/ability/validate.md | 2 +- commands/ai.md | 2 +- commands/ai/check.md | 2 +- commands/ai/generate.md | 2 +- commands/ai/is-supported.md | 2 +- commands/ai/status.md | 2 +- commands/block.md | 2 +- commands/block/binding.md | 2 +- commands/block/binding/get.md | 2 +- commands/block/binding/list.md | 2 +- commands/block/pattern-category.md | 2 +- commands/block/pattern-category/get.md | 2 +- commands/block/pattern-category/list.md | 2 +- commands/block/pattern.md | 2 +- commands/block/pattern/get.md | 2 +- commands/block/pattern/list.md | 2 +- commands/block/style.md | 2 +- commands/block/style/get.md | 2 +- commands/block/style/list.md | 2 +- commands/block/synced-pattern.md | 2 +- commands/block/synced-pattern/create.md | 2 +- commands/block/synced-pattern/delete.md | 2 +- commands/block/synced-pattern/get.md | 2 +- commands/block/synced-pattern/list.md | 2 +- commands/block/synced-pattern/update.md | 2 +- commands/block/template.md | 2 +- commands/block/template/export.md | 2 +- commands/block/template/get.md | 2 +- commands/block/template/list.md | 2 +- commands/block/type.md | 2 +- commands/block/type/exists.md | 2 +- commands/block/type/get.md | 2 +- commands/block/type/list.md | 2 +- commands/cache/patch.md | 4 +- commands/cli/alias/get.md | 2 +- commands/cli/alias/list.md | 3 +- commands/cli/info.md | 2 + commands/cli/param-dump.md | 5 +- commands/config/add.md | 2 +- commands/config/create.md | 4 +- commands/config/update.md | 2 +- commands/connectors.md | 2 +- commands/connectors/get.md | 3 +- commands/connectors/list.md | 18 +- commands/core/check-update-db.md | 2 +- commands/core/download.md | 4 +- commands/core/install.md | 4 +- commands/core/multisite-install.md | 2 +- commands/core/update.md | 4 +- commands/core/upgrade.md | 4 +- commands/core/verify-checksums.md | 4 +- commands/cron/event/delete.md | 4 +- commands/cron/event/run.md | 4 +- commands/db/check.md | 2 +- commands/db/cli.md | 4 +- commands/db/connect.md | 4 +- commands/db/create.md | 2 +- commands/db/drop.md | 2 +- commands/db/dump.md | 10 +- commands/db/export.md | 10 +- commands/db/import.md | 2 +- commands/db/optimize.md | 2 +- commands/db/query.md | 3 +- commands/db/repair.md | 2 +- commands/db/reset.md | 2 +- commands/db/size.md | 28 +- commands/db/status.md | 78 + commands/db/users.md | 21 + commands/db/users/create.md | 75 + commands/eval-file.md | 4 +- commands/eval.md | 2 +- commands/export.md | 4 +- commands/font.md | 2 +- commands/font/collection.md | 2 +- commands/font/collection/get.md | 2 +- commands/font/collection/is-registered.md | 2 +- commands/font/collection/list-categories.md | 2 +- commands/font/collection/list-families.md | 2 +- commands/font/collection/list.md | 2 +- commands/font/face.md | 2 +- commands/font/face/install.md | 2 +- commands/font/family.md | 2 +- commands/font/family/install.md | 2 +- commands/help.md | 2 +- commands/i18n/audit.md | 2 +- commands/i18n/make-php.md | 4 +- commands/i18n/update-po.md | 4 +- commands/icon.md | 2 +- commands/icon/collection.md | 2 +- commands/icon/collection/get.md | 2 +- commands/icon/collection/is-registered.md | 2 +- commands/icon/collection/list.md | 2 +- commands/icon/get.md | 2 +- commands/icon/is-registered.md | 2 +- commands/icon/list.md | 2 +- commands/icon/render.md | 2 +- commands/import.md | 2 +- commands/language/core/install.md | 2 +- commands/language/core/update.md | 2 +- commands/language/plugin/update.md | 2 +- commands/language/theme/update.md | 2 +- commands/media/import.md | 4 +- commands/media/prune.md | 2 +- commands/media/regenerate.md | 4 +- commands/media/replace.md | 2 +- commands/menu/item/add-post-type-archive.md | 2 +- commands/menu/item/get.md | 2 +- commands/option/list.md | 2 +- commands/package.md | 2 + commands/package/get.md | 2 +- commands/package/install.md | 8 +- commands/package/is-installed.md | 2 +- commands/package/list.md | 2 +- commands/package/uninstall.md | 4 +- commands/package/update.md | 5 +- commands/plugin/activate.md | 4 +- commands/plugin/check-update.md | 2 +- commands/plugin/download.md | 2 +- commands/plugin/install-dependencies.md | 2 +- commands/plugin/install.md | 4 +- commands/plugin/update.md | 4 +- commands/plugin/upgrade.md | 4 +- commands/plugin/verify-checksums.md | 4 +- commands/post/block.md | 2 +- commands/post/block/clone.md | 2 +- commands/post/block/count.md | 2 +- commands/post/block/export.md | 2 +- commands/post/block/extract.md | 2 +- commands/post/block/get.md | 2 +- commands/post/block/import.md | 2 +- commands/post/block/insert.md | 2 +- commands/post/block/list.md | 2 +- commands/post/block/move.md | 2 +- commands/post/block/parse.md | 2 +- commands/post/block/remove.md | 2 +- commands/post/block/render.md | 2 +- commands/post/block/replace.md | 2 +- commands/post/block/update.md | 2 +- commands/post/has-block.md | 2 +- commands/post/has-blocks.md | 2 +- commands/post/revision.md | 2 +- commands/post/revision/diff.md | 2 +- commands/post/revision/prune.md | 2 +- commands/post/revision/restore.md | 2 +- commands/profile/hook.md | 3 + commands/profile/requests.md | 81 ++ commands/search-replace.md | 4 +- commands/server.md | 2 +- commands/shell.md | 2 +- commands/sidebar/exists.md | 2 +- commands/sidebar/get.md | 2 +- commands/sidebar/list.md | 2 +- commands/site-health.md | 2 +- commands/site-health/check.md | 2 +- commands/site-health/info.md | 2 +- commands/site-health/list-info-sections.md | 2 +- commands/site-health/status.md | 2 +- commands/site/create.md | 2 +- commands/site/delete.md | 2 +- commands/site/get.md | 2 +- commands/term/prune.md | 2 +- commands/theme/check-update.md | 2 +- commands/theme/download.md | 2 +- commands/theme/install.md | 4 +- commands/theme/update.md | 4 +- commands/theme/upgrade.md | 4 +- commands/transient/delete.md | 2 +- commands/transient/get.md | 2 +- commands/transient/set.md | 2 +- commands/user/create.md | 2 +- commands/user/privacy-request.md | 2 +- commands/user/privacy-request/complete.md | 2 +- commands/user/privacy-request/create.md | 2 +- commands/user/privacy-request/delete.md | 2 +- commands/user/privacy-request/erase.md | 2 +- commands/user/privacy-request/export.md | 2 +- commands/user/privacy-request/list.md | 2 +- commands/widget/patch.md | 2 +- commands/widget/reset.md | 2 +- references/behat-steps.md | 18 +- .../given-a-custom-wp-content-directory.md | 14 +- references/behat-steps/given-a-database.md | 14 +- .../given-a-dependency-on-current-wp-cli.md | 14 +- ...aded-phar-with-the-same-version-version.md | 14 +- ...gured-wp-content-dir-constant-directory.md | 14 +- ...-new-phar-with-the-same-version-version.md | 14 +- ...php-built-in-web-server-to-serve-subdir.md | 14 +- .../given-a-php-built-in-web-server.md | 14 +- .../behat-steps/given-a-wp-installation-in.md | 14 +- ...ustom-vendor-directory-vendor-directory.md | 14 +- .../given-a-wp-installation-with-composer.md | 14 +- .../behat-steps/given-a-wp-installation.md | 14 +- ...directory-subdomaininstall-installation.md | 14 +- .../behat-steps/given-an-empty-cache.md | 14 +- .../behat-steps/given-an-empty-directory.md | 14 +- .../given-an-empty-non-existent-directory.md | 14 +- .../behat-steps/given-an-file-cache-file.md | 14 +- references/behat-steps/given-download.md | 14 +- ...ese-installed-themes-and-active-themes.md} | 25 +- .../given-replaced-with-in-the-file.md | 14 +- .../given-save-stdout-stderr-as.md | 14 +- .../behat-steps/given-save-the-file-as.md | 14 +- ...that-http-requests-to-will-respond-with.md | 14 +- ...ese-installed-and-active-plugins-themes.md | 126 ++ .../behat-steps/given-these-setup-commands.md | 117 ++ references/behat-steps/given-wp-config-php.md | 14 +- references/behat-steps/given-wp-files.md | 14 +- ...hen-an-email-should-be-sent-not-be-sent.md | 4 +- ...tdout-should-be-a-json-array-containing.md | 4 +- ...tdout-should-be-a-table-containing-rows.md | 4 +- .../then-stdout-should-be-csv-containing.md | 4 +- .../then-stdout-should-be-json-containing.md | 4 +- .../then-stdout-should-be-yaml-containing.md | 4 +- ...should-end-with-a-table-containing-rows.md | 4 +- .../then-stdout-stderr-should-be-a-number.md | 4 +- ...out-stderr-should-be-a-version-string-w.md | 4 +- .../then-stdout-stderr-should-be-empty.md | 4 +- ...en-stdout-stderr-should-not-be-a-number.md | 4 +- .../then-stdout-stderr-should-not-be-empty.md | 4 +- .../then-stdout-stderr-should-not-match.md | 4 +- ...-should-strictly-be-contain-not-contain.md | 4 +- ...e-contents-of-the-file-should-not-match.md | 4 +- ...-exist-not-exist-be-contain-not-contain.md | 4 +- ...hen-the-http-status-code-should-be-code.md | 4 +- .../then-the-return-code-should-not-be.md | 4 +- references/internal-api.md | 3 + references/internal-api/wp-cli-add-hook.md | 6 +- .../internal-api/wp-cli-utils-basename.md | 3 + .../internal-api/wp-cli-utils-esc-like.md | 3 + .../wp-cli-utils-get-named-sem-ver.md | 3 + .../internal-api/wp-cli-utils-http-request.md | 3 + .../wp-cli-utils-is-interactive.md | 64 + .../internal-api/wp-cli-utils-ispiped.md | 3 + .../wp-cli-utils-parse-ssh-url.md | 3 + .../wp-cli-utils-proc-open-compat.md | 3 + .../internal-api/wp-cli-utils-write-csv.md | 3 + 249 files changed, 2557 insertions(+), 667 deletions(-) create mode 100644 commands/db/status.md create mode 100644 commands/db/users.md create mode 100644 commands/db/users/create.md create mode 100644 commands/profile/requests.md rename references/behat-steps/{given-these-installed-and-active-plugins.md => given-only-these-installed-themes-and-active-themes.md} (80%) create mode 100644 references/behat-steps/given-these-installed-and-active-plugins-themes.md create mode 100644 references/behat-steps/given-these-setup-commands.md create mode 100644 references/internal-api/wp-cli-utils-is-interactive.md diff --git a/bin/command-history.json b/bin/command-history.json index 2ef606705..ffdd10bcf 100644 --- a/bin/command-history.json +++ b/bin/command-history.json @@ -1,6 +1,353 @@ { "baseline": "2.4.0", "commands": { + "ability": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "ability can-run": { + "since": "3.0.0", + "generic": true, + "options": { + "--input": "3.0.0" + } + }, + "ability category": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "ability category exists": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "ability category get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "ability category list": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "ability exists": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "ability get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "ability list": { + "since": "3.0.0", + "generic": false, + "options": { + "--category": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--namespace": "3.0.0", + "--public": "3.0.0", + "--show-in-rest": "3.0.0" + } + }, + "ability run": { + "since": "3.0.0", + "generic": true, + "options": { + "--format": "3.0.0", + "--input": "3.0.0" + } + }, + "ability validate": { + "since": "3.0.0", + "generic": true, + "options": { + "--input": "3.0.0" + } + }, + "ai": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "ai check": { + "since": "3.0.0", + "generic": false, + "options": { + "--type": "3.0.0" + } + }, + "ai generate": { + "since": "3.0.0", + "generic": false, + "options": { + "--destination-file": "3.0.0", + "--format": "3.0.0", + "--image": "3.0.0", + "--max-tokens": "3.0.0", + "--model": "3.0.0", + "--provider": "3.0.0", + "--stdout": "3.0.0", + "--system-instruction": "3.0.0", + "--temperature": "3.0.0", + "--top-k": "3.0.0", + "--top-p": "3.0.0" + } + }, + "ai is-supported": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "ai status": { + "since": "3.0.0", + "generic": false, + "options": { + "--format": "3.0.0" + } + }, + "block": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block binding": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block binding get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block binding list": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block pattern": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block pattern get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block pattern list": { + "since": "3.0.0", + "generic": false, + "options": { + "--category": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--inserter": "3.0.0", + "--search": "3.0.0" + } + }, + "block pattern-category": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block pattern-category get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block pattern-category list": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block style": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block style get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block style list": { + "since": "3.0.0", + "generic": false, + "options": { + "--block": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block synced-pattern": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block synced-pattern create": { + "since": "3.0.0", + "generic": false, + "options": { + "--content": "3.0.0", + "--porcelain": "3.0.0", + "--slug": "3.0.0", + "--status": "3.0.0", + "--sync-status": "3.0.0", + "--title": "3.0.0" + } + }, + "block synced-pattern delete": { + "since": "3.0.0", + "generic": false, + "options": { + "--force": "3.0.0" + } + }, + "block synced-pattern get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block synced-pattern list": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--search": "3.0.0", + "--sync-status": "3.0.0" + } + }, + "block synced-pattern update": { + "since": "3.0.0", + "generic": false, + "options": { + "--content": "3.0.0", + "--sync-status": "3.0.0", + "--title": "3.0.0" + } + }, + "block template": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block template export": { + "since": "3.0.0", + "generic": false, + "options": { + "--dir": "3.0.0", + "--file": "3.0.0", + "--stdout": "3.0.0", + "--type": "3.0.0" + } + }, + "block template get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--type": "3.0.0" + } + }, + "block template list": { + "since": "3.0.0", + "generic": false, + "options": { + "--area": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--post-type": "3.0.0", + "--slug": "3.0.0", + "--source": "3.0.0", + "--type": "3.0.0" + } + }, + "block type": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block type exists": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "block type get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "block type list": { + "since": "3.0.0", + "generic": false, + "options": { + "--dynamic": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--namespace": "3.0.0", + "--static": "3.0.0" + } + }, "cache": { "since": "2.4.0", "generic": false, @@ -45,6 +392,7 @@ "since": "2.12.0", "generic": false, "options": { + "--expiration": "3.0.0", "--format": "2.12.0", "--group": "2.12.0" } @@ -135,7 +483,10 @@ "cli alias get": { "since": "2.4.0", "generic": false, - "options": {} + "options": { + "--field": "3.0.0", + "--raw": "3.0.0" + } }, "cli alias is-group": { "since": "2.8.0", @@ -146,7 +497,8 @@ "since": "2.4.0", "generic": false, "options": { - "--format": "2.4.0" + "--format": "2.4.0", + "--raw": "3.0.0" } }, "cli alias update": { @@ -259,7 +611,22 @@ "since": "2.4.0", "generic": true, "options": { - "--porcelain": "2.4.0" + "--comment_agent": "3.0.0", + "--comment_approved": "3.0.0", + "--comment_author": "3.0.0", + "--comment_author_IP": "3.0.0", + "--comment_author_email": "3.0.0", + "--comment_author_url": "3.0.0", + "--comment_content": "3.0.0", + "--comment_date": "3.0.0", + "--comment_date_gmt": "3.0.0", + "--comment_karma": "3.0.0", + "--comment_meta": "3.0.0", + "--comment_parent": "3.0.0", + "--comment_post_ID": "3.0.0", + "--comment_type": "3.0.0", + "--porcelain": "2.4.0", + "--user_id": "3.0.0" } }, "comment delete": { @@ -399,18 +766,47 @@ "comment update": { "since": "2.4.0", "generic": true, - "options": {} + "options": { + "--comment_agent": "3.0.0", + "--comment_approved": "3.0.0", + "--comment_author": "3.0.0", + "--comment_author_IP": "3.0.0", + "--comment_author_email": "3.0.0", + "--comment_author_url": "3.0.0", + "--comment_content": "3.0.0", + "--comment_date": "3.0.0", + "--comment_date_gmt": "3.0.0", + "--comment_karma": "3.0.0", + "--comment_meta": "3.0.0", + "--comment_parent": "3.0.0", + "--comment_post_ID": "3.0.0", + "--comment_type": "3.0.0", + "--user_id": "3.0.0" + } }, "config": { "since": "2.4.0", "generic": false, "options": {} }, + "config add": { + "since": "3.0.0", + "generic": false, + "options": { + "--anchor": "3.0.0", + "--config-file": "3.0.0", + "--placement": "3.0.0", + "--raw": "3.0.0", + "--separator": "3.0.0", + "--type": "3.0.0" + } + }, "config create": { "since": "2.4.0", "generic": false, "options": { "--config-file": "2.6.0", + "--db_password": "3.0.0", "--dbcharset": "2.4.0", "--dbcollate": "2.4.0", "--dbhost": "2.4.0", @@ -423,7 +819,8 @@ "--insecure": "2.5.0", "--locale": "2.4.0", "--skip-check": "2.4.0", - "--skip-salts": "2.4.0" + "--skip-salts": "2.4.0", + "--ssl": "3.0.0" } }, "config delete": { @@ -503,6 +900,40 @@ "--insecure": "2.5.0" } }, + "config update": { + "since": "3.0.0", + "generic": false, + "options": { + "--anchor": "3.0.0", + "--config-file": "3.0.0", + "--placement": "3.0.0", + "--raw": "3.0.0", + "--separator": "3.0.0", + "--type": "3.0.0" + } + }, + "connectors": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "connectors get": { + "since": "3.0.0", + "generic": false, + "options": { + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "connectors list": { + "since": "3.0.0", + "generic": false, + "options": { + "--fields": "3.0.0", + "--format": "3.0.0", + "--status": "3.0.0" + } + }, "core": { "since": "2.4.0", "generic": false, @@ -520,6 +951,13 @@ "--minor": "2.4.0" } }, + "core check-update-db": { + "since": "3.0.0", + "generic": false, + "options": { + "--network": "3.0.0" + } + }, "core download": { "since": "2.4.0", "generic": false, @@ -530,6 +968,7 @@ "--locale": "2.4.0", "--path": "2.4.0", "--skip-content": "2.4.0", + "--skip-locale-check": "3.0.0", "--version": "2.4.0" } }, @@ -538,6 +977,7 @@ "generic": false, "options": { "--admin_email": "2.4.0", + "--admin_pass": "3.0.0", "--admin_password": "2.4.0", "--admin_user": "2.4.0", "--locale": "2.7.0", @@ -571,6 +1011,7 @@ "--admin_password": "2.4.0", "--admin_user": "2.4.0", "--base": "2.4.0", + "--locale": "3.0.0", "--skip-config": "2.4.0", "--skip-email": "2.4.0", "--subdomains": "2.4.0", @@ -583,6 +1024,7 @@ "generic": false, "options": { "--force": "2.4.0", + "--format": "3.0.0", "--insecure": "2.5.0", "--locale": "2.4.0", "--minor": "2.4.0", @@ -602,6 +1044,7 @@ "generic": false, "options": { "--exclude": "2.12.0", + "--format": "3.0.0", "--include-root": "2.8.0", "--insecure": "2.5.0", "--locale": "2.4.0", @@ -631,7 +1074,8 @@ "options": { "--all": "2.11.0", "--due-now": "2.11.0", - "--exclude": "2.11.0" + "--exclude": "2.11.0", + "--match-args": "3.0.0" } }, "cron event list": { @@ -649,7 +1093,8 @@ "options": { "--all": "2.4.0", "--due-now": "2.4.0", - "--exclude": "2.8.0" + "--exclude": "2.8.0", + "--network": "3.0.0" } }, "cron event schedule": { @@ -751,6 +1196,7 @@ "--dbuser": "2.4.0", "--defaults": "2.5.0", "--exclude_tables": "2.4.0", + "--exclude_tables_data": "3.0.0", "--include-tablespaces": "2.5.0", "--porcelain": "2.4.0", "--tables": "2.4.0" @@ -763,7 +1209,8 @@ "--dbpass": "2.4.0", "--dbuser": "2.4.0", "--defaults": "2.5.0", - "--skip-optimization": "2.4.0" + "--skip-optimization": "2.4.0", + "--skip-sql-mode-compat": "3.0.0" } }, "db optimize": { @@ -786,7 +1233,8 @@ "options": { "--dbpass": "2.4.0", "--dbuser": "2.4.0", - "--defaults": "2.5.0" + "--defaults": "2.5.0", + "--skip-sql-mode-compat": "3.0.0" } }, "db repair": { @@ -838,6 +1286,7 @@ "--all-tables": "2.4.0", "--all-tables-with-prefix": "2.4.0", "--decimals": "2.6.0", + "--fields": "3.0.0", "--format": "2.4.0", "--human-readable": "2.4.0", "--network": "2.4.0", @@ -848,6 +1297,17 @@ "--tables": "2.4.0" } }, + "db status": { + "since": "3.0.0", + "generic": false, + "options": { + "--dbpass": "3.0.0", + "--dbuser": "3.0.0", + "--defaults": "3.0.0", + "--format": "3.0.0", + "--skip-check": "3.0.0" + } + }, "db tables": { "since": "2.4.0", "generic": false, @@ -859,6 +1319,22 @@ "--scope": "2.4.0" } }, + "db users": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "db users create": { + "since": "3.0.0", + "generic": false, + "options": { + "--dbpass": "3.0.0", + "--dbuser": "3.0.0", + "--defaults": "3.0.0", + "--grant-privileges": "3.0.0", + "--password": "3.0.0" + } + }, "embed": { "since": "2.4.0", "generic": false, @@ -946,6 +1422,7 @@ "since": "2.4.0", "generic": false, "options": { + "--hook": "3.0.0", "--skip-wordpress": "2.4.0" } }, @@ -953,6 +1430,7 @@ "since": "2.4.0", "generic": false, "options": { + "--hook": "3.0.0", "--skip-wordpress": "2.4.0", "--use-include": "2.8.0" } @@ -974,23 +1452,125 @@ "--post_status": "2.4.0", "--post_type": "2.4.0", "--post_type__not_in": "2.4.0", + "--skip_authors": "3.0.0", "--skip_comments": "2.4.0", + "--skip_terms": "3.0.0", "--start_date": "2.4.0", "--start_id": "2.4.0", "--stdout": "2.4.0", "--with_attachments": "2.4.0" } }, + "font": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "font collection": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "font collection get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "font collection is-registered": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "font collection list": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "font collection list-categories": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "font collection list-families": { + "since": "3.0.0", + "generic": false, + "options": { + "--category": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "font face": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "font face install": { + "since": "3.0.0", + "generic": false, + "options": { + "--font-display": "3.0.0", + "--font-family": "3.0.0", + "--font-style": "3.0.0", + "--font-weight": "3.0.0", + "--porcelain": "3.0.0", + "--src": "3.0.0" + } + }, + "font family": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "font family install": { + "since": "3.0.0", + "generic": false, + "options": { + "--porcelain": "3.0.0" + } + }, "help": { "since": "2.4.0", "generic": false, - "options": {} + "options": { + "--full": "3.0.0" + } }, "i18n": { "since": "2.4.0", "generic": false, "options": {} }, + "i18n audit": { + "since": "3.0.0", + "generic": false, + "options": { + "--domain": "3.0.0", + "--exclude": "3.0.0", + "--format": "3.0.0", + "--ignore-domain": "3.0.0", + "--include": "3.0.0", + "--skip-blade": "3.0.0", + "--skip-block-json": "3.0.0", + "--skip-js": "3.0.0", + "--skip-php": "3.0.0", + "--skip-theme-json": "3.0.0", + "--slug": "3.0.0" + } + }, "i18n make-json": { "since": "2.4.0", "generic": false, @@ -1011,7 +1591,9 @@ "i18n make-php": { "since": "2.10.0", "generic": false, - "options": {} + "options": { + "--pretty-print": "3.0.0" + } }, "i18n make-pot": { "since": "2.4.0", @@ -1040,14 +1622,86 @@ "i18n update-po": { "since": "2.7.0", "generic": false, + "options": { + "--purge": "3.0.0" + } + }, + "icon": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "icon collection": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "icon collection get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "icon collection is-registered": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "icon collection list": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "icon get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "icon is-registered": { + "since": "3.0.0", + "generic": false, "options": {} }, + "icon list": { + "since": "3.0.0", + "generic": false, + "options": { + "--collection": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--search": "3.0.0" + } + }, + "icon render": { + "since": "3.0.0", + "generic": false, + "options": { + "--class": "3.0.0", + "--label": "3.0.0", + "--size": "3.0.0" + } + }, "import": { "since": "2.4.0", "generic": false, "options": { "--authors": "2.4.0", - "--skip": "2.4.0" + "--importer": "3.0.0", + "--rewrite_urls": "3.0.0", + "--skip": "2.4.0", + "--source-dir": "3.0.0" } }, "language": { @@ -1069,7 +1723,8 @@ "since": "2.4.0", "generic": false, "options": { - "--activate": "2.4.0" + "--activate": "2.4.0", + "--format": "3.0.0" } }, "language core is-installed": { @@ -1095,7 +1750,8 @@ "since": "2.4.0", "generic": false, "options": { - "--dry-run": "2.4.0" + "--dry-run": "2.4.0", + "--format": "3.0.0" } }, "language plugin": { @@ -1139,7 +1795,8 @@ "generic": false, "options": { "--all": "2.4.0", - "--dry-run": "2.4.0" + "--dry-run": "2.4.0", + "--format": "3.0.0" } }, "language theme": { @@ -1183,7 +1840,8 @@ "generic": false, "options": { "--all": "2.4.0", - "--dry-run": "2.4.0" + "--dry-run": "2.4.0", + "--format": "3.0.0" } }, "maintenance-mode": { @@ -1240,6 +1898,7 @@ "--alt": "2.4.0", "--caption": "2.4.0", "--desc": "2.4.0", + "--destination-dir": "3.0.0", "--featured_image": "2.4.0", "--file_name": "2.10.0", "--porcelain": "2.4.0", @@ -1247,9 +1906,19 @@ "--post_name": "2.8.0", "--preserve-filetime": "2.4.0", "--skip-copy": "2.4.0", + "--skip-duplicates": "3.0.0", "--title": "2.4.0" } }, + "media prune": { + "since": "3.0.0", + "generic": false, + "options": { + "--image_size": "3.0.0", + "--remove-abandoned": "3.0.0", + "--yes": "3.0.0" + } + }, "media regenerate": { "since": "2.4.0", "generic": false, @@ -1258,9 +1927,18 @@ "--image_size": "2.4.0", "--only-missing": "2.4.0", "--skip-delete": "2.4.0", + "--update-attachment-refs": "3.0.0", "--yes": "2.4.0" } }, + "media replace": { + "since": "3.0.0", + "generic": false, + "options": { + "--porcelain": "3.0.0", + "--skip-delete": "3.0.0" + } + }, "menu": { "since": "2.4.0", "generic": false, @@ -1311,6 +1989,21 @@ "--title": "2.4.0" } }, + "menu item add-post-type-archive": { + "since": "3.0.0", + "generic": false, + "options": { + "--attr-title": "3.0.0", + "--classes": "3.0.0", + "--description": "3.0.0", + "--link": "3.0.0", + "--parent-id": "3.0.0", + "--porcelain": "3.0.0", + "--position": "3.0.0", + "--target": "3.0.0", + "--title": "3.0.0" + } + }, "menu item add-term": { "since": "2.4.0", "generic": false, @@ -1331,6 +2024,15 @@ "generic": false, "options": {} }, + "menu item get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, "menu item list": { "since": "2.4.0", "generic": false, @@ -1534,19 +2236,35 @@ "--format": "2.4.0" } }, + "package get": { + "since": "3.0.0", + "generic": false, + "options": { + "--fields": "3.0.0", + "--format": "3.0.0", + "--skip-update-check": "3.0.0" + } + }, "package install": { "since": "2.4.0", "generic": false, "options": { - "--insecure": "2.5.0" + "--insecure": "2.5.0", + "--interaction": "3.0.0" } }, + "package is-installed": { + "since": "3.0.0", + "generic": false, + "options": {} + }, "package list": { "since": "2.4.0", "generic": false, "options": { "--fields": "2.4.0", - "--format": "2.4.0" + "--format": "2.4.0", + "--skip-update-check": "3.0.0" } }, "package path": { @@ -1558,13 +2276,17 @@ "since": "2.4.0", "generic": false, "options": { - "--insecure": "2.6.0" + "--insecure": "2.6.0", + "--interaction": "3.0.0" } }, "package update": { "since": "2.4.0", "generic": false, - "options": {} + "options": { + "--insecure": "3.0.0", + "--interaction": "3.0.0" + } }, "plugin": { "since": "2.4.0", @@ -1577,6 +2299,7 @@ "options": { "--all": "2.4.0", "--exclude": "2.7.0", + "--force": "3.0.0", "--network": "2.4.0" } }, @@ -1612,6 +2335,16 @@ "--format": "2.8.0" } }, + "plugin check-update": { + "since": "3.0.0", + "generic": false, + "options": { + "--all": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, "plugin deactivate": { "since": "2.4.0", "generic": false, @@ -1630,6 +2363,16 @@ "--exclude": "2.7.0" } }, + "plugin download": { + "since": "3.0.0", + "generic": false, + "options": { + "--force": "3.0.0", + "--insecure": "3.0.0", + "--target-path": "3.0.0", + "--version": "3.0.0" + } + }, "plugin get": { "since": "2.4.0", "generic": false, @@ -1648,7 +2391,18 @@ "--force": "2.4.0", "--ignore-requirements": "2.12.0", "--insecure": "2.5.0", - "--version": "2.4.0" + "--slug": "3.0.0", + "--version": "2.4.0", + "--with-dependencies": "3.0.0" + } + }, + "plugin install-dependencies": { + "since": "3.0.0", + "generic": false, + "options": { + "--activate": "3.0.0", + "--activate-network": "3.0.0", + "--force": "3.0.0" } }, "plugin is-active": { @@ -1720,9 +2474,11 @@ "generic": false, "options": { "--all": "2.4.0", + "--auto-update-indicated": "3.0.0", "--dry-run": "2.4.0", "--exclude": "2.4.0", "--format": "2.4.0", + "--include-vcs": "3.0.0", "--insecure": "2.5.0", "--minor": "2.4.0", "--patch": "2.4.0", @@ -1735,6 +2491,7 @@ "options": { "--all": "2.4.0", "--exclude": "2.9.0", + "--exclude-mu-plugins": "3.0.0", "--format": "2.4.0", "--insecure": "2.5.0", "--strict": "2.4.0", @@ -1746,6 +2503,136 @@ "generic": false, "options": {} }, + "post block": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "post block clone": { + "since": "3.0.0", + "generic": false, + "options": { + "--porcelain": "3.0.0", + "--position": "3.0.0" + } + }, + "post block count": { + "since": "3.0.0", + "generic": false, + "options": { + "--block": "3.0.0", + "--format": "3.0.0", + "--post-status": "3.0.0", + "--post-type": "3.0.0" + } + }, + "post block export": { + "since": "3.0.0", + "generic": false, + "options": { + "--file": "3.0.0", + "--format": "3.0.0", + "--raw": "3.0.0" + } + }, + "post block extract": { + "since": "3.0.0", + "generic": false, + "options": { + "--attr": "3.0.0", + "--block": "3.0.0", + "--content": "3.0.0", + "--format": "3.0.0", + "--index": "3.0.0" + } + }, + "post block get": { + "since": "3.0.0", + "generic": false, + "options": { + "--format": "3.0.0", + "--raw": "3.0.0" + } + }, + "post block import": { + "since": "3.0.0", + "generic": false, + "options": { + "--file": "3.0.0", + "--porcelain": "3.0.0", + "--position": "3.0.0", + "--replace": "3.0.0" + } + }, + "post block insert": { + "since": "3.0.0", + "generic": false, + "options": { + "--attrs": "3.0.0", + "--content": "3.0.0", + "--porcelain": "3.0.0", + "--position": "3.0.0" + } + }, + "post block list": { + "since": "3.0.0", + "generic": false, + "options": { + "--format": "3.0.0", + "--nested": "3.0.0" + } + }, + "post block move": { + "since": "3.0.0", + "generic": false, + "options": { + "--porcelain": "3.0.0" + } + }, + "post block parse": { + "since": "3.0.0", + "generic": false, + "options": { + "--format": "3.0.0", + "--raw": "3.0.0" + } + }, + "post block remove": { + "since": "3.0.0", + "generic": false, + "options": { + "--all": "3.0.0", + "--index": "3.0.0", + "--porcelain": "3.0.0" + } + }, + "post block render": { + "since": "3.0.0", + "generic": false, + "options": { + "--block": "3.0.0" + } + }, + "post block replace": { + "since": "3.0.0", + "generic": false, + "options": { + "--all": "3.0.0", + "--attrs": "3.0.0", + "--content": "3.0.0", + "--porcelain": "3.0.0" + } + }, + "post block update": { + "since": "3.0.0", + "generic": false, + "options": { + "--attrs": "3.0.0", + "--content": "3.0.0", + "--porcelain": "3.0.0", + "--replace-attrs": "3.0.0" + } + }, "post create": { "since": "2.4.0", "generic": true, @@ -1754,8 +2641,10 @@ "--edit": "2.4.0", "--from-post": "2.4.0", "--guid": "2.4.0", + "--import_id": "3.0.0", "--menu_order": "2.4.0", "--meta_input": "2.4.0", + "--page_template": "3.0.0", "--ping_status": "2.4.0", "--pinged": "2.4.0", "--porcelain": "2.4.0", @@ -1823,13 +2712,87 @@ "--format": "2.4.0" } }, + "post has-block": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "post has-blocks": { + "since": "3.0.0", + "generic": false, + "options": {} + }, "post list": { "since": "2.4.0", "generic": true, "options": { + "--ID": "3.0.0", + "--attachment_id": "3.0.0", + "--author": "3.0.0", + "--author__in": "3.0.0", + "--author__not_in": "3.0.0", + "--author_name": "3.0.0", + "--cat": "3.0.0", + "--category__and": "3.0.0", + "--category__in": "3.0.0", + "--category__not_in": "3.0.0", + "--category_name": "3.0.0", + "--comment_count": "3.0.0", + "--comment_status": "3.0.0", + "--date_query": "3.0.0", + "--day": "3.0.0", + "--exact": "3.0.0", "--field": "2.4.0", "--fields": "2.4.0", - "--format": "2.4.0" + "--format": "2.4.0", + "--hour": "3.0.0", + "--m": "3.0.0", + "--menu_order": "3.0.0", + "--meta_compare": "3.0.0", + "--meta_key": "3.0.0", + "--meta_query": "3.0.0", + "--meta_value": "3.0.0", + "--minute": "3.0.0", + "--monthnum": "3.0.0", + "--name": "3.0.0", + "--nopaging": "3.0.0", + "--offset": "3.0.0", + "--order": "3.0.0", + "--orderby": "3.0.0", + "--p": "3.0.0", + "--page_id": "3.0.0", + "--paged": "3.0.0", + "--pagename": "3.0.0", + "--perm": "3.0.0", + "--ping_status": "3.0.0", + "--post__in": "3.0.0", + "--post__not_in": "3.0.0", + "--post_author": "3.0.0", + "--post_mime_type": "3.0.0", + "--post_name": "3.0.0", + "--post_name__in": "3.0.0", + "--post_parent": "3.0.0", + "--post_parent__in": "3.0.0", + "--post_parent__not_in": "3.0.0", + "--post_status": "3.0.0", + "--post_title": "3.0.0", + "--post_type": "3.0.0", + "--posts_per_page": "3.0.0", + "--s": "3.0.0", + "--search_columns": "3.0.0", + "--second": "3.0.0", + "--sentence": "3.0.0", + "--tag": "3.0.0", + "--tag__and": "3.0.0", + "--tag__in": "3.0.0", + "--tag__not_in": "3.0.0", + "--tag_id": "3.0.0", + "--tag_slug__and": "3.0.0", + "--tag_slug__in": "3.0.0", + "--tax_query": "3.0.0", + "--title": "3.0.0", + "--w": "3.0.0", + "--year": "3.0.0" } }, "post meta": { @@ -1897,6 +2860,32 @@ "--format": "2.4.0" } }, + "post revision": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "post revision diff": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0" + } + }, + "post revision prune": { + "since": "3.0.0", + "generic": false, + "options": { + "--earliest": "3.0.0", + "--latest": "3.0.0", + "--yes": "3.0.0" + } + }, + "post revision restore": { + "since": "3.0.0", + "generic": false, + "options": {} + }, "post term": { "since": "2.4.0", "generic": false, @@ -1942,6 +2931,7 @@ "--guid": "2.4.0", "--menu_order": "2.4.0", "--meta_input": "2.4.0", + "--page_template": "3.0.0", "--ping_status": "2.4.0", "--pinged": "2.4.0", "--post_author": "2.4.0", @@ -2183,6 +3173,8 @@ "--include-columns": "2.4.0", "--log": "2.4.0", "--network": "2.4.0", + "--new": "3.0.0", + "--old": "3.0.0", "--precise": "2.4.0", "--recurse-objects": "2.4.0", "--regex": "2.4.0", @@ -2200,6 +3192,7 @@ "since": "2.4.0", "generic": false, "options": { + "--adapt-scheme": "3.0.0", "--config": "2.4.0", "--docroot": "2.4.0", "--host": "2.4.0", @@ -2210,7 +3203,9 @@ "since": "2.4.0", "generic": false, "options": { - "--basic": "2.4.0" + "--basic": "2.4.0", + "--hook": "3.0.0", + "--watch": "3.0.0" } }, "sidebar": { @@ -2218,12 +3213,26 @@ "generic": false, "options": {} }, + "sidebar exists": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "sidebar get": { + "since": "3.0.0", + "generic": false, + "options": { + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, "sidebar list": { "since": "2.4.0", "generic": false, "options": { "--fields": "2.4.0", - "--format": "2.4.0" + "--format": "2.4.0", + "--inactive": "3.0.0" } }, "site": { @@ -2253,6 +3262,7 @@ "--network_id": "2.4.0", "--porcelain": "2.4.0", "--private": "2.4.0", + "--site-url": "3.0.0", "--slug": "2.4.0", "--title": "2.4.0" } @@ -2268,6 +3278,7 @@ "since": "2.4.0", "generic": false, "options": { + "--delete-tables-with-prefix": "3.0.0", "--keep-tables": "2.4.0", "--slug": "2.4.0", "--yes": "2.4.0" @@ -2293,16 +3304,63 @@ "--slug": "2.11.0" } }, + "site get": { + "since": "3.0.0", + "generic": false, + "options": { + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, "site list": { "since": "2.4.0", "generic": true, "options": { + "--ID": "3.0.0", + "--archived": "3.0.0", + "--blog_id": "3.0.0", + "--date_query": "3.0.0", + "--deleted": "3.0.0", + "--domain": "3.0.0", + "--domain__in": "3.0.0", + "--domain__not_in": "3.0.0", "--field": "2.4.0", "--fields": "2.4.0", "--format": "2.4.0", + "--lang__in": "3.0.0", + "--lang__not_in": "3.0.0", + "--lang_id": "3.0.0", + "--last_updated": "3.0.0", + "--mature": "3.0.0", + "--meta_compare": "3.0.0", + "--meta_key": "3.0.0", + "--meta_query": "3.0.0", + "--meta_type": "3.0.0", + "--meta_value": "3.0.0", "--network": "2.4.0", + "--network__in": "3.0.0", + "--network__not_in": "3.0.0", + "--network_id": "3.0.0", + "--no_found_rows": "3.0.0", + "--number": "3.0.0", + "--offset": "3.0.0", + "--order": "3.0.0", + "--orderby": "3.0.0", + "--path__in": "3.0.0", + "--path__not_in": "3.0.0", + "--public": "3.0.0", + "--registered": "3.0.0", + "--search": "3.0.0", + "--search_columns": "3.0.0", + "--site-path": "3.0.0", "--site__in": "2.4.0", - "--site_user": "2.10.0" + "--site__not_in": "3.0.0", + "--site_id": "3.0.0", + "--site_user": "2.10.0", + "--spam": "3.0.0", + "--update_site_cache": "3.0.0", + "--update_site_meta_cache": "3.0.0" } }, "site mature": { @@ -2475,6 +3533,42 @@ "--slug": "2.9.0" } }, + "site-health": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "site-health check": { + "since": "3.0.0", + "generic": true, + "options": { + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "site-health info": { + "since": "3.0.0", + "generic": false, + "options": { + "--all": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--private": "3.0.0" + } + }, + "site-health list-info-sections": { + "since": "3.0.0", + "generic": false, + "options": { + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, + "site-health status": { + "since": "3.0.0", + "generic": false, + "options": {} + }, "super-admin": { "since": "2.4.0", "generic": false, @@ -2639,6 +3733,13 @@ "--to": "2.4.0" } }, + "term prune": { + "since": "3.0.0", + "generic": false, + "options": { + "--dry-run": "3.0.0" + } + }, "term recount": { "since": "2.4.0", "generic": false, @@ -2697,6 +3798,16 @@ "--format": "2.8.0" } }, + "theme check-update": { + "since": "3.0.0", + "generic": false, + "options": { + "--all": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0" + } + }, "theme delete": { "since": "2.4.0", "generic": false, @@ -2712,6 +3823,16 @@ "--network": "2.4.0" } }, + "theme download": { + "since": "3.0.0", + "generic": false, + "options": { + "--force": "3.0.0", + "--insecure": "3.0.0", + "--target-path": "3.0.0", + "--version": "3.0.0" + } + }, "theme enable": { "since": "2.4.0", "generic": false, @@ -2737,6 +3858,7 @@ "--force": "2.4.0", "--ignore-requirements": "2.12.0", "--insecure": "2.5.0", + "--slug": "3.0.0", "--version": "2.4.0" } }, @@ -2823,9 +3945,11 @@ "generic": false, "options": { "--all": "2.4.0", + "--auto-update-indicated": "3.0.0", "--dry-run": "2.4.0", "--exclude": "2.4.0", "--format": "2.4.0", + "--include-vcs": "3.0.0", "--insecure": "2.5.0", "--minor": "2.10.0", "--patch": "2.10.0", @@ -2949,11 +4073,21 @@ "since": "2.6.0", "generic": true, "options": { + "--app-id": "3.0.0", + "--app_id": "3.0.0", + "--created": "3.0.0", "--field": "2.6.0", "--fields": "2.6.0", "--format": "2.6.0", + "--last-ip": "3.0.0", + "--last-used": "3.0.0", + "--last_ip": "3.0.0", + "--last_used": "3.0.0", + "--name": "3.0.0", "--order": "2.6.0", - "--orderby": "2.6.0" + "--orderby": "2.6.0", + "--password": "3.0.0", + "--uuid": "3.0.0" } }, "user application-password record-usage": { @@ -2964,7 +4098,9 @@ "user application-password update": { "since": "2.6.0", "generic": true, - "options": {} + "options": { + "--name": "3.0.0" + } }, "user check-password": { "since": "2.4.0", @@ -2986,6 +4122,7 @@ "--rich_editing": "2.4.0", "--role": "2.4.0", "--send-email": "2.4.0", + "--syntax_highlighting": "3.0.0", "--user_nicename": "2.4.0", "--user_pass": "2.4.0", "--user_registered": "2.4.0", @@ -3109,6 +4246,51 @@ "--format": "2.4.0" } }, + "user privacy-request": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "user privacy-request complete": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "user privacy-request create": { + "since": "3.0.0", + "generic": false, + "options": { + "--porcelain": "3.0.0", + "--send-email": "3.0.0", + "--status": "3.0.0" + } + }, + "user privacy-request delete": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "user privacy-request erase": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "user privacy-request export": { + "since": "3.0.0", + "generic": false, + "options": {} + }, + "user privacy-request list": { + "since": "3.0.0", + "generic": false, + "options": { + "--action-type": "3.0.0", + "--field": "3.0.0", + "--fields": "3.0.0", + "--format": "3.0.0", + "--status": "3.0.0" + } + }, "user remove-cap": { "since": "2.4.0", "generic": false, @@ -3241,14 +4423,23 @@ "since": "2.4.0", "generic": true, "options": { + "--admin_color": "3.0.0", + "--comment_shortcuts": "3.0.0", "--description": "2.4.0", "--display_name": "2.4.0", "--first_name": "2.4.0", "--last_name": "2.4.0", + "--locale": "3.0.0", + "--meta_input": "3.0.0", "--nickname": "2.4.0", "--rich_editing": "2.4.0", "--role": "2.4.0", + "--show_admin_bar_front": "3.0.0", "--skip-email": "2.4.0", + "--spam": "3.0.0", + "--syntax_highlighting": "3.0.0", + "--use_ssl": "3.0.0", + "--user_activation_key": "3.0.0", "--user_email": "2.4.0", "--user_nicename": "2.4.0", "--user_pass": "2.4.0", @@ -3292,11 +4483,19 @@ "--sidebar-id": "2.4.0" } }, + "widget patch": { + "since": "3.0.0", + "generic": false, + "options": { + "--format": "3.0.0" + } + }, "widget reset": { "since": "2.4.0", "generic": false, "options": { - "--all": "2.4.0" + "--all": "2.4.0", + "--inactive": "3.0.0" } }, "widget update": { diff --git a/bin/commands-manifest.json b/bin/commands-manifest.json index 03e8e7097..22f1d2fa1 100644 --- a/bin/commands-manifest.json +++ b/bin/commands-manifest.json @@ -5,8 +5,7 @@ "cmd_path": "ability", "parent": null, "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "admin": { "title": "admin", @@ -22,8 +21,7 @@ "cmd_path": "ai", "parent": null, "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ai.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "block": { "title": "block", @@ -31,8 +29,7 @@ "cmd_path": "block", "parent": null, "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "cache": { "title": "cache", @@ -80,8 +77,7 @@ "cmd_path": "connectors", "parent": null, "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/connectors.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "core": { "title": "core", @@ -161,8 +157,7 @@ "cmd_path": "font", "parent": null, "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "help": { "title": "help", @@ -186,8 +181,7 @@ "cmd_path": "icon", "parent": null, "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "import": { "title": "import", @@ -347,8 +341,7 @@ "cmd_path": "site-health", "parent": null, "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/site-health.md", - "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command" }, "site": { "title": "site", @@ -420,8 +413,7 @@ "cmd_path": "ability\/can-run", "parent": "ability", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/can-run.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/category": { "title": "ability category", @@ -429,8 +421,7 @@ "cmd_path": "ability\/category", "parent": "ability", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/category.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/exists": { "title": "ability exists", @@ -438,8 +429,7 @@ "cmd_path": "ability\/exists", "parent": "ability", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/exists.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/get": { "title": "ability get", @@ -447,8 +437,7 @@ "cmd_path": "ability\/get", "parent": "ability", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/list": { "title": "ability list", @@ -456,8 +445,7 @@ "cmd_path": "ability\/list", "parent": "ability", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/run": { "title": "ability run", @@ -465,8 +453,7 @@ "cmd_path": "ability\/run", "parent": "ability", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/run.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/validate": { "title": "ability validate", @@ -474,8 +461,7 @@ "cmd_path": "ability\/validate", "parent": "ability", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/validate.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ai\/check": { "title": "ai check", @@ -483,8 +469,7 @@ "cmd_path": "ai\/check", "parent": "ai", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ai\/check.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "ai\/generate": { "title": "ai generate", @@ -492,8 +477,7 @@ "cmd_path": "ai\/generate", "parent": "ai", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ai\/generate.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "ai\/is-supported": { "title": "ai is-supported", @@ -501,8 +485,7 @@ "cmd_path": "ai\/is-supported", "parent": "ai", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ai\/is-supported.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "ai\/status": { "title": "ai status", @@ -510,8 +493,7 @@ "cmd_path": "ai\/status", "parent": "ai", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ai\/status.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "block\/binding": { "title": "block binding", @@ -519,8 +501,7 @@ "cmd_path": "block\/binding", "parent": "block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/binding.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/pattern-category": { "title": "block pattern-category", @@ -528,8 +509,7 @@ "cmd_path": "block\/pattern-category", "parent": "block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/pattern-category.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/pattern": { "title": "block pattern", @@ -537,8 +517,7 @@ "cmd_path": "block\/pattern", "parent": "block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/pattern.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/style": { "title": "block style", @@ -546,8 +525,7 @@ "cmd_path": "block\/style", "parent": "block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/style.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/synced-pattern": { "title": "block synced-pattern", @@ -555,8 +533,7 @@ "cmd_path": "block\/synced-pattern", "parent": "block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/synced-pattern.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/template": { "title": "block template", @@ -564,8 +541,7 @@ "cmd_path": "block\/template", "parent": "block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/template.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/type": { "title": "block type", @@ -573,8 +549,7 @@ "cmd_path": "block\/type", "parent": "block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/type.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "cache\/add": { "title": "cache add", @@ -926,8 +901,7 @@ "cmd_path": "config\/add", "parent": "config", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/config\/add.md", - "repo_url": "https:\/\/github.com\/wp-cli\/config-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/config-command" }, "config\/create": { "title": "config create", @@ -1015,8 +989,7 @@ "cmd_path": "config\/update", "parent": "config", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/config\/update.md", - "repo_url": "https:\/\/github.com\/wp-cli\/config-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/config-command" }, "connectors\/get": { "title": "connectors get", @@ -1024,8 +997,7 @@ "cmd_path": "connectors\/get", "parent": "connectors", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/connectors\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "connectors\/list": { "title": "connectors list", @@ -1033,8 +1005,7 @@ "cmd_path": "connectors\/list", "parent": "connectors", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/connectors\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ai-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ai-command" }, "core\/check-update-db": { "title": "core check-update-db", @@ -1042,8 +1013,7 @@ "cmd_path": "core\/check-update-db", "parent": "core", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/core\/check-update-db.md", - "repo_url": "https:\/\/github.com\/wp-cli\/core-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/core-command" }, "core\/check-update": { "title": "core check-update", @@ -1297,6 +1267,14 @@ "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/db\/size.md", "repo_url": "https:\/\/github.com\/wp-cli\/db-command" }, + "db\/status": { + "title": "db status", + "slug": "status", + "cmd_path": "db\/status", + "parent": "db", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/db\/status.md", + "repo_url": "https:\/\/github.com\/wp-cli\/db-command" + }, "db\/tables": { "title": "db tables", "slug": "tables", @@ -1305,6 +1283,14 @@ "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/db\/tables.md", "repo_url": "https:\/\/github.com\/wp-cli\/db-command" }, + "db\/users": { + "title": "db users", + "slug": "users", + "cmd_path": "db\/users", + "parent": "db", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/db\/users.md", + "repo_url": "https:\/\/github.com\/wp-cli\/db-command" + }, "embed\/cache": { "title": "embed cache", "slug": "cache", @@ -1343,8 +1329,7 @@ "cmd_path": "font\/collection", "parent": "font", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/collection.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/face": { "title": "font face", @@ -1352,8 +1337,7 @@ "cmd_path": "font\/face", "parent": "font", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/face.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/family": { "title": "font family", @@ -1361,8 +1345,7 @@ "cmd_path": "font\/family", "parent": "font", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/family.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "i18n\/audit": { "title": "i18n audit", @@ -1370,8 +1353,7 @@ "cmd_path": "i18n\/audit", "parent": "i18n", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/i18n\/audit.md", - "repo_url": "https:\/\/github.com\/wp-cli\/i18n-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/i18n-command" }, "i18n\/make-json": { "title": "i18n make-json", @@ -1419,8 +1401,7 @@ "cmd_path": "icon\/collection", "parent": "icon", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/collection.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "icon\/get": { "title": "icon get", @@ -1428,8 +1409,7 @@ "cmd_path": "icon\/get", "parent": "icon", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "icon\/is-registered": { "title": "icon is-registered", @@ -1437,8 +1417,7 @@ "cmd_path": "icon\/is-registered", "parent": "icon", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/is-registered.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "icon\/list": { "title": "icon list", @@ -1446,8 +1425,7 @@ "cmd_path": "icon\/list", "parent": "icon", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "icon\/render": { "title": "icon render", @@ -1455,8 +1433,7 @@ "cmd_path": "icon\/render", "parent": "icon", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/render.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "language\/core": { "title": "language core", @@ -1544,8 +1521,7 @@ "cmd_path": "media\/prune", "parent": "media", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/media\/prune.md", - "repo_url": "https:\/\/github.com\/wp-cli\/media-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/media-command" }, "media\/regenerate": { "title": "media regenerate", @@ -1561,8 +1537,7 @@ "cmd_path": "media\/replace", "parent": "media", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/media\/replace.md", - "repo_url": "https:\/\/github.com\/wp-cli\/media-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/media-command" }, "menu\/create": { "title": "menu create", @@ -1705,8 +1680,7 @@ "cmd_path": "package\/get", "parent": "package", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/package\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/package-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/package-command" }, "package\/install": { "title": "package install", @@ -1722,8 +1696,7 @@ "cmd_path": "package\/is-installed", "parent": "package", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/package\/is-installed.md", - "repo_url": "https:\/\/github.com\/wp-cli\/package-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/package-command" }, "package\/list": { "title": "package list", @@ -1779,8 +1752,7 @@ "cmd_path": "plugin\/check-update", "parent": "plugin", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/plugin\/check-update.md", - "repo_url": "https:\/\/github.com\/wp-cli\/extension-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/extension-command" }, "plugin\/deactivate": { "title": "plugin deactivate", @@ -1804,8 +1776,7 @@ "cmd_path": "plugin\/download", "parent": "plugin", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/plugin\/download.md", - "repo_url": "https:\/\/github.com\/wp-cli\/extension-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/extension-command" }, "plugin\/get": { "title": "plugin get", @@ -1821,8 +1792,7 @@ "cmd_path": "plugin\/install-dependencies", "parent": "plugin", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/plugin\/install-dependencies.md", - "repo_url": "https:\/\/github.com\/wp-cli\/extension-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/extension-command" }, "plugin\/install": { "title": "plugin install", @@ -1941,8 +1911,7 @@ "cmd_path": "post\/block", "parent": "post", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/create": { "title": "post create", @@ -1998,8 +1967,7 @@ "cmd_path": "post\/has-block", "parent": "post", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/has-block.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/has-blocks": { "title": "post has-blocks", @@ -2007,8 +1975,7 @@ "cmd_path": "post\/has-blocks", "parent": "post", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/has-blocks.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/list": { "title": "post list", @@ -2032,8 +1999,7 @@ "cmd_path": "post\/revision", "parent": "post", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/revision.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/term": { "title": "post term", @@ -2091,6 +2057,14 @@ "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/profile\/queries.md", "repo_url": "https:\/\/github.com\/wp-cli\/profile-command" }, + "profile\/requests": { + "title": "profile requests", + "slug": "requests", + "cmd_path": "profile\/requests", + "parent": "profile", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/profile\/requests.md", + "repo_url": "https:\/\/github.com\/wp-cli\/profile-command" + }, "profile\/stage": { "title": "profile stage", "slug": "stage", @@ -2254,8 +2228,7 @@ "cmd_path": "sidebar\/exists", "parent": "sidebar", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/sidebar\/exists.md", - "repo_url": "https:\/\/github.com\/wp-cli\/widget-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/widget-command" }, "sidebar\/get": { "title": "sidebar get", @@ -2263,8 +2236,7 @@ "cmd_path": "sidebar\/get", "parent": "sidebar", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/sidebar\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/widget-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/widget-command" }, "sidebar\/list": { "title": "sidebar list", @@ -2280,8 +2252,7 @@ "cmd_path": "site-health\/check", "parent": "site-health", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/site-health\/check.md", - "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command" }, "site-health\/info": { "title": "site-health info", @@ -2289,8 +2260,7 @@ "cmd_path": "site-health\/info", "parent": "site-health", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/site-health\/info.md", - "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command" }, "site-health\/list-info-sections": { "title": "site-health list-info-sections", @@ -2298,8 +2268,7 @@ "cmd_path": "site-health\/list-info-sections", "parent": "site-health", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/site-health\/list-info-sections.md", - "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command" }, "site-health\/status": { "title": "site-health status", @@ -2307,8 +2276,7 @@ "cmd_path": "site-health\/status", "parent": "site-health", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/site-health\/status.md", - "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/site-health-command" }, "site\/activate": { "title": "site activate", @@ -2372,8 +2340,7 @@ "cmd_path": "site\/get", "parent": "site", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/site\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "site\/list": { "title": "site list", @@ -2565,8 +2532,7 @@ "cmd_path": "term\/prune", "parent": "term", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/term\/prune.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "term\/recount": { "title": "term recount", @@ -2606,8 +2572,7 @@ "cmd_path": "theme\/check-update", "parent": "theme", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/theme\/check-update.md", - "repo_url": "https:\/\/github.com\/wp-cli\/extension-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/extension-command" }, "theme\/delete": { "title": "theme delete", @@ -2631,8 +2596,7 @@ "cmd_path": "theme\/download", "parent": "theme", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/theme\/download.md", - "repo_url": "https:\/\/github.com\/wp-cli\/extension-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/extension-command" }, "theme\/enable": { "title": "theme enable", @@ -2902,8 +2866,7 @@ "cmd_path": "user\/privacy-request", "parent": "user", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/user\/privacy-request.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "user\/remove-cap": { "title": "user remove-cap", @@ -3031,8 +2994,7 @@ "cmd_path": "widget\/patch", "parent": "widget", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/widget\/patch.md", - "repo_url": "https:\/\/github.com\/wp-cli\/widget-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/widget-command" }, "widget\/reset": { "title": "widget reset", @@ -3056,8 +3018,7 @@ "cmd_path": "ability\/category\/exists", "parent": "ability\/category", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/category\/exists.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/category\/get": { "title": "ability category get", @@ -3065,8 +3026,7 @@ "cmd_path": "ability\/category\/get", "parent": "ability\/category", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/category\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "ability\/category\/list": { "title": "ability category list", @@ -3074,8 +3034,7 @@ "cmd_path": "ability\/category\/list", "parent": "ability\/category", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/ability\/category\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/ability-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/ability-command" }, "block\/binding\/get": { "title": "block binding get", @@ -3083,8 +3042,7 @@ "cmd_path": "block\/binding\/get", "parent": "block\/binding", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/binding\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/binding\/list": { "title": "block binding list", @@ -3092,8 +3050,7 @@ "cmd_path": "block\/binding\/list", "parent": "block\/binding", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/binding\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/pattern-category\/get": { "title": "block pattern-category get", @@ -3101,8 +3058,7 @@ "cmd_path": "block\/pattern-category\/get", "parent": "block\/pattern-category", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/pattern-category\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/pattern-category\/list": { "title": "block pattern-category list", @@ -3110,8 +3066,7 @@ "cmd_path": "block\/pattern-category\/list", "parent": "block\/pattern-category", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/pattern-category\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/pattern\/get": { "title": "block pattern get", @@ -3119,8 +3074,7 @@ "cmd_path": "block\/pattern\/get", "parent": "block\/pattern", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/pattern\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/pattern\/list": { "title": "block pattern list", @@ -3128,8 +3082,7 @@ "cmd_path": "block\/pattern\/list", "parent": "block\/pattern", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/pattern\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/style\/get": { "title": "block style get", @@ -3137,8 +3090,7 @@ "cmd_path": "block\/style\/get", "parent": "block\/style", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/style\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/style\/list": { "title": "block style list", @@ -3146,8 +3098,7 @@ "cmd_path": "block\/style\/list", "parent": "block\/style", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/style\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/synced-pattern\/create": { "title": "block synced-pattern create", @@ -3155,8 +3106,7 @@ "cmd_path": "block\/synced-pattern\/create", "parent": "block\/synced-pattern", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/synced-pattern\/create.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/synced-pattern\/delete": { "title": "block synced-pattern delete", @@ -3164,8 +3114,7 @@ "cmd_path": "block\/synced-pattern\/delete", "parent": "block\/synced-pattern", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/synced-pattern\/delete.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/synced-pattern\/get": { "title": "block synced-pattern get", @@ -3173,8 +3122,7 @@ "cmd_path": "block\/synced-pattern\/get", "parent": "block\/synced-pattern", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/synced-pattern\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/synced-pattern\/list": { "title": "block synced-pattern list", @@ -3182,8 +3130,7 @@ "cmd_path": "block\/synced-pattern\/list", "parent": "block\/synced-pattern", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/synced-pattern\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/synced-pattern\/update": { "title": "block synced-pattern update", @@ -3191,8 +3138,7 @@ "cmd_path": "block\/synced-pattern\/update", "parent": "block\/synced-pattern", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/synced-pattern\/update.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/template\/export": { "title": "block template export", @@ -3200,8 +3146,7 @@ "cmd_path": "block\/template\/export", "parent": "block\/template", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/template\/export.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/template\/get": { "title": "block template get", @@ -3209,8 +3154,7 @@ "cmd_path": "block\/template\/get", "parent": "block\/template", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/template\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/template\/list": { "title": "block template list", @@ -3218,8 +3162,7 @@ "cmd_path": "block\/template\/list", "parent": "block\/template", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/template\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/type\/exists": { "title": "block type exists", @@ -3227,8 +3170,7 @@ "cmd_path": "block\/type\/exists", "parent": "block\/type", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/type\/exists.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/type\/get": { "title": "block type get", @@ -3236,8 +3178,7 @@ "cmd_path": "block\/type\/get", "parent": "block\/type", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/type\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "block\/type\/list": { "title": "block type list", @@ -3245,8 +3186,7 @@ "cmd_path": "block\/type\/list", "parent": "block\/type", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/block\/type\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/block-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/block-command" }, "cli\/alias\/add": { "title": "cli alias add", @@ -3423,6 +3363,14 @@ "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/cron\/schedule\/list.md", "repo_url": "https:\/\/github.com\/wp-cli\/cron-command" }, + "db\/users\/create": { + "title": "db users create", + "slug": "create", + "cmd_path": "db\/users\/create", + "parent": "db\/users", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/db\/users\/create.md", + "repo_url": "https:\/\/github.com\/wp-cli\/db-command" + }, "embed\/cache\/clear": { "title": "embed cache clear", "slug": "clear", @@ -3477,8 +3425,7 @@ "cmd_path": "font\/collection\/get", "parent": "font\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/collection\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/collection\/is-registered": { "title": "font collection is-registered", @@ -3486,8 +3433,7 @@ "cmd_path": "font\/collection\/is-registered", "parent": "font\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/collection\/is-registered.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/collection\/list-categories": { "title": "font collection list-categories", @@ -3495,8 +3441,7 @@ "cmd_path": "font\/collection\/list-categories", "parent": "font\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/collection\/list-categories.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/collection\/list-families": { "title": "font collection list-families", @@ -3504,8 +3449,7 @@ "cmd_path": "font\/collection\/list-families", "parent": "font\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/collection\/list-families.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/collection\/list": { "title": "font collection list", @@ -3513,8 +3457,7 @@ "cmd_path": "font\/collection\/list", "parent": "font\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/collection\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/face\/install": { "title": "font face install", @@ -3522,8 +3465,7 @@ "cmd_path": "font\/face\/install", "parent": "font\/face", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/face\/install.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "font\/family\/install": { "title": "font family install", @@ -3531,8 +3473,7 @@ "cmd_path": "font\/family\/install", "parent": "font\/family", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/font\/family\/install.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "icon\/collection\/get": { "title": "icon collection get", @@ -3540,8 +3481,7 @@ "cmd_path": "icon\/collection\/get", "parent": "icon\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/collection\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "icon\/collection\/is-registered": { "title": "icon collection is-registered", @@ -3549,8 +3489,7 @@ "cmd_path": "icon\/collection\/is-registered", "parent": "icon\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/collection\/is-registered.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "icon\/collection\/list": { "title": "icon collection list", @@ -3558,8 +3497,7 @@ "cmd_path": "icon\/collection\/list", "parent": "icon\/collection", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/icon\/collection\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "language\/core\/activate": { "title": "language core activate", @@ -3703,8 +3641,7 @@ "cmd_path": "menu\/item\/add-post-type-archive", "parent": "menu\/item", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/menu\/item\/add-post-type-archive.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "menu\/item\/add-post": { "title": "menu item add-post", @@ -3736,8 +3673,7 @@ "cmd_path": "menu\/item\/get", "parent": "menu\/item", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/menu\/item\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "menu\/item\/list": { "title": "menu item list", @@ -3872,8 +3808,7 @@ "cmd_path": "post\/block\/clone", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/clone.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/count": { "title": "post block count", @@ -3881,8 +3816,7 @@ "cmd_path": "post\/block\/count", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/count.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/export": { "title": "post block export", @@ -3890,8 +3824,7 @@ "cmd_path": "post\/block\/export", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/export.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/extract": { "title": "post block extract", @@ -3899,8 +3832,7 @@ "cmd_path": "post\/block\/extract", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/extract.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/get": { "title": "post block get", @@ -3908,8 +3840,7 @@ "cmd_path": "post\/block\/get", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/get.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/import": { "title": "post block import", @@ -3917,8 +3848,7 @@ "cmd_path": "post\/block\/import", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/import.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/insert": { "title": "post block insert", @@ -3926,8 +3856,7 @@ "cmd_path": "post\/block\/insert", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/insert.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/list": { "title": "post block list", @@ -3935,8 +3864,7 @@ "cmd_path": "post\/block\/list", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/move": { "title": "post block move", @@ -3944,8 +3872,7 @@ "cmd_path": "post\/block\/move", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/move.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/parse": { "title": "post block parse", @@ -3953,8 +3880,7 @@ "cmd_path": "post\/block\/parse", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/parse.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/remove": { "title": "post block remove", @@ -3962,8 +3888,7 @@ "cmd_path": "post\/block\/remove", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/remove.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/render": { "title": "post block render", @@ -3971,8 +3896,7 @@ "cmd_path": "post\/block\/render", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/render.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/replace": { "title": "post block replace", @@ -3980,8 +3904,7 @@ "cmd_path": "post\/block\/replace", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/replace.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/block\/update": { "title": "post block update", @@ -3989,8 +3912,7 @@ "cmd_path": "post\/block\/update", "parent": "post\/block", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/block\/update.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/meta\/add": { "title": "post meta add", @@ -4069,8 +3991,7 @@ "cmd_path": "post\/revision\/diff", "parent": "post\/revision", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/revision\/diff.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/revision\/prune": { "title": "post revision prune", @@ -4078,8 +3999,7 @@ "cmd_path": "post\/revision\/prune", "parent": "post\/revision", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/revision\/prune.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/revision\/restore": { "title": "post revision restore", @@ -4087,8 +4007,7 @@ "cmd_path": "post\/revision\/restore", "parent": "post\/revision", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/post\/revision\/restore.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "post\/term\/add": { "title": "post term add", @@ -4492,8 +4411,7 @@ "cmd_path": "user\/privacy-request\/complete", "parent": "user\/privacy-request", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/user\/privacy-request\/complete.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "user\/privacy-request\/create": { "title": "user privacy-request create", @@ -4501,8 +4419,7 @@ "cmd_path": "user\/privacy-request\/create", "parent": "user\/privacy-request", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/user\/privacy-request\/create.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "user\/privacy-request\/delete": { "title": "user privacy-request delete", @@ -4510,8 +4427,7 @@ "cmd_path": "user\/privacy-request\/delete", "parent": "user\/privacy-request", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/user\/privacy-request\/delete.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "user\/privacy-request\/erase": { "title": "user privacy-request erase", @@ -4519,8 +4435,7 @@ "cmd_path": "user\/privacy-request\/erase", "parent": "user\/privacy-request", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/user\/privacy-request\/erase.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "user\/privacy-request\/export": { "title": "user privacy-request export", @@ -4528,8 +4443,7 @@ "cmd_path": "user\/privacy-request\/export", "parent": "user\/privacy-request", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/user\/privacy-request\/export.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "user\/privacy-request\/list": { "title": "user privacy-request list", @@ -4537,8 +4451,7 @@ "cmd_path": "user\/privacy-request\/list", "parent": "user\/privacy-request", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/commands\/user\/privacy-request\/list.md", - "repo_url": "https:\/\/github.com\/wp-cli\/entity-command", - "unreleased": true + "repo_url": "https:\/\/github.com\/wp-cli\/entity-command" }, "user\/session\/destroy": { "title": "user session destroy", diff --git a/bin/handbook-manifest.json b/bin/handbook-manifest.json index f2e6e19dd..9079ac286 100644 --- a/bin/handbook-manifest.json +++ b/bin/handbook-manifest.json @@ -240,7 +240,7 @@ "parent": "behat-steps" }, "given-a-wp-multisite-subdirectory-subdomaininstall-installation": { - "title": "Given \/^a WP multisite (subdirectory|subdomain)?\\s?(install|installation)$\/", + "title": "Given \/^a WP multisite (subdirectory|subdomain)?\\s?(?:install|installation)$\/", "slug": "given-a-wp-multisite-subdirectory-subdomaininstall-installation", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-a-wp-multisite-subdirectory-subdomaininstall-installation.md", "parent": "behat-steps" @@ -275,6 +275,12 @@ "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-download.md", "parent": "behat-steps" }, + "given-only-these-installed-themes-and-active-themes": { + "title": "Given \/^only these installed (themes|and active themes):$\/", + "slug": "given-only-these-installed-themes-and-active-themes", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-only-these-installed-themes-and-active-themes.md", + "parent": "behat-steps" + }, "given-replaced-with-in-the-file": { "title": "Given \/^"([^"]+)" replaced with "([^"]+)" in the ([^\\s]+) file$\/", "slug": "given-replaced-with-in-the-file", @@ -282,13 +288,13 @@ "parent": "behat-steps" }, "given-save-stdout-stderr-as": { - "title": "Given \/^save (STDOUT|STDERR) ([\\'].+[^\\'])?\\s?as \\{(\\w+)\\}$\/", + "title": "Given \/^save (STDOUT|STDERR) (['].+[^'])?\\s?as \\{(\\w+)\\}$\/", "slug": "given-save-stdout-stderr-as", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-save-stdout-stderr-as.md", "parent": "behat-steps" }, "given-save-the-file-as": { - "title": "Given \/^save the (.+) file ([\\'].+[^\\'])?as \\{(\\w+)\\}$\/", + "title": "Given \/^save the (.+) file (['].+[^'])?as \\{(\\w+)\\}$\/", "slug": "given-save-the-file-as", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-save-the-file-as.md", "parent": "behat-steps" @@ -299,10 +305,16 @@ "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-that-http-requests-to-will-respond-with.md", "parent": "behat-steps" }, - "given-these-installed-and-active-plugins": { - "title": "Given these installed and active plugins:", - "slug": "given-these-installed-and-active-plugins", - "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-these-installed-and-active-plugins.md", + "given-these-installed-and-active-plugins-themes": { + "title": "Given \/^these installed (and active )?(plugins|themes):$\/", + "slug": "given-these-installed-and-active-plugins-themes", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-these-installed-and-active-plugins-themes.md", + "parent": "behat-steps" + }, + "given-these-setup-commands": { + "title": "Given these setup commands:", + "slug": "given-these-setup-commands", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/given-these-setup-commands.md", "parent": "behat-steps" }, "given-wp-config-php": { @@ -564,7 +576,7 @@ "parent": "behat-steps" }, "then-stdout-stderr-should-not-match": { - "title": "Then \/^(STDOUT|STDERR) should( not)? match (((\\\/.+\\\/)|(#.+#))([a-z]+)?)$\/", + "title": "Then \/^(STDOUT|STDERR) should( not)? match ((?:\\\/.+\\\/|#.+#)(?:[a-z]+)?)$\/", "slug": "then-stdout-stderr-should-not-match", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/then-stdout-stderr-should-not-match.md", "parent": "behat-steps" @@ -576,7 +588,7 @@ "parent": "behat-steps" }, "then-the-contents-of-the-file-should-not-match": { - "title": "Then \/^the contents of the (.+) file should( not)? match (((\\\/.+\\\/)|(#.+#))([a-z]+)?)$\/", + "title": "Then \/^the contents of the (.+) file should( not)? match ((?:\\\/.+\\\/|#.+#)(?:[a-z]+)?)$\/", "slug": "then-the-contents-of-the-file-should-not-match", "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/behat-steps\/then-the-contents-of-the-file-should-not-match.md", "parent": "behat-steps" @@ -821,6 +833,12 @@ "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/internal-api\/wp-cli-utils-http-request.md", "parent": "internal-api" }, + "wp-cli-utils-is-interactive": { + "title": "WP_CLI\\Utils\\is_interactive()", + "slug": "wp-cli-utils-is-interactive", + "markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/references\/internal-api\/wp-cli-utils-is-interactive.md", + "parent": "internal-api" + }, "wp-cli-utils-is-stream": { "title": "WP_CLI\\Utils\\is_stream()", "slug": "wp-cli-utils-is-stream", diff --git a/commands/ability.md b/commands/ability.md index 7de6fc168..912122d61 100644 --- a/commands/ability.md +++ b/commands/ability.md @@ -2,7 +2,7 @@ Lists, inspects, and executes abilities registered via the WordPress Abilities API. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. The Abilities API, introduced in WordPress 6.9, provides a standardized way to register and discover distinct units of functionality within a WordPress site. diff --git a/commands/ability/can-run.md b/commands/ability/can-run.md index c9e121882..57af226aa 100644 --- a/commands/ability/can-run.md +++ b/commands/ability/can-run.md @@ -2,7 +2,7 @@ Checks if the current user can execute an ability. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Validates permissions without actually executing the ability. Exits with return code 0 if permitted, 1 if not. diff --git a/commands/ability/category.md b/commands/ability/category.md index 83fdcc6fc..6b6bff262 100644 --- a/commands/ability/category.md +++ b/commands/ability/category.md @@ -2,7 +2,7 @@ Lists and inspects ability categories registered via the WordPress Abilities API. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. The Abilities API, introduced in WordPress 6.9, uses categories to organize related abilities for better discoverability. diff --git a/commands/ability/category/exists.md b/commands/ability/category/exists.md index 58739068c..94bdfccb1 100644 --- a/commands/ability/category/exists.md +++ b/commands/ability/category/exists.md @@ -2,7 +2,7 @@ Checks whether an ability category is registered. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Exits with return code 0 if the category exists, 1 if it does not. diff --git a/commands/ability/category/get.md b/commands/ability/category/get.md index 47bc4937f..bdd080711 100644 --- a/commands/ability/category/get.md +++ b/commands/ability/category/get.md @@ -2,7 +2,7 @@ Gets details about a registered ability category. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/ability/category/list.md b/commands/ability/category/list.md index f15355b0b..72e59592c 100644 --- a/commands/ability/category/list.md +++ b/commands/ability/category/list.md @@ -2,7 +2,7 @@ Lists all registered ability categories. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/ability/exists.md b/commands/ability/exists.md index 41696666e..24308b288 100644 --- a/commands/ability/exists.md +++ b/commands/ability/exists.md @@ -2,7 +2,7 @@ Checks whether an ability is registered. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Exits with return code 0 if the ability exists, 1 if it does not. diff --git a/commands/ability/get.md b/commands/ability/get.md index 83820bca1..c64a68f2d 100644 --- a/commands/ability/get.md +++ b/commands/ability/get.md @@ -2,7 +2,7 @@ Gets details about a registered ability. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/ability/list.md b/commands/ability/list.md index 7f3d8cec9..fd4e0f98d 100644 --- a/commands/ability/list.md +++ b/commands/ability/list.md @@ -2,7 +2,7 @@ Lists all registered abilities. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/ability/run.md b/commands/ability/run.md index 4268c8119..f152ebd28 100644 --- a/commands/ability/run.md +++ b/commands/ability/run.md @@ -2,7 +2,7 @@ Executes a registered ability. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/ability/validate.md b/commands/ability/validate.md index 77a4bd760..d201078ec 100644 --- a/commands/ability/validate.md +++ b/commands/ability/validate.md @@ -2,7 +2,7 @@ Validates input against an ability's schema. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Validates the input data without executing the ability. Useful for testing input before execution. diff --git a/commands/ai.md b/commands/ai.md index 1f6102735..91b07438b 100644 --- a/commands/ai.md +++ b/commands/ai.md @@ -2,7 +2,7 @@ Interacts with the WordPress AI Client for text and image generation. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### EXAMPLES diff --git a/commands/ai/check.md b/commands/ai/check.md index 50f6f7e36..06ed96be5 100644 --- a/commands/ai/check.md +++ b/commands/ai/check.md @@ -2,7 +2,7 @@ Checks if a prompt is supported for generation. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/ai/generate.md b/commands/ai/generate.md index 48942b692..2f97f0d52 100644 --- a/commands/ai/generate.md +++ b/commands/ai/generate.md @@ -2,7 +2,7 @@ Generates AI content. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/ai/is-supported.md b/commands/ai/is-supported.md index d87b40452..761e6d5a3 100644 --- a/commands/ai/is-supported.md +++ b/commands/ai/is-supported.md @@ -2,7 +2,7 @@ Checks whether AI features are supported in the current environment. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Exits with code 0 if AI features are supported, or code 1 if they are not. diff --git a/commands/ai/status.md b/commands/ai/status.md index 83bfc4460..091d90734 100644 --- a/commands/ai/status.md +++ b/commands/ai/status.md @@ -2,7 +2,7 @@ Checks which AI capabilities are currently supported. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Checks the environment and credentials to determine which AI operations are available. Displays a table showing supported capabilities. diff --git a/commands/block.md b/commands/block.md index 499ff938b..66d3fba70 100644 --- a/commands/block.md +++ b/commands/block.md @@ -2,7 +2,7 @@ Manages WordPress block editor blocks and related entities. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### EXAMPLES diff --git a/commands/block/binding.md b/commands/block/binding.md index 970bf37df..e79d14013 100644 --- a/commands/block/binding.md +++ b/commands/block/binding.md @@ -2,7 +2,7 @@ Retrieves details on registered block binding sources. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Get information on block binding sources from the WP_Block_Bindings_Registry. Block bindings allow dynamic data to be connected to block attributes. diff --git a/commands/block/binding/get.md b/commands/block/binding/get.md index e47416053..084383dca 100644 --- a/commands/block/binding/get.md +++ b/commands/block/binding/get.md @@ -2,7 +2,7 @@ Gets details about a registered block binding source. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/binding/list.md b/commands/block/binding/list.md index 568d72cc6..c816bc4fc 100644 --- a/commands/block/binding/list.md +++ b/commands/block/binding/list.md @@ -2,7 +2,7 @@ Lists registered block binding sources. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/pattern-category.md b/commands/block/pattern-category.md index a6163dfb1..684cef2f8 100644 --- a/commands/block/pattern-category.md +++ b/commands/block/pattern-category.md @@ -2,7 +2,7 @@ Retrieves details on registered block pattern categories. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Get information on block pattern categories from the WP_Block_Pattern_Categories_Registry. diff --git a/commands/block/pattern-category/get.md b/commands/block/pattern-category/get.md index 1908fb9d7..b90d6a1f7 100644 --- a/commands/block/pattern-category/get.md +++ b/commands/block/pattern-category/get.md @@ -2,7 +2,7 @@ Gets details about a registered block pattern category. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/pattern-category/list.md b/commands/block/pattern-category/list.md index 015595ea1..bf766460e 100644 --- a/commands/block/pattern-category/list.md +++ b/commands/block/pattern-category/list.md @@ -2,7 +2,7 @@ Lists registered block pattern categories. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/pattern.md b/commands/block/pattern.md index 1af0328cc..3c4af0bfb 100644 --- a/commands/block/pattern.md +++ b/commands/block/pattern.md @@ -2,7 +2,7 @@ Retrieves details on registered block patterns. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Get information on WordPress' built-in and custom block patterns from the WP_Block_Patterns_Registry. diff --git a/commands/block/pattern/get.md b/commands/block/pattern/get.md index 36d9ef238..3513f9011 100644 --- a/commands/block/pattern/get.md +++ b/commands/block/pattern/get.md @@ -2,7 +2,7 @@ Gets details about a registered block pattern. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/pattern/list.md b/commands/block/pattern/list.md index 31b8c0217..1c524c59b 100644 --- a/commands/block/pattern/list.md +++ b/commands/block/pattern/list.md @@ -2,7 +2,7 @@ Lists registered block patterns. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/style.md b/commands/block/style.md index 381f81047..47ffeb5a8 100644 --- a/commands/block/style.md +++ b/commands/block/style.md @@ -2,7 +2,7 @@ Retrieves details on registered block styles. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Get information on block style variations from the WP_Block_Styles_Registry. diff --git a/commands/block/style/get.md b/commands/block/style/get.md index ff5b8e97f..21e574394 100644 --- a/commands/block/style/get.md +++ b/commands/block/style/get.md @@ -2,7 +2,7 @@ Gets details about a registered block style. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/style/list.md b/commands/block/style/list.md index 11b8a3621..39e00ff46 100644 --- a/commands/block/style/list.md +++ b/commands/block/style/list.md @@ -2,7 +2,7 @@ Lists registered block styles. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/synced-pattern.md b/commands/block/synced-pattern.md index 1995327e0..b7fa3f769 100644 --- a/commands/block/synced-pattern.md +++ b/commands/block/synced-pattern.md @@ -2,7 +2,7 @@ Manages synced patterns (reusable blocks). -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Synced patterns are stored as the 'wp_block' post type and can be either synced (changes reflect everywhere) or not synced (regular patterns). diff --git a/commands/block/synced-pattern/create.md b/commands/block/synced-pattern/create.md index 3f01be72b..64907189e 100644 --- a/commands/block/synced-pattern/create.md +++ b/commands/block/synced-pattern/create.md @@ -2,7 +2,7 @@ Creates a synced pattern. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/synced-pattern/delete.md b/commands/block/synced-pattern/delete.md index 04f8a6ee1..005fb4791 100644 --- a/commands/block/synced-pattern/delete.md +++ b/commands/block/synced-pattern/delete.md @@ -2,7 +2,7 @@ Deletes one or more synced patterns. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/synced-pattern/get.md b/commands/block/synced-pattern/get.md index 763fe07c1..a9a091abe 100644 --- a/commands/block/synced-pattern/get.md +++ b/commands/block/synced-pattern/get.md @@ -2,7 +2,7 @@ Gets details about a synced pattern. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/synced-pattern/list.md b/commands/block/synced-pattern/list.md index 839af0434..bcb18778b 100644 --- a/commands/block/synced-pattern/list.md +++ b/commands/block/synced-pattern/list.md @@ -2,7 +2,7 @@ Lists synced patterns. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/synced-pattern/update.md b/commands/block/synced-pattern/update.md index 101ec0e84..b729b0a01 100644 --- a/commands/block/synced-pattern/update.md +++ b/commands/block/synced-pattern/update.md @@ -2,7 +2,7 @@ Updates a synced pattern. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/template.md b/commands/block/template.md index f7547809d..d82e542bb 100644 --- a/commands/block/template.md +++ b/commands/block/template.md @@ -2,7 +2,7 @@ Retrieves details on block templates and template parts. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Get information on block templates used in Full Site Editing (FSE) themes. diff --git a/commands/block/template/export.md b/commands/block/template/export.md index 109353ff6..0c135941a 100644 --- a/commands/block/template/export.md +++ b/commands/block/template/export.md @@ -2,7 +2,7 @@ Exports a block template to a file. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/template/get.md b/commands/block/template/get.md index 64bcc8f08..929b476a1 100644 --- a/commands/block/template/get.md +++ b/commands/block/template/get.md @@ -2,7 +2,7 @@ Gets details about a block template. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/template/list.md b/commands/block/template/list.md index cae7c0bb6..befa1294a 100644 --- a/commands/block/template/list.md +++ b/commands/block/template/list.md @@ -2,7 +2,7 @@ Lists block templates or template parts. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/type.md b/commands/block/type.md index fb130de89..acff7f126 100644 --- a/commands/block/type.md +++ b/commands/block/type.md @@ -2,7 +2,7 @@ Retrieves details on registered block types. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Get information on WordPress' built-in and custom block types from the WP_Block_Type_Registry. diff --git a/commands/block/type/exists.md b/commands/block/type/exists.md index c87b3e7e1..ca3b0b230 100644 --- a/commands/block/type/exists.md +++ b/commands/block/type/exists.md @@ -2,7 +2,7 @@ Checks whether a block type is registered. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Exits with return code 0 if the block type exists, 1 if it does not. diff --git a/commands/block/type/get.md b/commands/block/type/get.md index b8770acd1..38baa8d8c 100644 --- a/commands/block/type/get.md +++ b/commands/block/type/get.md @@ -2,7 +2,7 @@ Gets details about a registered block type. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/block/type/list.md b/commands/block/type/list.md index 693df3853..4d36a18c5 100644 --- a/commands/block/type/list.md +++ b/commands/block/type/list.md @@ -2,7 +2,7 @@ Lists registered block types. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/cache/patch.md b/commands/cache/patch.md index 46a1a313f..547348ae6 100644 --- a/commands/cache/patch.md +++ b/commands/cache/patch.md @@ -2,9 +2,7 @@ Update a nested value from the cache. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--expiration`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Available since WP-CLI 2.12.0. +Available since WP-CLI 2.12.0. Options added later: `--expiration` (3.0.0). ### OPTIONS diff --git a/commands/cli/alias/get.md b/commands/cli/alias/get.md index 2eee2e935..a97f6b620 100644 --- a/commands/cli/alias/get.md +++ b/commands/cli/alias/get.md @@ -4,7 +4,7 @@ Gets the value for an alias. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--field`, `--raw`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--field` (3.0.0), `--raw` (3.0.0). ### OPTIONS diff --git a/commands/cli/alias/list.md b/commands/cli/alias/list.md index b6dd29ff3..521084388 100644 --- a/commands/cli/alias/list.md +++ b/commands/cli/alias/list.md @@ -4,7 +4,7 @@ Lists available WP-CLI aliases. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--raw`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--raw` (3.0.0). ### OPTIONS @@ -18,6 +18,7 @@ options: - yaml - json - var_export + - plaintext \--- [\--raw] diff --git a/commands/cli/info.md b/commands/cli/info.md index 101673927..cff51f037 100644 --- a/commands/cli/info.md +++ b/commands/cli/info.md @@ -11,6 +11,7 @@ Helpful for diagnostic purposes, this command shares: * PHP binary used. * PHP binary version. * PHP memory limit. +* OS virtual memory limit (`ulimit -v`), where it can be determined. * php.ini configuration file used (which is typically different than web). * WP-CLI root dir: where WP-CLI is installed (if non-Phar install). * WP-CLI global config: where the global config YAML file is located. @@ -41,6 +42,7 @@ options: PHP binary: /usr/bin/php PHP version: 7.1.12-1+ubuntu16.04.1+deb.sury.org+1 PHP memory limit: 512M + OS virtual memory limit (ulimit -v): unlimited php.ini used: /etc/php/7.1/cli/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI packages dir: /home/person/.wp-cli/packages/ diff --git a/commands/cli/param-dump.md b/commands/cli/param-dump.md index e4ac30cae..ee8aa370c 100644 --- a/commands/cli/param-dump.md +++ b/commands/cli/param-dump.md @@ -1,6 +1,6 @@ # wp cli param-dump -Dumps the list of global parameters, as JSON or in var_export format. +Dumps the list of global parameters, as JSON or in plaintext format. This command runs on the `before_wp_load` hook, just before the WP load process begins. @@ -12,7 +12,7 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg : Display current values also. [\--format=<format>] -: Render output in a particular format. +: Render output in a particular format. Note: `var_export` is an alias for `plaintext`. \--- default: json options: @@ -25,6 +25,7 @@ options: # Dump the list of global parameters. $ wp cli param-dump --format=var_export + $ wp cli param-dump --format=plaintext array ( 'path' => array ( diff --git a/commands/config/add.md b/commands/config/add.md index 98565f828..9fe7ceea6 100644 --- a/commands/config/add.md +++ b/commands/config/add.md @@ -4,7 +4,7 @@ Adds a new constant or variable to the wp-config.php file. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/config/create.md b/commands/config/create.md index eca5d2d39..59fc0c987 100644 --- a/commands/config/create.md +++ b/commands/config/create.md @@ -2,9 +2,7 @@ Generates a wp-config.php file. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--db_password`, `--ssl`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--config-file` (2.6.0), `--insecure` (2.5.0). +Options added later: `--db_password` (3.0.0), `--config-file` (2.6.0), `--insecure` (2.5.0), `--ssl` (3.0.0). Creates a new wp-config.php with database constants, and verifies that the database constants are correct. diff --git a/commands/config/update.md b/commands/config/update.md index 176ce3d1c..9ab12b9c0 100644 --- a/commands/config/update.md +++ b/commands/config/update.md @@ -4,7 +4,7 @@ Updates or adds a constant or variable in the wp-config.php file. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. This command will add the constant or variable if it doesn't exist, or update it if it does. diff --git a/commands/connectors.md b/commands/connectors.md index 2eeab9425..7e77893a4 100644 --- a/commands/connectors.md +++ b/commands/connectors.md @@ -2,7 +2,7 @@ Lists and retrieves information about AI connectors. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### EXAMPLES diff --git a/commands/connectors/get.md b/commands/connectors/get.md index 67b2d113a..2f12380b4 100644 --- a/commands/connectors/get.md +++ b/commands/connectors/get.md @@ -2,7 +2,7 @@ Gets details about a specific AI connector. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS @@ -32,6 +32,7 @@ options: +-----------------+-----------------------------------------------+ | Field | Value | +-----------------+-----------------------------------------------+ + | id | openai | | name | OpenAI | | description | Text and image generation with GPT and Dall-E | | status | connected | diff --git a/commands/connectors/list.md b/commands/connectors/list.md index 5bf891dbf..4d821184a 100644 --- a/commands/connectors/list.md +++ b/commands/connectors/list.md @@ -2,7 +2,7 @@ Lists all available AI connectors. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS @@ -15,7 +15,7 @@ options: - connected - active - installed - - not installed + - uninstalled \--- [\--fields=<fields>] @@ -36,13 +36,13 @@ options: # List all connectors $ wp connectors list - +-----------+-----------------------------------------------+---------------+ - | name | description | status | - +-----------+-----------------------------------------------+---------------+ - | Anthropic | Text generation with Claude. | not installed | - | Google | Text and image generation with Gemini... | not installed | - | OpenAI | Text and image generation with GPT and Dall-E | connected | - +-----------+-----------------------------------------------+---------------+ + +-----------+-----------+-----------------------------------------------+-------------+ + | id | name | description | status | + +-----------+-----------+-----------------------------------------------+-------------+ + | anthropic | Anthropic | Text generation with Claude. | uninstalled | + | google | Google | Text and image generation with Gemini... | uninstalled | + | openai | OpenAI | Text and image generation with GPT and Dall-E | connected | + +-----------+-----------+-----------------------------------------------+-------------+ # List only connected connectors $ wp connectors list --status=connected diff --git a/commands/core/check-update-db.md b/commands/core/check-update-db.md index 387586f2d..cc8a7a233 100644 --- a/commands/core/check-update-db.md +++ b/commands/core/check-update-db.md @@ -2,7 +2,7 @@ Checks for the need for WordPress database updates. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Compares the current database version with the version required by WordPress core to determine if database updates are needed. diff --git a/commands/core/download.md b/commands/core/download.md index 98348d510..4e404c8f4 100644 --- a/commands/core/download.md +++ b/commands/core/download.md @@ -4,9 +4,7 @@ Downloads core WordPress files. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--skip-locale-check`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--insecure` (2.5.0), `--extract` (2.7.0). +Options added later: `--insecure` (2.5.0), `--extract` (2.7.0), `--skip-locale-check` (3.0.0). Downloads and extracts WordPress core files to the specified path. Uses current directory when no path is specified. Downloaded build is verified to have the correct md5 and then cached to the local filesystem. Subsequent uses of command will use the local cache if it still exists. diff --git a/commands/core/install.md b/commands/core/install.md index 69cf97b9f..481bebb05 100644 --- a/commands/core/install.md +++ b/commands/core/install.md @@ -2,9 +2,7 @@ Runs the standard WordPress installation process. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--admin_pass`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--locale` (2.7.0). +Options added later: `--admin_pass` (3.0.0), `--locale` (2.7.0). Creates the WordPress tables in the database using the URL, title, and default admin user details provided. Performs the famous 5 minute install in seconds or less. diff --git a/commands/core/multisite-install.md b/commands/core/multisite-install.md index b7852d50d..ca4c0feb4 100644 --- a/commands/core/multisite-install.md +++ b/commands/core/multisite-install.md @@ -2,7 +2,7 @@ Installs WordPress multisite from scratch. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--locale`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--locale` (3.0.0). Creates the WordPress tables in the database using the URL, title, and default admin user details provided. Then, creates the multisite tables in the database and adds multisite constants to the wp-config.php. diff --git a/commands/core/update.md b/commands/core/update.md index 7b65d37e2..43d83b679 100644 --- a/commands/core/update.md +++ b/commands/core/update.md @@ -4,9 +4,7 @@ Updates WordPress to a newer version. **Alias:** `upgrade` -> **Note:** The following options are not part of a stable WP-CLI release yet: `--format`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--insecure` (2.5.0). +Options added later: `--format` (3.0.0), `--insecure` (2.5.0). Defaults to updating WordPress to the latest version. diff --git a/commands/core/upgrade.md b/commands/core/upgrade.md index c0d74117e..2302186e8 100644 --- a/commands/core/upgrade.md +++ b/commands/core/upgrade.md @@ -4,9 +4,7 @@ Updates WordPress to a newer version. This is an alias for `wp core update`. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--format`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--insecure` (2.5.0). +Options added later: `--format` (3.0.0), `--insecure` (2.5.0). Defaults to updating WordPress to the latest version. diff --git a/commands/core/verify-checksums.md b/commands/core/verify-checksums.md index bfcb1bd15..419eb9223 100644 --- a/commands/core/verify-checksums.md +++ b/commands/core/verify-checksums.md @@ -4,9 +4,7 @@ Verifies WordPress files against WordPress.org's checksums. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--format`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--include-root` (2.8.0), `--insecure` (2.5.0), `--exclude` (2.12.0). +Options added later: `--include-root` (2.8.0), `--insecure` (2.5.0), `--exclude` (2.12.0), `--format` (3.0.0). Downloads md5 checksums for the current version from WordPress.org, and compares those checksums against the currently installed files. diff --git a/commands/cron/event/delete.md b/commands/cron/event/delete.md index 26ceb6b4e..e6e27e896 100644 --- a/commands/cron/event/delete.md +++ b/commands/cron/event/delete.md @@ -2,9 +2,7 @@ Deletes all scheduled cron events for the given hook. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--match-args`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--due-now` (2.11.0), `--exclude` (2.11.0), `--all` (2.11.0). +Options added later: `--due-now` (2.11.0), `--exclude` (2.11.0), `--all` (2.11.0), `--match-args` (3.0.0). ### OPTIONS diff --git a/commands/cron/event/run.md b/commands/cron/event/run.md index fc66ed1ff..c69ae6ea8 100644 --- a/commands/cron/event/run.md +++ b/commands/cron/event/run.md @@ -2,9 +2,7 @@ Runs the next scheduled cron event for the given hook. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--network`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--exclude` (2.8.0). +Options added later: `--exclude` (2.8.0), `--network` (3.0.0). ### OPTIONS diff --git a/commands/db/check.md b/commands/db/check.md index 122296976..d92fa8ad0 100644 --- a/commands/db/check.md +++ b/commands/db/check.md @@ -4,7 +4,7 @@ Checks the current status of the database. This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. -Runs `mysqlcheck` utility with `--check` using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. +Runs `mysqlcheck` utility with `--check` using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Requires `mysqlcheck` or `mariadb-check` client binary. [See docs](http://dev.mysql.com/doc/refman/5.7/en/check-table.html) for more details on the `CHECK TABLE` statement. diff --git a/commands/db/cli.md b/commands/db/cli.md index 950b2aa0f..a5f4f5805 100644 --- a/commands/db/cli.md +++ b/commands/db/cli.md @@ -1,11 +1,13 @@ # wp db cli -Opens a MySQL console using credentials from wp-config.php +Opens a MySQL console using credentials from wp-config.php. This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. **Alias:** `connect` +Requires `mysql` or `mariadb` client binary to be available. + ### OPTIONS See the [argument syntax](https://make.wordpress.org/cli/handbook/references/argument-syntax/) reference for a detailed explanation of the syntax conventions used. diff --git a/commands/db/connect.md b/commands/db/connect.md index b24324709..3f9231761 100644 --- a/commands/db/connect.md +++ b/commands/db/connect.md @@ -1,11 +1,13 @@ # wp db connect -Opens a MySQL console using credentials from wp-config.php +Opens a MySQL console using credentials from wp-config.php. This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. This is an alias for `wp db cli`. +Requires `mysql` or `mariadb` client binary to be available. + ### OPTIONS See the [argument syntax](https://make.wordpress.org/cli/handbook/references/argument-syntax/) reference for a detailed explanation of the syntax conventions used. diff --git a/commands/db/create.md b/commands/db/create.md index 7558fc2e8..027e60861 100644 --- a/commands/db/create.md +++ b/commands/db/create.md @@ -6,7 +6,7 @@ This command runs on the `after_wp_config_load` hook, after wp-config.php has be Options added later: `--defaults` (2.6.0). -Runs `CREATE_DATABASE` SQL statement using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. +Runs `CREATE_DATABASE` SQL statement using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Requires MySQL/MariaDB client binaries to be available. ### OPTIONS diff --git a/commands/db/drop.md b/commands/db/drop.md index 581c27d4e..81d59847d 100644 --- a/commands/db/drop.md +++ b/commands/db/drop.md @@ -6,7 +6,7 @@ This command runs on the `after_wp_config_load` hook, after wp-config.php has be Options added later: `--defaults` (2.6.0). -Runs `DROP_DATABASE` SQL statement using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. +Runs `DROP_DATABASE` SQL statement using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Requires MySQL/MariaDB client binaries to be available. ### OPTIONS diff --git a/commands/db/dump.md b/commands/db/dump.md index 1e53c32c3..3cd3cb89c 100644 --- a/commands/db/dump.md +++ b/commands/db/dump.md @@ -6,7 +6,7 @@ This command runs on the `after_wp_config_load` hook, after wp-config.php has be This is an alias for `wp db export`. -Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Accepts any valid [`mysqldump` flags](https://dev.mysql.com/doc/en/mysqldump.html#mysqldump-option-summary). +Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Accepts any valid [`mysqldump` flags](https://dev.mysql.com/doc/en/mysqldump.html#mysqldump-option-summary). Requires `mysqldump` or `mariadb-dump` client binary to be available. ### OPTIONS @@ -30,6 +30,10 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg [\--exclude_tables=<tables>] : The comma separated list of specific tables that should be skipped from exporting. Excluding this parameter will export all tables in the database. +[\--exclude_tables_data=<tables>] +: The comma separated list of specific tables for which only the structure will be exported. Excluding this parameter will export data for all tables in the export. + Requires a dump client that supports --ignore-table-data (mariadb-dump from MariaDB 10.1.45, 10.2.32, 10.3.23, 10.4.13, 10.5.3 or later); MySQL's mysqldump does not. Cannot be combined with --tables. + [\--include-tablespaces] : Skips adding the default --no-tablespaces option to mysqldump. @@ -77,6 +81,10 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg $ wp db export --exclude_tables=$(wp db tables --all-tables-with-prefix --format=csv) Success: Exported to 'wordpress_dbase-db72bb5.sql'. + # Skip data of certain tables from the exported database + $ wp db export --exclude_tables_data=wp_actionscheduler_logs + Success: Exported to 'wordpress_dbase-db72bb5.sql'. + # Export database to STDOUT. $ wp db export - -- MySQL dump 10.13 Distrib 5.7.19, for osx10.12 (x86_64) diff --git a/commands/db/export.md b/commands/db/export.md index 12a10f034..abe9aa3bd 100644 --- a/commands/db/export.md +++ b/commands/db/export.md @@ -6,7 +6,7 @@ This command runs on the `after_wp_config_load` hook, after wp-config.php has be **Alias:** `dump` -Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Accepts any valid [`mysqldump` flags](https://dev.mysql.com/doc/en/mysqldump.html#mysqldump-option-summary). +Runs `mysqldump` utility using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Accepts any valid [`mysqldump` flags](https://dev.mysql.com/doc/en/mysqldump.html#mysqldump-option-summary). Requires `mysqldump` or `mariadb-dump` client binary to be available. ### OPTIONS @@ -30,6 +30,10 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg [\--exclude_tables=<tables>] : The comma separated list of specific tables that should be skipped from exporting. Excluding this parameter will export all tables in the database. +[\--exclude_tables_data=<tables>] +: The comma separated list of specific tables for which only the structure will be exported. Excluding this parameter will export data for all tables in the export. + Requires a dump client that supports --ignore-table-data (mariadb-dump from MariaDB 10.1.45, 10.2.32, 10.3.23, 10.4.13, 10.5.3 or later); MySQL's mysqldump does not. Cannot be combined with --tables. + [\--include-tablespaces] : Skips adding the default --no-tablespaces option to mysqldump. @@ -77,6 +81,10 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg $ wp db export --exclude_tables=$(wp db tables --all-tables-with-prefix --format=csv) Success: Exported to 'wordpress_dbase-db72bb5.sql'. + # Skip data of certain tables from the exported database + $ wp db export --exclude_tables_data=wp_actionscheduler_logs + Success: Exported to 'wordpress_dbase-db72bb5.sql'. + # Export database to STDOUT. $ wp db export - -- MySQL dump 10.13 Distrib 5.7.19, for osx10.12 (x86_64) diff --git a/commands/db/import.md b/commands/db/import.md index 022b75482..b7a45ca7a 100644 --- a/commands/db/import.md +++ b/commands/db/import.md @@ -4,7 +4,7 @@ Imports a database from a file or from STDIN. This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. -Runs SQL queries using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. This does not create database by itself and only performs whatever tasks are defined in the SQL. +Runs SQL queries using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. This does not create database by itself and only performs whatever tasks are defined in the SQL. If MySQL/MariaDB client binaries are not available, falls back to importing via WordPress's `wpdb`. The fallback reads the whole file into memory, so it is slower and needs more memory than the client binaries for large imports. ### OPTIONS diff --git a/commands/db/optimize.md b/commands/db/optimize.md index de7fb637a..4be7a6c32 100644 --- a/commands/db/optimize.md +++ b/commands/db/optimize.md @@ -4,7 +4,7 @@ Optimizes the database. This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. -Runs `mysqlcheck` utility with `--optimize=true` using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. +Runs `mysqlcheck` utility with `--optimize=true` using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Requires `mysqlcheck` or `mariadb-check` client binary. [See docs](http://dev.mysql.com/doc/refman/5.7/en/optimize-table.html) for more details on the `OPTIMIZE TABLE` statement. diff --git a/commands/db/query.md b/commands/db/query.md index 1b2ae409a..d77536abb 100644 --- a/commands/db/query.md +++ b/commands/db/query.md @@ -4,8 +4,7 @@ Executes a SQL query against the database. This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. -Executes an arbitrary SQL query using `DB_HOST`, `DB_NAME`, `DB_USER` - and `DB_PASSWORD` database credentials specified in wp-config.php. +Executes an arbitrary SQL query using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. If MySQL/MariaDB client binaries are not available, falls back to executing queries via WordPress's `wpdb`. Use the `--skip-column-names` MySQL argument to exclude the headers from a SELECT query. Pipe the output to remove the ASCII table entirely. diff --git a/commands/db/repair.md b/commands/db/repair.md index 450afa2d1..6bcc92fe6 100644 --- a/commands/db/repair.md +++ b/commands/db/repair.md @@ -4,7 +4,7 @@ Repairs the database. This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. -Runs `mysqlcheck` utility with `--repair=true` using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. +Runs `mysqlcheck` utility with `--repair=true` using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Requires `mysqlcheck` or `mariadb-check` client binary. [See docs](http://dev.mysql.com/doc/refman/5.7/en/repair-table.html) for more details on the `REPAIR TABLE` statement. diff --git a/commands/db/reset.md b/commands/db/reset.md index 5492c5153..25c2c795f 100644 --- a/commands/db/reset.md +++ b/commands/db/reset.md @@ -6,7 +6,7 @@ This command runs on the `after_wp_config_load` hook, after wp-config.php has be Options added later: `--defaults` (2.6.0). -Runs `DROP_DATABASE` and `CREATE_DATABASE` SQL statements using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. +Runs `DROP_DATABASE` and `CREATE_DATABASE` SQL statements using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. Requires MySQL/MariaDB client binaries to be available. ### OPTIONS diff --git a/commands/db/size.md b/commands/db/size.md index 7dd5ff41c..d4389c2f5 100644 --- a/commands/db/size.md +++ b/commands/db/size.md @@ -2,10 +2,12 @@ Displays the database name and size. -Options added later: `--decimals` (2.6.0), `--order` (2.7.0), `--orderby` (2.7.0). +Options added later: `--fields` (3.0.0), `--decimals` (2.6.0), `--order` (2.7.0), `--orderby` (2.7.0). Display the database name and size for `DB_NAME` specified in wp-config.php. The size defaults to a human-readable number. +The reported size is the sum of the data and the index size. Both can be displayed separately by adding them to `--fields`. For SQLite, the database size is the size of the database file, which also includes overhead such as free pages. + Available size formats include: * b (bytes) * kb (kilobytes) @@ -52,6 +54,9 @@ options: [\--human-readable] : Display database sizes in human readable formats. +[\--fields=<fields>] +: Get a specific subset of the fields. + [\--format=<format>] : Render output in a particular format. \--- @@ -69,7 +74,7 @@ options: : List all the tables in a multisite install. [\--decimals=<decimals>] -: Number of digits after decimal point. Defaults to 0. +: Number of digits after decimal point. Defaults to 0, or 2 when using --human-readable. [\--all-tables-with-prefix] : List all tables that match the table prefix even if not registered on $wpdb. Overrides --network. @@ -95,6 +100,18 @@ options: - size \--- +### AVAILABLE FIELDS + +These fields will be displayed by default: + +* Name +* Size + +These fields are optionally available: + +* Data +* Index + ### EXAMPLES $ wp db size @@ -122,6 +139,13 @@ options: | wp_commentmeta | 48 KB | +-----------------------+-------+ + $ wp db size --fields=Name,Data,Index,Size --human-readable + +-------------------+---------+--------+---------+ + | Name | Data | Index | Size | + +-------------------+---------+--------+---------+ + | wordpress_default | 3.43 GB | 2.8 GB | 6.23 GB | + +-------------------+---------+--------+---------+ + $ wp db size --size_format=b 5865472 diff --git a/commands/db/status.md b/commands/db/status.md new file mode 100644 index 000000000..a349c0b08 --- /dev/null +++ b/commands/db/status.md @@ -0,0 +1,78 @@ +# wp db status + +Displays an overview of the database. + +This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. + +Available since WP-CLI 3.0.0. + +Shows the database name, the number of tables and their total size, the table prefix, the storage engine, character set and collation of the tables, and whether `mysqlcheck` reports any problems. Engine, charset and collation read "Mixed" when the tables don't all share the same one. + +Unlike `wp db size` or `wp db prefix`, this doesn't load WordPress, so it also works before WordPress is installed. + +For SQLite databases, the engine is reported as SQLite, and charset, collation and check status are not available. + +### OPTIONS + +See the [argument syntax](https://make.wordpress.org/cli/handbook/references/argument-syntax/) reference for a detailed explanation of the syntax conventions used. + +[\--dbuser=<value>] +: Username to pass to mysql and mysqlcheck. Defaults to DB_USER. + +[\--dbpass=<value>] +: Password to pass to mysql and mysqlcheck. Defaults to DB_PASSWORD. + +[\--skip-check] +: Don't run `mysqlcheck`, which reads every table and can take a while on large databases. + +[\--format=<format>] +: Render output in a particular format. The JSON output lists the total size in bytes. +\--- +default: list +options: + - list + - json +\--- + +[\--defaults] +: Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration. + +### EXAMPLES + + $ wp db status + Database Name: wordpress_dbase + Tables: 12 + Total Size: 868.35 KB + Prefix: wp_ + Engine: InnoDB + Charset: utf8mb4 + Collation: utf8mb4_unicode_520_ci + Check Status: OK + + $ wp db status --skip-check --format=json + {"database":"wordpress_dbase","tables":12,"size":868352,"prefix":"wp_","engine":"InnoDB","charset":"utf8mb4","collation":"utf8mb4_unicode_520_ci","check":"Skipped"} + +### GLOBAL PARAMETERS + +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. + +| **Argument** | **Description** | +|:----------------|:-----------------------------| +| `--path=` | Path to the WordPress files. | +| `--url=` | Pretend request came from given URL. In multisite, this argument is how the target site is specified. | +| `--ssh=[:][@][:][]` | Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "docker-compose-run", "vagrant"). | +| `--ssh-args=` | Pass additional arguments to SSH (or other tools specified by --ssh scheme). | +| `--http=` | Perform operation against a remote WordPress installation over HTTP. | +| `--user=` | Set the WordPress user. | +| `--skip-plugins[=]` | Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded. | +| `--skip-themes[=]` | Skip loading all themes, or a comma-separated list of themes. | +| `--skip-packages` | Skip loading all installed packages. | +| `--require=` | Load PHP file before running the command (may be used more than once). | +| `--exec=` | Execute PHP code before running the command (may be used more than once). | +| `--context=` | Load WordPress in a given context. | +| `--[no-]color` | Whether to colorize the output. | +| `--debug[=]` | Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help. | +| `--prompt[=]` | Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values. | +| `--quiet` | Suppress informational messages. | +| `--alias=` | Name of the alias to use. Aliases can reference local WordPress installations or remote SSH connections. Aliases are defined in the wp-cli.yml file. | +| `--assume-https` | Set $_SERVER['HTTPS'] to make WordPress treat the site as HTTPS. Use when WordPress is behind an HTTPS proxy or load balancer. | diff --git a/commands/db/users.md b/commands/db/users.md new file mode 100644 index 000000000..6ef28ae05 --- /dev/null +++ b/commands/db/users.md @@ -0,0 +1,21 @@ +# wp db users + +Manages MySQL and MariaDB user accounts. + +Unless overridden, these commands run on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. + +Available since WP-CLI 3.0.0. + +Creating users needs a database account with the `CREATE USER` privilege (and `GRANT OPTION` for `--grant-privileges`), which the one in wp-config.php usually doesn't have. Pass a privileged account with `--dbuser` and `--dbpass`. + +### EXAMPLES + + # Create a user with full privileges on the WordPress database, prompting for both passwords. + $ wp db users create appuser localhost --grant-privileges --dbuser=root --prompt=dbpass + 1/1 [--dbpass=<value>]: + Password: + Success: Created database user 'appuser'@'localhost' with all privileges on 'wp_database'. + + + + diff --git a/commands/db/users/create.md b/commands/db/users/create.md new file mode 100644 index 000000000..adfead959 --- /dev/null +++ b/commands/db/users/create.md @@ -0,0 +1,75 @@ +# wp db users create + +Creates a database user. + +This command runs on the `after_wp_config_load` hook, after wp-config.php has been loaded into scope. + +Available since WP-CLI 3.0.0. + +The statements are sent to the `mysql` client through STDIN, so the new user's password doesn't show up in the process list or in `--debug` output. + +### OPTIONS + +See the [argument syntax](https://make.wordpress.org/cli/handbook/references/argument-syntax/) reference for a detailed explanation of the syntax conventions used. + +<username> +: Name of the user to create. + +[<host>] +: Host the user is allowed to connect from. Use `%` for any host. +\--- +default: localhost +\--- + +[\--password=<password>] +: Password for the new user. If omitted, it is read from STDIN when input is piped, and prompted for otherwise. Avoid passing it here on shared systems, as it ends up in the shell history. + +[\--grant-privileges] +: Grant the new user all privileges on the WordPress database (DB_NAME). + +[\--dbuser=<value>] +: Username to connect as. Needs the `CREATE USER` privilege. Defaults to DB_USER. + +[\--dbpass=<value>] +: Password to connect with. Defaults to DB_PASSWORD. + +[\--defaults] +: Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration. + +### EXAMPLES + + # Create a user that can connect from any host, reading its password from a file. + # This connects as DB_USER, which then needs the CREATE USER privilege. + $ wp db users create appuser '%' < password.txt + Success: Created database user 'appuser'@'%'. + + # Create a user with full privileges on the WordPress database. + $ wp db users create appuser localhost --grant-privileges --dbuser=root --prompt=dbpass + 1/1 [--dbpass=<value>]: + Password: + Success: Created database user 'appuser'@'localhost' with all privileges on 'wp_database'. + +### GLOBAL PARAMETERS + +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. + +| **Argument** | **Description** | +|:----------------|:-----------------------------| +| `--path=` | Path to the WordPress files. | +| `--url=` | Pretend request came from given URL. In multisite, this argument is how the target site is specified. | +| `--ssh=[:][@][:][]` | Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "docker-compose-run", "vagrant"). | +| `--ssh-args=` | Pass additional arguments to SSH (or other tools specified by --ssh scheme). | +| `--http=` | Perform operation against a remote WordPress installation over HTTP. | +| `--user=` | Set the WordPress user. | +| `--skip-plugins[=]` | Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded. | +| `--skip-themes[=]` | Skip loading all themes, or a comma-separated list of themes. | +| `--skip-packages` | Skip loading all installed packages. | +| `--require=` | Load PHP file before running the command (may be used more than once). | +| `--exec=` | Execute PHP code before running the command (may be used more than once). | +| `--context=` | Load WordPress in a given context. | +| `--[no-]color` | Whether to colorize the output. | +| `--debug[=]` | Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help. | +| `--prompt[=]` | Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values. | +| `--quiet` | Suppress informational messages. | +| `--alias=` | Name of the alias to use. Aliases can reference local WordPress installations or remote SSH connections. Aliases are defined in the wp-cli.yml file. | +| `--assume-https` | Set $_SERVER['HTTPS'] to make WordPress treat the site as HTTPS. Use when WordPress is behind an HTTPS proxy or load balancer. | diff --git a/commands/eval-file.md b/commands/eval-file.md index 4380cf292..012deb155 100644 --- a/commands/eval-file.md +++ b/commands/eval-file.md @@ -4,9 +4,7 @@ Loads and executes a PHP file. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--hook`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--use-include` (2.8.0). +Options added later: `--use-include` (2.8.0), `--hook` (3.0.0). Note: because code is executed within a method, global variables need to be explicitly globalized. diff --git a/commands/eval.md b/commands/eval.md index 8928633c4..35ac02f58 100644 --- a/commands/eval.md +++ b/commands/eval.md @@ -4,7 +4,7 @@ Executes arbitrary PHP code. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--hook`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--hook` (3.0.0). Note: because code is executed within a method, global variables need to be explicitly globalized. diff --git a/commands/export.md b/commands/export.md index 8d5d8521d..43f86f1f8 100644 --- a/commands/export.md +++ b/commands/export.md @@ -2,9 +2,7 @@ Exports WordPress content to a WXR file. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--skip_authors`, `--skip_terms`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--include_once` (2.8.0), `--allow_orphan_terms` (2.9.0). +Options added later: `--skip_authors` (3.0.0), `--skip_terms` (3.0.0), `--include_once` (2.8.0), `--allow_orphan_terms` (2.9.0). Generates one or more WXR files containing authors, terms, posts, comments, and attachments. WXR files do not include site configuration (options) or the attachment files themselves. diff --git a/commands/font.md b/commands/font.md index ad3b12cc0..c9a3e3357 100644 --- a/commands/font.md +++ b/commands/font.md @@ -2,7 +2,7 @@ Manages WordPress fonts. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### EXAMPLES diff --git a/commands/font/collection.md b/commands/font/collection.md index 2af5f3a65..1392183bd 100644 --- a/commands/font/collection.md +++ b/commands/font/collection.md @@ -2,7 +2,7 @@ Manages font collections. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Font collections are predefined sets of fonts that can be used in WordPress. Collections are registered by WordPress core or themes and cannot be created or deleted via the command line. diff --git a/commands/font/collection/get.md b/commands/font/collection/get.md index 2af4ecd14..8a564ad8c 100644 --- a/commands/font/collection/get.md +++ b/commands/font/collection/get.md @@ -2,7 +2,7 @@ Gets details about a registered font collection. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/font/collection/is-registered.md b/commands/font/collection/is-registered.md index 381b22a67..27770cf9b 100644 --- a/commands/font/collection/is-registered.md +++ b/commands/font/collection/is-registered.md @@ -2,7 +2,7 @@ Checks if a font collection is registered. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/font/collection/list-categories.md b/commands/font/collection/list-categories.md index ff42874e3..caaceba74 100644 --- a/commands/font/collection/list-categories.md +++ b/commands/font/collection/list-categories.md @@ -2,7 +2,7 @@ Lists categories in a collection. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/font/collection/list-families.md b/commands/font/collection/list-families.md index e5e0d2b8e..2a9d64797 100644 --- a/commands/font/collection/list-families.md +++ b/commands/font/collection/list-families.md @@ -2,7 +2,7 @@ Lists font families in a collection. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/font/collection/list.md b/commands/font/collection/list.md index f9f435d92..50b758b3a 100644 --- a/commands/font/collection/list.md +++ b/commands/font/collection/list.md @@ -2,7 +2,7 @@ Lists registered font collections. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/font/face.md b/commands/font/face.md index 851f0a376..03d83ca11 100644 --- a/commands/font/face.md +++ b/commands/font/face.md @@ -2,7 +2,7 @@ Manages font faces. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. To list, get, create, update or delete font faces, use `wp post` with `--post_type=wp_font_face`. diff --git a/commands/font/face/install.md b/commands/font/face/install.md index e50255ff8..e8320cc23 100644 --- a/commands/font/face/install.md +++ b/commands/font/face/install.md @@ -2,7 +2,7 @@ Installs a font face. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Creates a new font face post with the specified settings. diff --git a/commands/font/family.md b/commands/font/family.md index 610bb0f78..d9c31256a 100644 --- a/commands/font/family.md +++ b/commands/font/family.md @@ -2,7 +2,7 @@ Manages font families. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. To list, get, create, update or delete font families, use `wp post` with `--post_type=wp_font_family`. diff --git a/commands/font/family/install.md b/commands/font/family/install.md index da5e59b08..b45d94055 100644 --- a/commands/font/family/install.md +++ b/commands/font/family/install.md @@ -2,7 +2,7 @@ Installs a font family from a collection. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Retrieves a font family from a collection and creates the wp_font_family post along with all associated font faces. diff --git a/commands/help.md b/commands/help.md index 2b1db689b..b5e476198 100644 --- a/commands/help.md +++ b/commands/help.md @@ -2,7 +2,7 @@ Gets help on WP-CLI, or on a specific command. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--full`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--full` (3.0.0). ### OPTIONS diff --git a/commands/i18n/audit.md b/commands/i18n/audit.md index 47ffd772e..7fa052c22 100644 --- a/commands/i18n/audit.md +++ b/commands/i18n/audit.md @@ -4,7 +4,7 @@ Audit strings in a project. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Scans PHP, Blade-PHP and JavaScript files for translatable strings to find possible mistakes. diff --git a/commands/i18n/make-php.md b/commands/i18n/make-php.md index f2962980e..795a7bdd1 100644 --- a/commands/i18n/make-php.md +++ b/commands/i18n/make-php.md @@ -4,9 +4,7 @@ Create PHP files from PO files. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--pretty-print`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Available since WP-CLI 2.10.0. +Available since WP-CLI 2.10.0. Options added later: `--pretty-print` (3.0.0). ### OPTIONS diff --git a/commands/i18n/update-po.md b/commands/i18n/update-po.md index 1dc12d513..6ae183ac6 100644 --- a/commands/i18n/update-po.md +++ b/commands/i18n/update-po.md @@ -4,9 +4,7 @@ Update PO files from a POT file. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--purge`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Available since WP-CLI 2.7.0. +Available since WP-CLI 2.7.0. Options added later: `--purge` (3.0.0). This behaves similarly to the [msgmerge](https://www.gnu.org/software/gettext/manual/html_node/msgmerge-Invocation.html) command. diff --git a/commands/icon.md b/commands/icon.md index 7392156db..c1f44460a 100644 --- a/commands/icon.md +++ b/commands/icon.md @@ -2,7 +2,7 @@ Manages registered SVG icons. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Icons are registered in code with `wp_register_icon()` by WordPress core, themes, and plugins, and always belong to an icon collection. Because they only exist for the duration of a request, they cannot be created or deleted from the command line. diff --git a/commands/icon/collection.md b/commands/icon/collection.md index e0ccf7e7f..3227dbe48 100644 --- a/commands/icon/collection.md +++ b/commands/icon/collection.md @@ -2,7 +2,7 @@ Manages icon collections. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Icon collections group registered SVG icons by source, and act as the namespace of the icons belonging to them. WordPress core registers the `core` collection, while themes and plugins register their own with `wp_register_icon_collection()`. Because collections only exist for the duration of a request, they cannot be created or deleted from the command line. diff --git a/commands/icon/collection/get.md b/commands/icon/collection/get.md index 3af496722..c80b5d4e5 100644 --- a/commands/icon/collection/get.md +++ b/commands/icon/collection/get.md @@ -2,7 +2,7 @@ Gets details about a registered icon collection. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/icon/collection/is-registered.md b/commands/icon/collection/is-registered.md index d51d496a3..512a69bad 100644 --- a/commands/icon/collection/is-registered.md +++ b/commands/icon/collection/is-registered.md @@ -2,7 +2,7 @@ Checks if an icon collection is registered. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/icon/collection/list.md b/commands/icon/collection/list.md index c86dae8cf..953047866 100644 --- a/commands/icon/collection/list.md +++ b/commands/icon/collection/list.md @@ -2,7 +2,7 @@ Lists registered icon collections. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/icon/get.md b/commands/icon/get.md index d2bf760ec..83e2f4ce1 100644 --- a/commands/icon/get.md +++ b/commands/icon/get.md @@ -2,7 +2,7 @@ Gets details about a registered icon. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/icon/is-registered.md b/commands/icon/is-registered.md index bf9ad92f1..e3dae0bc3 100644 --- a/commands/icon/is-registered.md +++ b/commands/icon/is-registered.md @@ -2,7 +2,7 @@ Checks if an icon is registered. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/icon/list.md b/commands/icon/list.md index 29607a15c..f45551def 100644 --- a/commands/icon/list.md +++ b/commands/icon/list.md @@ -2,7 +2,7 @@ Lists registered icons. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/icon/render.md b/commands/icon/render.md index 2026920d8..4f6b9f0db 100644 --- a/commands/icon/render.md +++ b/commands/icon/render.md @@ -2,7 +2,7 @@ Renders the SVG markup of a registered icon. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Unlike `wp icon get --field=content`, which prints the icon as it was registered, this applies the same sizing and accessibility attributes that WordPress applies when rendering the icon on the front end. diff --git a/commands/import.md b/commands/import.md index 55ac94a6d..70a00e0f1 100644 --- a/commands/import.md +++ b/commands/import.md @@ -2,7 +2,7 @@ Imports content from a given WXR file. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--rewrite_urls`, `--importer`, `--source-dir`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--rewrite_urls` (3.0.0), `--importer` (3.0.0), `--source-dir` (3.0.0). Provides a command line interface to the WordPress Importer plugin, for performing data migrations. diff --git a/commands/language/core/install.md b/commands/language/core/install.md index 865594649..d9ce0dde4 100644 --- a/commands/language/core/install.md +++ b/commands/language/core/install.md @@ -2,7 +2,7 @@ Installs a given language. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--format`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--format` (3.0.0). Downloads the language pack from WordPress.org. Find your language code at: https://translate.wordpress.org/ diff --git a/commands/language/core/update.md b/commands/language/core/update.md index fcc8cad69..8f1c79133 100644 --- a/commands/language/core/update.md +++ b/commands/language/core/update.md @@ -2,7 +2,7 @@ Updates installed languages for core. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--format`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--format` (3.0.0). ### OPTIONS diff --git a/commands/language/plugin/update.md b/commands/language/plugin/update.md index 5c62949b8..99e22ea57 100644 --- a/commands/language/plugin/update.md +++ b/commands/language/plugin/update.md @@ -2,7 +2,7 @@ Updates installed languages for one or more plugins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--format`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--format` (3.0.0). ### OPTIONS diff --git a/commands/language/theme/update.md b/commands/language/theme/update.md index ac663fc1f..70c2dc710 100644 --- a/commands/language/theme/update.md +++ b/commands/language/theme/update.md @@ -2,7 +2,7 @@ Updates installed languages for one or more themes. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--format`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--format` (3.0.0). ### OPTIONS diff --git a/commands/media/import.md b/commands/media/import.md index b3c6b1821..9cec1640c 100644 --- a/commands/media/import.md +++ b/commands/media/import.md @@ -2,9 +2,7 @@ Creates attachments from local files or URLs. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--destination-dir`, `--skip-duplicates`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--post_name` (2.8.0), `--file_name` (2.10.0). +Options added later: `--post_name` (2.8.0), `--file_name` (2.10.0), `--destination-dir` (3.0.0), `--skip-duplicates` (3.0.0). ### OPTIONS diff --git a/commands/media/prune.md b/commands/media/prune.md index f57e525ce..92ca1fb39 100644 --- a/commands/media/prune.md +++ b/commands/media/prune.md @@ -2,7 +2,7 @@ Removes all generated image files for one or more attachments. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Generated image files for registered sizes can be recreated with `wp media regenerate`. Thumbnails for image sizes that are no longer registered are kept by default because they cannot be regenerated; use `--remove-abandoned` to remove them as well. diff --git a/commands/media/regenerate.md b/commands/media/regenerate.md index be53cccd7..5e216ea76 100644 --- a/commands/media/regenerate.md +++ b/commands/media/regenerate.md @@ -2,9 +2,7 @@ Regenerates thumbnails for one or more attachments. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--update-attachment-refs`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--delete-unknown` (2.11.0). +Options added later: `--delete-unknown` (2.11.0), `--update-attachment-refs` (3.0.0). ### OPTIONS diff --git a/commands/media/replace.md b/commands/media/replace.md index 354e1afe8..b55d33e90 100644 --- a/commands/media/replace.md +++ b/commands/media/replace.md @@ -2,7 +2,7 @@ Replaces the file for an existing attachment while preserving its identity. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/menu/item/add-post-type-archive.md b/commands/menu/item/add-post-type-archive.md index c54e2604c..c5a951b6f 100644 --- a/commands/menu/item/add-post-type-archive.md +++ b/commands/menu/item/add-post-type-archive.md @@ -2,7 +2,7 @@ Adds a post type archive as a menu item. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/menu/item/get.md b/commands/menu/item/get.md index 56786483e..8e86dce16 100644 --- a/commands/menu/item/get.md +++ b/commands/menu/item/get.md @@ -2,7 +2,7 @@ Gets details about a menu item. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/option/list.md b/commands/option/list.md index 1d7ba15a1..84684696c 100644 --- a/commands/option/list.md +++ b/commands/option/list.md @@ -13,7 +13,7 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg : Pattern to exclude. Use wildcards ( * and ? ) to match option name. [\--autoload=<value>] -: Match only autoload options when value is on, and only not-autoload option when off. +: Match only autoload options when value is on, and only not-autoload option when off. On WordPress 6.6 and later, options with the `auto` and `auto-on` values count as autoload options. [\--transients] : List only transients. Use `--no-transients` to ignore all transients. diff --git a/commands/package.md b/commands/package.md index 4949a8740..3d0305aba 100644 --- a/commands/package.md +++ b/commands/package.md @@ -6,6 +6,8 @@ Unless overridden, these commands run on the `before_wp_load` hook, just before WP-CLI packages are community-maintained projects built on WP-CLI. They can contain WP-CLI commands, but they can also just extend WP-CLI in some way. +Composer is downloaded on first use to the WP-CLI cache (`WP_CLI_CACHE_DIR`). Set `WP_CLI_COMPOSER_BINARY` to a readable Composer Phar or executable to use an existing installation instead. + Learn how to create your own command from the [Commands Cookbook](https://make.wordpress.org/cli/handbook/guides/commands-cookbook/) diff --git a/commands/package/get.md b/commands/package/get.md index d24f9a740..b2fb649c0 100644 --- a/commands/package/get.md +++ b/commands/package/get.md @@ -4,7 +4,7 @@ Gets information about an installed WP-CLI package. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/package/install.md b/commands/package/install.md index 21c0456d9..a162f955a 100644 --- a/commands/package/install.md +++ b/commands/package/install.md @@ -4,17 +4,17 @@ Installs a WP-CLI package. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--interaction`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--insecure` (2.5.0). +Options added later: `--insecure` (2.5.0), `--interaction` (3.0.0). Packages are required to be a valid Composer package, and can be specified as: -* Package name from WP-CLI's package index. +* Package name, such as `wp-cli/server-command`. * Git URL accessible by the current shell user. * Path to a directory on the local machine. * Local or remote .zip file. +A package name is looked up in WP-CLI's package index, which is deprecated, and then on Packagist. If neither has it, WP-CLI tries `https://github.com/.git` and then `https://gitlab.com/.git`. Set the `GITHUB_TOKEN` or `GITLAB_TOKEN` environment variable to avoid rate limiting on that check. + Packages are installed to `~/.wp-cli/packages/` by default. Use the `WP_CLI_PACKAGES_DIR` environment variable to provide a custom path. When installing a local directory, WP-CLI simply registers a reference to the directory. If you move or delete the directory, WP-CLI's reference breaks. diff --git a/commands/package/is-installed.md b/commands/package/is-installed.md index b1578e2c8..5c075341e 100644 --- a/commands/package/is-installed.md +++ b/commands/package/is-installed.md @@ -4,7 +4,7 @@ Checks if a given package is installed. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Returns exit code 0 when installed, 1 when uninstalled. diff --git a/commands/package/list.md b/commands/package/list.md index 939370947..26f7dc1a6 100644 --- a/commands/package/list.md +++ b/commands/package/list.md @@ -4,7 +4,7 @@ Lists installed WP-CLI packages. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--skip-update-check`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--skip-update-check` (3.0.0). ### OPTIONS diff --git a/commands/package/uninstall.md b/commands/package/uninstall.md index 66643a727..2424dafcc 100644 --- a/commands/package/uninstall.md +++ b/commands/package/uninstall.md @@ -4,9 +4,7 @@ Uninstalls a WP-CLI package. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--interaction`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--insecure` (2.6.0). +Options added later: `--insecure` (2.6.0), `--interaction` (3.0.0). ### OPTIONS diff --git a/commands/package/update.md b/commands/package/update.md index beef9b89a..429bddfd9 100644 --- a/commands/package/update.md +++ b/commands/package/update.md @@ -4,11 +4,14 @@ Updates installed WP-CLI packages to their latest version. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--interaction`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--insecure` (3.0.0), `--interaction` (3.0.0). [<package-name>...] : One or more package names to update. If not specified, all packages will be updated. +[\--insecure] +: Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack. + [\--interaction] : Control interactive mode. Use `--no-interaction` to disable prompts (interactive by default). Useful for scripting. diff --git a/commands/plugin/activate.md b/commands/plugin/activate.md index 68497f6bd..4f09a77c9 100644 --- a/commands/plugin/activate.md +++ b/commands/plugin/activate.md @@ -2,9 +2,7 @@ Activates one or more plugins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--force`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--exclude` (2.7.0). +Options added later: `--exclude` (2.7.0), `--force` (3.0.0). ### OPTIONS diff --git a/commands/plugin/check-update.md b/commands/plugin/check-update.md index 26a9a563e..5a9893d62 100644 --- a/commands/plugin/check-update.md +++ b/commands/plugin/check-update.md @@ -2,7 +2,7 @@ Checks for plugin updates without performing them. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Lists the available plugin updates. Similar to `wp core check-update`. diff --git a/commands/plugin/download.md b/commands/plugin/download.md index d0806c321..9b23dc47c 100644 --- a/commands/plugin/download.md +++ b/commands/plugin/download.md @@ -4,7 +4,7 @@ Downloads a plugin zip package without loading WordPress. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/plugin/install-dependencies.md b/commands/plugin/install-dependencies.md index 6a11f176a..e3ff5e85a 100644 --- a/commands/plugin/install-dependencies.md +++ b/commands/plugin/install-dependencies.md @@ -2,7 +2,7 @@ Installs all dependencies of an installed plugin. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. This command is useful when you have a plugin installed that depends on other plugins, and you want to install those dependencies without activating the main plugin. diff --git a/commands/plugin/install.md b/commands/plugin/install.md index fd2e0cbce..f68330b42 100644 --- a/commands/plugin/install.md +++ b/commands/plugin/install.md @@ -2,9 +2,7 @@ Installs one or more plugins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--with-dependencies`, `--slug`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--ignore-requirements` (2.12.0), `--insecure` (2.5.0). +Options added later: `--ignore-requirements` (2.12.0), `--insecure` (2.5.0), `--with-dependencies` (3.0.0), `--slug` (3.0.0). ### OPTIONS diff --git a/commands/plugin/update.md b/commands/plugin/update.md index 98498fc74..9404bac82 100644 --- a/commands/plugin/update.md +++ b/commands/plugin/update.md @@ -4,9 +4,7 @@ Updates one or more plugins. **Alias:** `upgrade` -> **Note:** The following options are not part of a stable WP-CLI release yet: `--auto-update-indicated`, `--include-vcs`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--insecure` (2.5.0). +Options added later: `--insecure` (2.5.0), `--auto-update-indicated` (3.0.0), `--include-vcs` (3.0.0). ### OPTIONS diff --git a/commands/plugin/upgrade.md b/commands/plugin/upgrade.md index 489081ee4..a00ff35f9 100644 --- a/commands/plugin/upgrade.md +++ b/commands/plugin/upgrade.md @@ -4,9 +4,7 @@ Updates one or more plugins. This is an alias for `wp plugin update`. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--auto-update-indicated`, `--include-vcs`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--insecure` (2.5.0). +Options added later: `--insecure` (2.5.0), `--auto-update-indicated` (3.0.0), `--include-vcs` (3.0.0). ### OPTIONS diff --git a/commands/plugin/verify-checksums.md b/commands/plugin/verify-checksums.md index c25af49cc..682af236a 100644 --- a/commands/plugin/verify-checksums.md +++ b/commands/plugin/verify-checksums.md @@ -2,9 +2,7 @@ Verifies plugin files against WordPress.org's checksums. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--exclude-mu-plugins`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--version` (2.8.0), `--insecure` (2.5.0), `--exclude` (2.9.0). +Options added later: `--version` (2.8.0), `--insecure` (2.5.0), `--exclude` (2.9.0), `--exclude-mu-plugins` (3.0.0). ### OPTIONS diff --git a/commands/post/block.md b/commands/post/block.md index fa7a46573..5c2ecda52 100644 --- a/commands/post/block.md +++ b/commands/post/block.md @@ -2,7 +2,7 @@ Manages blocks within post content. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Provides commands for inspecting, manipulating, and managing Gutenberg blocks in post content. diff --git a/commands/post/block/clone.md b/commands/post/block/clone.md index 84b512e13..a74241105 100644 --- a/commands/post/block/clone.md +++ b/commands/post/block/clone.md @@ -2,7 +2,7 @@ Clones a block within a post. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Duplicates an existing block and inserts it at a specified position. diff --git a/commands/post/block/count.md b/commands/post/block/count.md index 08e7f24ac..2c95012b4 100644 --- a/commands/post/block/count.md +++ b/commands/post/block/count.md @@ -2,7 +2,7 @@ Counts blocks across multiple posts. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Analyzes block usage across posts for site-wide reporting. diff --git a/commands/post/block/export.md b/commands/post/block/export.md index 0649d1780..efe9a2c31 100644 --- a/commands/post/block/export.md +++ b/commands/post/block/export.md @@ -2,7 +2,7 @@ Exports block content to a file. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Exports blocks from a post to a file for backup or migration. diff --git a/commands/post/block/extract.md b/commands/post/block/extract.md index 2b9c2f56d..9c36ac15c 100644 --- a/commands/post/block/extract.md +++ b/commands/post/block/extract.md @@ -2,7 +2,7 @@ Extracts data from blocks. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Extracts specific attribute values or content from blocks for scripting. diff --git a/commands/post/block/get.md b/commands/post/block/get.md index 82992170a..326ecf0a0 100644 --- a/commands/post/block/get.md +++ b/commands/post/block/get.md @@ -2,7 +2,7 @@ Gets a single block by index. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Retrieves the full structure of a block at the specified position. diff --git a/commands/post/block/import.md b/commands/post/block/import.md index 781690c48..7af7b8673 100644 --- a/commands/post/block/import.md +++ b/commands/post/block/import.md @@ -2,7 +2,7 @@ Imports blocks from a file into a post. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Imports blocks from a JSON or YAML file into a post's content. diff --git a/commands/post/block/insert.md b/commands/post/block/insert.md index be440a00d..29f068bb9 100644 --- a/commands/post/block/insert.md +++ b/commands/post/block/insert.md @@ -2,7 +2,7 @@ Inserts a block into a post at a specified position. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Adds a new block to the post content. By default, the block is appended to the end of the post. diff --git a/commands/post/block/list.md b/commands/post/block/list.md index 63755afc7..ae0f8fdcc 100644 --- a/commands/post/block/list.md +++ b/commands/post/block/list.md @@ -2,7 +2,7 @@ Lists blocks in a post with counts. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Displays a summary of block types used in the post and how many times each block type appears. diff --git a/commands/post/block/move.md b/commands/post/block/move.md index 350d2c848..5a46dd029 100644 --- a/commands/post/block/move.md +++ b/commands/post/block/move.md @@ -2,7 +2,7 @@ Moves a block from one position to another. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Reorders blocks within the post by moving a block from one index to another. diff --git a/commands/post/block/parse.md b/commands/post/block/parse.md index 71897e148..ae7213f54 100644 --- a/commands/post/block/parse.md +++ b/commands/post/block/parse.md @@ -2,7 +2,7 @@ Parses and displays the block structure of a post. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Outputs the parsed block structure as JSON or YAML. By default, innerHTML is stripped from the output for readability. diff --git a/commands/post/block/remove.md b/commands/post/block/remove.md index 7a5c693b1..26888f9b9 100644 --- a/commands/post/block/remove.md +++ b/commands/post/block/remove.md @@ -2,7 +2,7 @@ Removes blocks from a post by name or index. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Removes one or more blocks from the post content. Blocks can be removed by their type name or by their position index. diff --git a/commands/post/block/render.md b/commands/post/block/render.md index faaf471d1..3aa46cbac 100644 --- a/commands/post/block/render.md +++ b/commands/post/block/render.md @@ -2,7 +2,7 @@ Renders blocks from a post to HTML. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Outputs the rendered HTML of blocks in a post. This uses WordPress's block rendering system to produce the final HTML output. diff --git a/commands/post/block/replace.md b/commands/post/block/replace.md index c360ba438..aa0598fdd 100644 --- a/commands/post/block/replace.md +++ b/commands/post/block/replace.md @@ -2,7 +2,7 @@ Replaces blocks in a post. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Replaces blocks of one type with blocks of another type. Can also be used to update block attributes without changing the block type. diff --git a/commands/post/block/update.md b/commands/post/block/update.md index 8c4f24c9a..e1c4cbdfe 100644 --- a/commands/post/block/update.md +++ b/commands/post/block/update.md @@ -2,7 +2,7 @@ Updates a block's attributes or content by index. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Modifies a specific block without changing its type. For blocks where attributes are reflected in HTML (like heading levels), the HTML is automatically updated to match the new attributes. diff --git a/commands/post/has-block.md b/commands/post/has-block.md index 3a281a049..5b3c55bbe 100644 --- a/commands/post/has-block.md +++ b/commands/post/has-block.md @@ -2,7 +2,7 @@ Checks if a post contains a specific block type. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Exits with return code 0 if the post contains the specified block, or return code 1 if it does not. diff --git a/commands/post/has-blocks.md b/commands/post/has-blocks.md index f18078546..4571a4d2c 100644 --- a/commands/post/has-blocks.md +++ b/commands/post/has-blocks.md @@ -2,7 +2,7 @@ Checks if a post contains any blocks. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Exits with return code 0 if the post contains blocks, or return code 1 if it does not. diff --git a/commands/post/revision.md b/commands/post/revision.md index cf66aa713..0caea2851 100644 --- a/commands/post/revision.md +++ b/commands/post/revision.md @@ -2,7 +2,7 @@ Manages post revisions. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### EXAMPLES diff --git a/commands/post/revision/diff.md b/commands/post/revision/diff.md index 5f7d5711e..4b4cf7965 100644 --- a/commands/post/revision/diff.md +++ b/commands/post/revision/diff.md @@ -2,7 +2,7 @@ Shows the difference between two revisions. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/post/revision/prune.md b/commands/post/revision/prune.md index 4511b2573..031324b0f 100644 --- a/commands/post/revision/prune.md +++ b/commands/post/revision/prune.md @@ -2,7 +2,7 @@ Deletes old post revisions. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/post/revision/restore.md b/commands/post/revision/restore.md index 2cbc083a1..ceb681666 100644 --- a/commands/post/revision/restore.md +++ b/commands/post/revision/restore.md @@ -2,7 +2,7 @@ Restores a post revision. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/profile/hook.md b/commands/profile/hook.md index 2109edea4..f429c63e8 100644 --- a/commands/profile/hook.md +++ b/commands/profile/hook.md @@ -51,6 +51,9 @@ options: [\--search=<pattern>] : Filter callbacks to those matching the given search pattern (case-insensitive). +[\--plugin] +: Group callback metrics by plugin. Must-use plugins are listed with a `mu-plugins/` prefix. Callbacks that don't belong to a plugin or must-use plugin are left out. Requires --all or a specific hook. + ### EXAMPLES # Profile a hook. diff --git a/commands/profile/requests.md b/commands/profile/requests.md new file mode 100644 index 000000000..6935833d4 --- /dev/null +++ b/commands/profile/requests.md @@ -0,0 +1,81 @@ +# wp profile requests + +Profile HTTP requests made during the WordPress load process. + +This command runs on the `before_wp_load` hook, just before the WP load process begins. + +Lists every HTTP request made through the WordPress HTTP API while loading a page, with its method, URL, response code and the time it took. Requests short-circuited through the `pre_http_request` filter are listed with a time of 0s. + +### OPTIONS + +See the [argument syntax](https://make.wordpress.org/cli/handbook/references/argument-syntax/) reference for a detailed explanation of the syntax conventions used. + +[\--url=<url>] +: Execute a request against a specified URL. Defaults to the home URL. + +[\--fields=<fields>] +: Limit the output to specific fields. Default is all fields. + +[\--format=<format>] +: Render output in a particular format. +\--- +default: table +options: + - table + - json + - yaml + - csv +\--- + +[\--order=<order>] +: Ascending or Descending order. +\--- +default: ASC +options: + - ASC + - DESC +\--- + +[\--orderby=<fields>] +: Set orderby which field. + +### EXAMPLES + + # List all HTTP requests made while loading the home page. + $ wp profile requests + +-----------+------------------------------+--------+---------+ + | method | url | status | time | + +-----------+------------------------------+--------+---------+ + | GET | https://api.example.com/ | 200 | 0.2341s | + | POST | https://api.example.com/save | 201 | 0.1653s | + +-----------+------------------------------+--------+---------+ + | total (2) | | | 0.3994s | + +-----------+------------------------------+--------+---------+ + + # Show the slowest requests first. + $ wp profile requests --orderby=time --order=DESC + +### GLOBAL PARAMETERS + +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. + +| **Argument** | **Description** | +|:----------------|:-----------------------------| +| `--path=` | Path to the WordPress files. | +| `--url=` | Pretend request came from given URL. In multisite, this argument is how the target site is specified. | +| `--ssh=[:][@][:][]` | Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "docker-compose-run", "vagrant"). | +| `--ssh-args=` | Pass additional arguments to SSH (or other tools specified by --ssh scheme). | +| `--http=` | Perform operation against a remote WordPress installation over HTTP. | +| `--user=` | Set the WordPress user. | +| `--skip-plugins[=]` | Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded. | +| `--skip-themes[=]` | Skip loading all themes, or a comma-separated list of themes. | +| `--skip-packages` | Skip loading all installed packages. | +| `--require=` | Load PHP file before running the command (may be used more than once). | +| `--exec=` | Execute PHP code before running the command (may be used more than once). | +| `--context=` | Load WordPress in a given context. | +| `--[no-]color` | Whether to colorize the output. | +| `--debug[=]` | Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help. | +| `--prompt[=]` | Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values. | +| `--quiet` | Suppress informational messages. | +| `--alias=` | Name of the alias to use. Aliases can reference local WordPress installations or remote SSH connections. Aliases are defined in the wp-cli.yml file. | +| `--assume-https` | Set $_SERVER['HTTPS'] to make WordPress treat the site as HTTPS. Use when WordPress is behind an HTTPS proxy or load balancer. | diff --git a/commands/search-replace.md b/commands/search-replace.md index 6be6314ac..8fca2b105 100644 --- a/commands/search-replace.md +++ b/commands/search-replace.md @@ -2,7 +2,7 @@ Searches/replaces strings in the database. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--old`, `--new`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--old` (3.0.0), `--new` (3.0.0). Searches through all rows in a selection of tables and replaces appearances of the first string with the second string. @@ -10,6 +10,8 @@ By default, the command uses tables registered to the `$wpdb` object. On multisi Search/replace intelligently handles PHP serialized data, and does not change primary key values. +The JSON-encoded form of the search string is replaced as well, so a search for `https://example.com` also matches `https:\/\/example.com` in JSON stored in the database. This does not apply with `--regex`, where the pattern itself has to account for escaped slashes. + Tables without a primary key are skipped. To check whether a table has a primary key, run `wp db query 'DESCRIBE '` and look for 'PRI' in the Key column. ### OPTIONS diff --git a/commands/server.md b/commands/server.md index 0a7401e26..7f0b78940 100644 --- a/commands/server.md +++ b/commands/server.md @@ -4,7 +4,7 @@ Launches PHP's built-in web server for a specific WordPress installation. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--adapt-scheme`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--adapt-scheme` (3.0.0). Uses `php -S` to launch a web server serving the WordPress webroot. <http://php.net/manual/en/features.commandline.webserver.php> diff --git a/commands/shell.md b/commands/shell.md index 63a295a63..fec0a62ab 100644 --- a/commands/shell.md +++ b/commands/shell.md @@ -2,7 +2,7 @@ Opens an interactive PHP console for running and testing PHP code. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--watch`, `--hook`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--watch` (3.0.0), `--hook` (3.0.0). `wp shell` allows you to evaluate PHP statements and expressions interactively, from within a WordPress environment. Type a bit of code, hit enter, and see the code execute right before you. Because WordPress is loaded, you have access to all the functions, classes and globals that you can use within a WordPress plugin, for example. diff --git a/commands/sidebar/exists.md b/commands/sidebar/exists.md index 6e2dbb484..9800f0065 100644 --- a/commands/sidebar/exists.md +++ b/commands/sidebar/exists.md @@ -2,7 +2,7 @@ Check if a sidebar exists. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/sidebar/get.md b/commands/sidebar/get.md index 498dc94c9..dd5e59091 100644 --- a/commands/sidebar/get.md +++ b/commands/sidebar/get.md @@ -2,7 +2,7 @@ Get details about a specific sidebar. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/sidebar/list.md b/commands/sidebar/list.md index b65a2f998..21a112ffc 100644 --- a/commands/sidebar/list.md +++ b/commands/sidebar/list.md @@ -2,7 +2,7 @@ Lists registered sidebars. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--inactive`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--inactive` (3.0.0). ### OPTIONS diff --git a/commands/site-health.md b/commands/site-health.md index 34a4d5bf4..e4f61a1c4 100644 --- a/commands/site-health.md +++ b/commands/site-health.md @@ -2,7 +2,7 @@ Manage Site Health -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. diff --git a/commands/site-health/check.md b/commands/site-health/check.md index 18be1a620..080f6918c 100644 --- a/commands/site-health/check.md +++ b/commands/site-health/check.md @@ -2,7 +2,7 @@ Run site health checks. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/site-health/info.md b/commands/site-health/info.md index 2fa18ab46..03902160e 100644 --- a/commands/site-health/info.md +++ b/commands/site-health/info.md @@ -2,7 +2,7 @@ Displays site health info. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/site-health/list-info-sections.md b/commands/site-health/list-info-sections.md index 563fc50c1..5a9c5d61f 100644 --- a/commands/site-health/list-info-sections.md +++ b/commands/site-health/list-info-sections.md @@ -2,7 +2,7 @@ List site health info sections. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/site-health/status.md b/commands/site-health/status.md index 2a800c67b..8157a2584 100644 --- a/commands/site-health/status.md +++ b/commands/site-health/status.md @@ -2,7 +2,7 @@ Check site health status. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### EXAMPLES diff --git a/commands/site/create.md b/commands/site/create.md index 63e9599f2..f7d63e9e5 100644 --- a/commands/site/create.md +++ b/commands/site/create.md @@ -2,7 +2,7 @@ Creates a site in a multisite installation. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--site-url`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--site-url` (3.0.0). ### OPTIONS diff --git a/commands/site/delete.md b/commands/site/delete.md index 705eb09e1..3e4ef2d31 100644 --- a/commands/site/delete.md +++ b/commands/site/delete.md @@ -2,7 +2,7 @@ Deletes a site in a multisite installation. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--delete-tables-with-prefix`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--delete-tables-with-prefix` (3.0.0). ### OPTIONS diff --git a/commands/site/get.md b/commands/site/get.md index d6a97a01d..812ce8b25 100644 --- a/commands/site/get.md +++ b/commands/site/get.md @@ -2,7 +2,7 @@ Gets details about a site in a multisite installation. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/term/prune.md b/commands/term/prune.md index 33cf418fa..03490b867 100644 --- a/commands/term/prune.md +++ b/commands/term/prune.md @@ -2,7 +2,7 @@ Removes terms with 0 or 1 published posts from one or more taxonomies. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Useful for cleaning up large sites with many unused or barely-used terms. The term count is based on the number of published posts assigned to each term. diff --git a/commands/theme/check-update.md b/commands/theme/check-update.md index f3df306c2..0e2c541c0 100644 --- a/commands/theme/check-update.md +++ b/commands/theme/check-update.md @@ -2,7 +2,7 @@ Checks for theme updates without performing them. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Lists the available theme updates. Similar to `wp core check-update`. diff --git a/commands/theme/download.md b/commands/theme/download.md index 00b5b3723..707f8d558 100644 --- a/commands/theme/download.md +++ b/commands/theme/download.md @@ -4,7 +4,7 @@ Downloads a theme zip package without loading WordPress. This command runs on the `before_wp_load` hook, just before the WP load process begins. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/theme/install.md b/commands/theme/install.md index 08733a4a5..8ecf9bbf5 100644 --- a/commands/theme/install.md +++ b/commands/theme/install.md @@ -2,9 +2,7 @@ Installs one or more themes. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--slug`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--ignore-requirements` (2.12.0), `--insecure` (2.5.0). +Options added later: `--ignore-requirements` (2.12.0), `--insecure` (2.5.0), `--slug` (3.0.0). ### OPTIONS diff --git a/commands/theme/update.md b/commands/theme/update.md index 4d4b919a5..577585de2 100644 --- a/commands/theme/update.md +++ b/commands/theme/update.md @@ -4,9 +4,7 @@ Updates one or more themes. **Alias:** `upgrade` -> **Note:** The following options are not part of a stable WP-CLI release yet: `--auto-update-indicated`, `--include-vcs`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--minor` (2.10.0), `--patch` (2.10.0), `--insecure` (2.5.0). +Options added later: `--minor` (2.10.0), `--patch` (2.10.0), `--insecure` (2.5.0), `--auto-update-indicated` (3.0.0), `--include-vcs` (3.0.0). ### OPTIONS diff --git a/commands/theme/upgrade.md b/commands/theme/upgrade.md index 4ae72f55c..e27f216e5 100644 --- a/commands/theme/upgrade.md +++ b/commands/theme/upgrade.md @@ -4,9 +4,7 @@ Updates one or more themes. This is an alias for `wp theme update`. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--auto-update-indicated`, `--include-vcs`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. - -Options added later: `--minor` (2.10.0), `--patch` (2.10.0), `--insecure` (2.5.0). +Options added later: `--minor` (2.10.0), `--patch` (2.10.0), `--insecure` (2.5.0), `--auto-update-indicated` (3.0.0), `--include-vcs` (3.0.0). ### OPTIONS diff --git a/commands/transient/delete.md b/commands/transient/delete.md index 8eb17c4f3..bd8bae4b3 100644 --- a/commands/transient/delete.md +++ b/commands/transient/delete.md @@ -12,7 +12,7 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg : Key for the transient. [\--network] -: Delete the value of a network|site transient. On single site, this is is a specially-named cache key. On multisite, this is a global cache (instead of local to the site). +: Delete the value of a network|site transient. On single site, this is a specially-named cache key. On multisite, this is a global cache (instead of local to the site). [\--all] : Delete all transients. diff --git a/commands/transient/get.md b/commands/transient/get.md index 06320da81..63bf72bfd 100644 --- a/commands/transient/get.md +++ b/commands/transient/get.md @@ -23,7 +23,7 @@ options: \--- [\--network] -: Get the value of a network|site transient. On single site, this is is a specially-named cache key. On multisite, this is a global cache (instead of local to the site). +: Get the value of a network|site transient. On single site, this is a specially-named cache key. On multisite, this is a global cache (instead of local to the site). ### EXAMPLES diff --git a/commands/transient/set.md b/commands/transient/set.md index 45fc35e03..ee4b0d15d 100644 --- a/commands/transient/set.md +++ b/commands/transient/set.md @@ -20,7 +20,7 @@ See the [argument syntax](https://make.wordpress.org/cli/handbook/references/arg : Time until expiration, in seconds. [\--network] -: Set the value of a network|site transient. On single site, this is is a specially-named cache key. On multisite, this is a global cache (instead of local to the site). +: Set the value of a network|site transient. On single site, this is a specially-named cache key. On multisite, this is a global cache (instead of local to the site). ### EXAMPLES diff --git a/commands/user/create.md b/commands/user/create.md index e02c3cd2c..6358de375 100644 --- a/commands/user/create.md +++ b/commands/user/create.md @@ -2,7 +2,7 @@ Creates a new user. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--syntax_highlighting`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--syntax_highlighting` (3.0.0). ### OPTIONS diff --git a/commands/user/privacy-request.md b/commands/user/privacy-request.md index 5f8a37540..e8731363a 100644 --- a/commands/user/privacy-request.md +++ b/commands/user/privacy-request.md @@ -2,7 +2,7 @@ Manages user privacy requests (GDPR personal data export and erasure). -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### EXAMPLES diff --git a/commands/user/privacy-request/complete.md b/commands/user/privacy-request/complete.md index b6a12f65e..0d0cccd74 100644 --- a/commands/user/privacy-request/complete.md +++ b/commands/user/privacy-request/complete.md @@ -2,7 +2,7 @@ Marks one or more privacy requests as completed. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/user/privacy-request/create.md b/commands/user/privacy-request/create.md index 1b2809956..6982d709e 100644 --- a/commands/user/privacy-request/create.md +++ b/commands/user/privacy-request/create.md @@ -2,7 +2,7 @@ Creates a privacy request for a user. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/user/privacy-request/delete.md b/commands/user/privacy-request/delete.md index bae4eee0c..7b1f1e763 100644 --- a/commands/user/privacy-request/delete.md +++ b/commands/user/privacy-request/delete.md @@ -2,7 +2,7 @@ Deletes one or more privacy requests. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/user/privacy-request/erase.md b/commands/user/privacy-request/erase.md index f86ef08ba..eb73bb9cd 100644 --- a/commands/user/privacy-request/erase.md +++ b/commands/user/privacy-request/erase.md @@ -2,7 +2,7 @@ Erases personal data for a given privacy request. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Runs all registered data erasers for the email address associated with the request, then marks the request as completed. diff --git a/commands/user/privacy-request/export.md b/commands/user/privacy-request/export.md index 1730a9721..9c010cf7b 100644 --- a/commands/user/privacy-request/export.md +++ b/commands/user/privacy-request/export.md @@ -2,7 +2,7 @@ Exports personal data for a given privacy request. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. Runs all registered data exporters for the email address associated with the request, generates a ZIP file containing the data, then marks the request as completed. diff --git a/commands/user/privacy-request/list.md b/commands/user/privacy-request/list.md index 1070705c8..7d5f3fd51 100644 --- a/commands/user/privacy-request/list.md +++ b/commands/user/privacy-request/list.md @@ -2,7 +2,7 @@ Lists privacy requests. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/widget/patch.md b/commands/widget/patch.md index 6daabbd24..61d0edab4 100644 --- a/commands/widget/patch.md +++ b/commands/widget/patch.md @@ -2,7 +2,7 @@ Updates a nested value in a widget's options. -> **Note:** This command is not part of a stable WP-CLI release yet. To use it now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Available since WP-CLI 3.0.0. ### OPTIONS diff --git a/commands/widget/reset.md b/commands/widget/reset.md index c2b99f4c4..acc5bd514 100644 --- a/commands/widget/reset.md +++ b/commands/widget/reset.md @@ -2,7 +2,7 @@ Resets sidebar. -> **Note:** The following options are not part of a stable WP-CLI release yet: `--inactive`. To use them now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli) with `wp cli update --nightly`. If you installed the command as a separate package, updating that package may be enough. +Options added later: `--inactive` (3.0.0). Removes all widgets from the sidebar and places them in Inactive Widgets. diff --git a/references/behat-steps.md b/references/behat-steps.md index 1ae114d9d..739a06ae4 100644 --- a/references/behat-steps.md +++ b/references/behat-steps.md @@ -49,10 +49,16 @@ WP-CLI makes use of a Behat-based testing framework and provides a set of custom
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -61,7 +67,7 @@ WP-CLI makes use of a Behat-based testing framework and provides a set of custom
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -70,7 +76,7 @@ WP-CLI makes use of a Behat-based testing framework and provides a set of custom
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • @@ -155,10 +161,10 @@ WP-CLI makes use of a Behat-based testing framework and provides a set of custom
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/given-a-custom-wp-content-directory.md b/references/behat-steps/given-a-custom-wp-content-directory.md index 3e2a78ad9..8e41ccf36 100644 --- a/references/behat-steps/given-a-custom-wp-content-directory.md +++ b/references/behat-steps/given-a-custom-wp-content-directory.md @@ -66,16 +66,22 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -84,7 +90,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-database.md b/references/behat-steps/given-a-database.md index b2c3a3a6e..c24ede928 100644 --- a/references/behat-steps/given-a-database.md +++ b/references/behat-steps/given-a-database.md @@ -63,10 +63,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -75,7 +81,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -84,7 +90,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-dependency-on-current-wp-cli.md b/references/behat-steps/given-a-dependency-on-current-wp-cli.md index 18fbd559a..443bba000 100644 --- a/references/behat-steps/given-a-dependency-on-current-wp-cli.md +++ b/references/behat-steps/given-a-dependency-on-current-wp-cli.md @@ -64,10 +64,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -76,7 +82,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -85,7 +91,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-downloaded-phar-with-the-same-version-version.md b/references/behat-steps/given-a-downloaded-phar-with-the-same-version-version.md index 09b8b77ff..f5d7e2fb6 100644 --- a/references/behat-steps/given-a-downloaded-phar-with-the-same-version-version.md +++ b/references/behat-steps/given-a-downloaded-phar-with-the-same-version-version.md @@ -68,10 +68,16 @@ Scenario: My other scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -80,13 +86,13 @@ Scenario: My other scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-misconfigured-wp-content-dir-constant-directory.md b/references/behat-steps/given-a-misconfigured-wp-content-dir-constant-directory.md index 0fe18d154..4925aac9d 100644 --- a/references/behat-steps/given-a-misconfigured-wp-content-dir-constant-directory.md +++ b/references/behat-steps/given-a-misconfigured-wp-content-dir-constant-directory.md @@ -64,10 +64,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -76,7 +82,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -85,7 +91,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a dependency on current wp-cli - Add `wp-cli/wp-cli` as a Composer dependency.
  • diff --git a/references/behat-steps/given-a-new-phar-with-the-same-version-version.md b/references/behat-steps/given-a-new-phar-with-the-same-version-version.md index 80d990be2..50ba0d842 100644 --- a/references/behat-steps/given-a-new-phar-with-the-same-version-version.md +++ b/references/behat-steps/given-a-new-phar-with-the-same-version-version.md @@ -64,10 +64,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -76,13 +82,13 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-php-built-in-web-server-to-serve-subdir.md b/references/behat-steps/given-a-php-built-in-web-server-to-serve-subdir.md index 81a89d31b..69d41cde9 100644 --- a/references/behat-steps/given-a-php-built-in-web-server-to-serve-subdir.md +++ b/references/behat-steps/given-a-php-built-in-web-server-to-serve-subdir.md @@ -64,10 +64,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -76,7 +82,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -85,7 +91,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-php-built-in-web-server.md b/references/behat-steps/given-a-php-built-in-web-server.md index 723d1c3bb..d355ea483 100644 --- a/references/behat-steps/given-a-php-built-in-web-server.md +++ b/references/behat-steps/given-a-php-built-in-web-server.md @@ -64,10 +64,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -76,7 +82,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -85,7 +91,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-wp-installation-in.md b/references/behat-steps/given-a-wp-installation-in.md index b1738404a..9f3310e84 100644 --- a/references/behat-steps/given-a-wp-installation-in.md +++ b/references/behat-steps/given-a-wp-installation-in.md @@ -69,10 +69,16 @@ Scenario: My version-specific scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -81,7 +87,7 @@ Scenario: My version-specific scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -90,7 +96,7 @@ Scenario: My version-specific scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-wp-installation-with-composer-and-a-custom-vendor-directory-vendor-directory.md b/references/behat-steps/given-a-wp-installation-with-composer-and-a-custom-vendor-directory-vendor-directory.md index c3a839329..7c55c9b03 100644 --- a/references/behat-steps/given-a-wp-installation-with-composer-and-a-custom-vendor-directory-vendor-directory.md +++ b/references/behat-steps/given-a-wp-installation-with-composer-and-a-custom-vendor-directory-vendor-directory.md @@ -65,10 +65,16 @@ Scenario: My other scenario
  • Given a WP install(ation) with Composer - Installs WordPress with Composer.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -77,7 +83,7 @@ Scenario: My other scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -86,7 +92,7 @@ Scenario: My other scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-wp-installation-with-composer.md b/references/behat-steps/given-a-wp-installation-with-composer.md index 93fe5399a..410f2657f 100644 --- a/references/behat-steps/given-a-wp-installation-with-composer.md +++ b/references/behat-steps/given-a-wp-installation-with-composer.md @@ -65,10 +65,16 @@ Scenario: My other scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -77,7 +83,7 @@ Scenario: My other scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -86,7 +92,7 @@ Scenario: My other scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-wp-installation.md b/references/behat-steps/given-a-wp-installation.md index 1c27d930b..e2c39112d 100644 --- a/references/behat-steps/given-a-wp-installation.md +++ b/references/behat-steps/given-a-wp-installation.md @@ -69,10 +69,16 @@ Scenario: My version-specific scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -81,7 +87,7 @@ Scenario: My version-specific scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -90,7 +96,7 @@ Scenario: My version-specific scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-a-wp-multisite-subdirectory-subdomaininstall-installation.md b/references/behat-steps/given-a-wp-multisite-subdirectory-subdomaininstall-installation.md index 1ef3c4cd3..b65000ed9 100644 --- a/references/behat-steps/given-a-wp-multisite-subdirectory-subdomaininstall-installation.md +++ b/references/behat-steps/given-a-wp-multisite-subdirectory-subdomaininstall-installation.md @@ -1,4 +1,4 @@ -# Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ +# Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ Installs WordPress Multisite. @@ -70,7 +70,13 @@ Scenario: My other scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -79,7 +85,7 @@ Scenario: My other scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -88,7 +94,7 @@ Scenario: My other scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-an-empty-cache.md b/references/behat-steps/given-an-empty-cache.md index 528de4cd9..4af4d5d9d 100644 --- a/references/behat-steps/given-an-empty-cache.md +++ b/references/behat-steps/given-an-empty-cache.md @@ -61,10 +61,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -73,7 +79,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -82,7 +88,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-an-empty-directory.md b/references/behat-steps/given-an-empty-directory.md index 525d7a388..e3b9dc389 100644 --- a/references/behat-steps/given-an-empty-directory.md +++ b/references/behat-steps/given-an-empty-directory.md @@ -61,10 +61,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -73,7 +79,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -82,7 +88,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-an-empty-non-existent-directory.md b/references/behat-steps/given-an-empty-non-existent-directory.md index 77062cb0a..f6321ac48 100644 --- a/references/behat-steps/given-an-empty-non-existent-directory.md +++ b/references/behat-steps/given-an-empty-non-existent-directory.md @@ -62,10 +62,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -74,7 +80,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -83,7 +89,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-an-file-cache-file.md b/references/behat-steps/given-an-file-cache-file.md index 5ca0b7b59..b2dbdff9b 100644 --- a/references/behat-steps/given-an-file-cache-file.md +++ b/references/behat-steps/given-an-file-cache-file.md @@ -68,10 +68,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -80,7 +86,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -89,7 +95,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-download.md b/references/behat-steps/given-download.md index 3b14100fc..4223ac54c 100644 --- a/references/behat-steps/given-download.md +++ b/references/behat-steps/given-download.md @@ -66,16 +66,22 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -84,7 +90,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-these-installed-and-active-plugins.md b/references/behat-steps/given-only-these-installed-themes-and-active-themes.md similarity index 80% rename from references/behat-steps/given-these-installed-and-active-plugins.md rename to references/behat-steps/given-only-these-installed-themes-and-active-themes.md index d3e15e949..32e1620fb 100644 --- a/references/behat-steps/given-these-installed-and-active-plugins.md +++ b/references/behat-steps/given-only-these-installed-themes-and-active-themes.md @@ -1,19 +1,22 @@ -# Given these installed and active plugins: +# Given /^only these installed (themes|and active themes):$/ -Installs and activates one or more plugins. +Removes all themes and installs, and optionally activates, the listed ones instead. *** ## Usage +Takes the same lines as `Given these installed themes:`. This replaces running +`wp theme delete --all --force` followed by one or more `wp theme install` commands. + ``` Scenario: My example scenario Given a WP installation - And these installed and active plugins: + And only these installed themes: """ - akismet - wordpress-importer + twentysixteen + twentyseventeen """ ``` @@ -68,7 +71,13 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -77,7 +86,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -86,7 +95,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-replaced-with-in-the-file.md b/references/behat-steps/given-replaced-with-in-the-file.md index eb1c3e083..b06631ae9 100644 --- a/references/behat-steps/given-replaced-with-in-the-file.md +++ b/references/behat-steps/given-replaced-with-in-the-file.md @@ -61,10 +61,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -73,7 +79,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -82,7 +88,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-save-stdout-stderr-as.md b/references/behat-steps/given-save-stdout-stderr-as.md index 6b46f4f78..eab6e623c 100644 --- a/references/behat-steps/given-save-stdout-stderr-as.md +++ b/references/behat-steps/given-save-stdout-stderr-as.md @@ -1,4 +1,4 @@ -# Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ +# Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ Store STDOUT or STDERR contents in a variable. @@ -68,10 +68,16 @@ Scenario: My other scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -86,7 +92,7 @@ Scenario: My other scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-save-the-file-as.md b/references/behat-steps/given-save-the-file-as.md index 1f8a48bc2..bfedf7308 100644 --- a/references/behat-steps/given-save-the-file-as.md +++ b/references/behat-steps/given-save-the-file-as.md @@ -1,4 +1,4 @@ -# Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ +# Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ Stores the contents of the given file in a variable. @@ -64,10 +64,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -76,7 +82,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • diff --git a/references/behat-steps/given-that-http-requests-to-will-respond-with.md b/references/behat-steps/given-that-http-requests-to-will-respond-with.md index ec97031f6..4e1371729 100644 --- a/references/behat-steps/given-that-http-requests-to-will-respond-with.md +++ b/references/behat-steps/given-that-http-requests-to-will-respond-with.md @@ -66,10 +66,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -78,7 +84,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -87,7 +93,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-these-installed-and-active-plugins-themes.md b/references/behat-steps/given-these-installed-and-active-plugins-themes.md new file mode 100644 index 000000000..358e9575a --- /dev/null +++ b/references/behat-steps/given-these-installed-and-active-plugins-themes.md @@ -0,0 +1,126 @@ +# Given /^these installed (and active )?(plugins|themes):$/ + +Installs and optionally activates one or more plugins or themes. + + +*** + +## Usage + +Plugins and themes from WordPress.org are downloaded once and copied from a local cache +afterwards. Each line holds a slug, optionally followed by `--version=` and `--force`. Other +lines, like a URL or a path to a ZIP file, are installed with `wp plugin install` or +`wp theme install` every time. + +``` +Scenario: My example scenario + Given a WP installation + And these installed and active plugins: + """ + akismet + wordpress-importer + """ + +Scenario: My other scenario + Given a WP installation + And these installed themes: + """ + twentysixteen + twentyseventeen --version=1.0 + """ +``` + + +*Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.* + + +*** + +## Related + + + + diff --git a/references/behat-steps/given-these-setup-commands.md b/references/behat-steps/given-these-setup-commands.md new file mode 100644 index 000000000..8f456e412 --- /dev/null +++ b/references/behat-steps/given-these-setup-commands.md @@ -0,0 +1,117 @@ +# Given these setup commands: + +Runs several setup commands in a single process. + + +*** + +## Usage + +Avoids loading WordPress once per command when a scenario needs several fixtures. The `command` +column holds the WP-CLI commands, which all have to succeed. The optional `save` column names a +variable to save the command's STDOUT into, which later commands in the same table can use. + +``` +Scenario: My example scenario + Given a WP installation + And these setup commands: + | command | save | + | wp post create --post_title="First post" --porcelain | POST_ID | + | wp post meta add {POST_ID} color blue | | + | wp term create category Fruit --porcelain | TERM_ID | +``` + + +*Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.* + + +*** + +## Related + + + + diff --git a/references/behat-steps/given-wp-config-php.md b/references/behat-steps/given-wp-config-php.md index 25c48c48c..c7e7b1428 100644 --- a/references/behat-steps/given-wp-config-php.md +++ b/references/behat-steps/given-wp-config-php.md @@ -62,10 +62,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -74,7 +80,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -83,7 +89,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/given-wp-files.md b/references/behat-steps/given-wp-files.md index d459e52af..247d9c454 100644 --- a/references/behat-steps/given-wp-files.md +++ b/references/behat-steps/given-wp-files.md @@ -61,10 +61,16 @@ Scenario: My example scenario
  • Given a WP install(ation) with Composer and a custom vendor directory :vendor_directory - Installs WordPress with Composer and a custom vendor directory.
  • -
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/ - Installs WordPress Multisite.
  • +
  • Given /^a WP multisite (subdirectory|subdomain)?\s?(?:install|installation)$/ - Installs WordPress Multisite.
  • -
  • Given these installed and active plugins: - Installs and activates one or more plugins.
  • +
  • Given /^only these installed (themes|and active themes):$/ - Removes all themes and installs, and optionally activates, the listed ones instead.
  • + + +
  • Given /^these installed (and active )?(plugins|themes):$/ - Installs and optionally activates one or more plugins or themes.
  • + + +
  • Given these setup commands: - Runs several setup commands in a single process.
  • Given a custom wp-content directory - Configure a custom `wp-content` directory.
  • @@ -73,7 +79,7 @@ Scenario: My example scenario
  • Given download: - Download multiple files into the given destinations.
  • -
  • Given /^save (STDOUT|STDERR) ([\'].+[^\'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • +
  • Given /^save (STDOUT|STDERR) (['].+[^'])?\s?as \{(\w+)\}$/ - Store STDOUT or STDERR contents in a variable.
  • Given /^a new Phar with (?:the same version|version "([^"]+)")$/ - Build a new WP-CLI Phar file with a given version.
  • @@ -82,7 +88,7 @@ Scenario: My example scenario
  • Given /^a downloaded Phar with (?:the same version|version "([^"]+)")$/ - Download a specific WP-CLI Phar version from GitHub.
  • -
  • Given /^save the (.+) file ([\'].+[^\'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • +
  • Given /^save the (.+) file (['].+[^'])?as \{(\w+)\}$/ - Stores the contents of the given file in a variable.
  • Given a misconfigured WP_CONTENT_DIR constant directory - Modify wp-config.php to set `WP_CONTENT_DIR` to an empty string.
  • diff --git a/references/behat-steps/then-an-email-should-be-sent-not-be-sent.md b/references/behat-steps/then-an-email-should-be-sent-not-be-sent.md index f2b851054..c2f7d23f4 100644 --- a/references/behat-steps/then-an-email-should-be-sent-not-be-sent.md +++ b/references/behat-steps/then-an-email-should-be-sent-not-be-sent.md @@ -67,10 +67,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then the HTTP status code should be :code - Expect the HTTP status code for visiting `http://localhost:8080`.
  • diff --git a/references/behat-steps/then-stdout-should-be-a-json-array-containing.md b/references/behat-steps/then-stdout-should-be-a-json-array-containing.md index fdfaaf0d7..5dfbef069 100644 --- a/references/behat-steps/then-stdout-should-be-a-json-array-containing.md +++ b/references/behat-steps/then-stdout-should-be-a-json-array-containing.md @@ -69,10 +69,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-should-be-a-table-containing-rows.md b/references/behat-steps/then-stdout-should-be-a-table-containing-rows.md index 7eb427f25..024a7214b 100644 --- a/references/behat-steps/then-stdout-should-be-a-table-containing-rows.md +++ b/references/behat-steps/then-stdout-should-be-a-table-containing-rows.md @@ -68,10 +68,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-should-be-csv-containing.md b/references/behat-steps/then-stdout-should-be-csv-containing.md index bbc1a4b98..5c69876c5 100644 --- a/references/behat-steps/then-stdout-should-be-csv-containing.md +++ b/references/behat-steps/then-stdout-should-be-csv-containing.md @@ -66,10 +66,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-should-be-json-containing.md b/references/behat-steps/then-stdout-should-be-json-containing.md index 793ffe0bc..4f5a09732 100644 --- a/references/behat-steps/then-stdout-should-be-json-containing.md +++ b/references/behat-steps/then-stdout-should-be-json-containing.md @@ -69,10 +69,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-should-be-yaml-containing.md b/references/behat-steps/then-stdout-should-be-yaml-containing.md index 5a2fd49c9..af4f851cc 100644 --- a/references/behat-steps/then-stdout-should-be-yaml-containing.md +++ b/references/behat-steps/then-stdout-should-be-yaml-containing.md @@ -69,10 +69,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-should-end-with-a-table-containing-rows.md b/references/behat-steps/then-stdout-should-end-with-a-table-containing-rows.md index de716025d..f3fce9614 100644 --- a/references/behat-steps/then-stdout-should-end-with-a-table-containing-rows.md +++ b/references/behat-steps/then-stdout-should-end-with-a-table-containing-rows.md @@ -75,10 +75,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-stderr-should-be-a-number.md b/references/behat-steps/then-stdout-stderr-should-be-a-number.md index b091d88cc..bd5f29876 100644 --- a/references/behat-steps/then-stdout-stderr-should-be-a-number.md +++ b/references/behat-steps/then-stdout-stderr-should-be-a-number.md @@ -65,10 +65,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-stderr-should-be-a-version-string-w.md b/references/behat-steps/then-stdout-stderr-should-be-a-version-string-w.md index bc4236dc9..1e19350cd 100644 --- a/references/behat-steps/then-stdout-stderr-should-be-a-version-string-w.md +++ b/references/behat-steps/then-stdout-stderr-should-be-a-version-string-w.md @@ -65,10 +65,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-stderr-should-be-empty.md b/references/behat-steps/then-stdout-stderr-should-be-empty.md index 01b9b57f3..5a52713e6 100644 --- a/references/behat-steps/then-stdout-stderr-should-be-empty.md +++ b/references/behat-steps/then-stdout-stderr-should-be-empty.md @@ -65,10 +65,10 @@ Scenario: My other scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-stderr-should-not-be-a-number.md b/references/behat-steps/then-stdout-stderr-should-not-be-a-number.md index ff55a876c..9c9a27e80 100644 --- a/references/behat-steps/then-stdout-stderr-should-not-be-a-number.md +++ b/references/behat-steps/then-stdout-stderr-should-not-be-a-number.md @@ -65,10 +65,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-stderr-should-not-be-empty.md b/references/behat-steps/then-stdout-stderr-should-not-be-empty.md index 73938bfe4..2663fbd37 100644 --- a/references/behat-steps/then-stdout-stderr-should-not-be-empty.md +++ b/references/behat-steps/then-stdout-stderr-should-not-be-empty.md @@ -64,10 +64,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-stderr-should-not-match.md b/references/behat-steps/then-stdout-stderr-should-not-match.md index f426ba9b4..18c45f31d 100644 --- a/references/behat-steps/then-stdout-stderr-should-not-match.md +++ b/references/behat-steps/then-stdout-stderr-should-not-match.md @@ -1,4 +1,4 @@ -# Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ +# Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ Match STDOUT or STDERR against a regex. @@ -67,7 +67,7 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-stdout-stderr-should-strictly-be-contain-not-contain.md b/references/behat-steps/then-stdout-stderr-should-strictly-be-contain-not-contain.md index 8a604b9be..112b441ff 100644 --- a/references/behat-steps/then-stdout-stderr-should-strictly-be-contain-not-contain.md +++ b/references/behat-steps/then-stdout-stderr-should-strictly-be-contain-not-contain.md @@ -74,10 +74,10 @@ Scenario: My other scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-the-contents-of-the-file-should-not-match.md b/references/behat-steps/then-the-contents-of-the-file-should-not-match.md index 0b1cf7537..d8d5c841b 100644 --- a/references/behat-steps/then-the-contents-of-the-file-should-not-match.md +++ b/references/behat-steps/then-the-contents-of-the-file-should-not-match.md @@ -1,4 +1,4 @@ -# Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ +# Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ Match file contents against a regex. @@ -67,7 +67,7 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-the-file-directory-should-strictly-exist-not-exist-be-contain-not-contain.md b/references/behat-steps/then-the-file-directory-should-strictly-exist-not-exist-be-contain-not-contain.md index ce586a56b..814bfee73 100644 --- a/references/behat-steps/then-the-file-directory-should-strictly-exist-not-exist-be-contain-not-contain.md +++ b/references/behat-steps/then-the-file-directory-should-strictly-exist-not-exist-be-contain-not-contain.md @@ -74,10 +74,10 @@ Scenario: My example scenario
  • Then /^(STDOUT|STDERR) should be a version string (<|<=|>|>=|==|=|!=|<>) ([+\w.{}-]+)$/ - Expect STDOUT or STDERR to be a version string comparing to the given version.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-the-http-status-code-should-be-code.md b/references/behat-steps/then-the-http-status-code-should-be-code.md index 6f1d4220f..c42bec136 100644 --- a/references/behat-steps/then-the-http-status-code-should-be-code.md +++ b/references/behat-steps/then-the-http-status-code-should-be-code.md @@ -68,10 +68,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/behat-steps/then-the-return-code-should-not-be.md b/references/behat-steps/then-the-return-code-should-not-be.md index a494445a5..db5a2e972 100644 --- a/references/behat-steps/then-the-return-code-should-not-be.md +++ b/references/behat-steps/then-the-return-code-should-not-be.md @@ -65,10 +65,10 @@ Scenario: My example scenario
  • Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/ - Expect a certain file or directory to (not) exist or (not) contain certain contents.
  • -
  • Then /^the contents of the (.+) file should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match file contents against a regex.
  • +
  • Then /^the contents of the (.+) file should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match file contents against a regex.
  • -
  • Then /^(STDOUT|STDERR) should( not)? match (((\/.+\/)|(#.+#))([a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • +
  • Then /^(STDOUT|STDERR) should( not)? match ((?:\/.+\/|#.+#)(?:[a-z]+)?)$/ - Match STDOUT or STDERR against a regex.
  • Then /^an email should (be sent|not be sent)$/ - Expect an email to be sent (or not).
  • diff --git a/references/internal-api.md b/references/internal-api.md index 6c7dd4c5d..0c3eb1df2 100644 --- a/references/internal-api.md +++ b/references/internal-api.md @@ -178,6 +178,9 @@ This also means functions and methods not listed here are considered part of the
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.
  • diff --git a/references/internal-api/wp-cli-add-hook.md b/references/internal-api/wp-cli-add-hook.md index 1223dc96b..f2f0a6120 100644 --- a/references/internal-api/wp-cli-add-hook.md +++ b/references/internal-api/wp-cli-add-hook.md @@ -28,7 +28,7 @@ WP-CLI hooks include: * `after_add_command:` - After the command was added. * `before_invoke:` (1) - Just before a command is invoked. * `after_invoke:` (1) - Just after a command is invoked. -* `find_command_to_run_pre` - Just before WP-CLI finds the command to run. +* `find_command_to_run_pre` (1) - Just before WP-CLI finds the command to run. * `unregistered_command_hint` (2) - Filters the hint shown for a command that is not registered. * `before_registering_contexts` (1) - Before the contexts are registered. @@ -41,7 +41,9 @@ WP-CLI hooks include: The parentheses behind the hook name denote the number of arguments being passed into the hook. For such hooks, the callback should return -the first argument again, making them work like a WP filter. +the first argument again, making them work like a WP filter. The exception +is `find_command_to_run_pre`, which works like a WP action: every callback +receives the same arguments, and return values are ignored. WP-CLI commands can create their own hooks with `WP_CLI::do_hook()`. diff --git a/references/internal-api/wp-cli-utils-basename.md b/references/internal-api/wp-cli-utils-basename.md index bf8a6d88e..47ebef24e 100644 --- a/references/internal-api/wp-cli-utils-basename.md +++ b/references/internal-api/wp-cli-utils-basename.md @@ -41,6 +41,9 @@ Locale-independent version of basename()
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.
  • diff --git a/references/internal-api/wp-cli-utils-esc-like.md b/references/internal-api/wp-cli-utils-esc-like.md index a7df17779..a75d723f8 100644 --- a/references/internal-api/wp-cli-utils-esc-like.md +++ b/references/internal-api/wp-cli-utils-esc-like.md @@ -52,6 +52,9 @@ Copied from core "wp-includes/wp-db.php". Avoids dependency on WP 4.4 wpdb.
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.
  • diff --git a/references/internal-api/wp-cli-utils-get-named-sem-ver.md b/references/internal-api/wp-cli-utils-get-named-sem-ver.md index fb7053f48..3d87e4890 100644 --- a/references/internal-api/wp-cli-utils-get-named-sem-ver.md +++ b/references/internal-api/wp-cli-utils-get-named-sem-ver.md @@ -41,6 +41,9 @@ Compare two version strings to get the named semantic version.
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.
  • diff --git a/references/internal-api/wp-cli-utils-http-request.md b/references/internal-api/wp-cli-utils-http-request.md index 2bb92cb87..73b1b3f6c 100644 --- a/references/internal-api/wp-cli-utils-http-request.md +++ b/references/internal-api/wp-cli-utils-http-request.md @@ -65,6 +65,9 @@ if ( 20 != substr( $md5_response->status_code, 0, 2 ) ) {
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.
  • diff --git a/references/internal-api/wp-cli-utils-is-interactive.md b/references/internal-api/wp-cli-utils-is-interactive.md new file mode 100644 index 000000000..591515384 --- /dev/null +++ b/references/internal-api/wp-cli-utils-is-interactive.md @@ -0,0 +1,64 @@ +# WP_CLI\Utils\is_interactive() + +Check whether the current command is running interactively. + +*** + +## Usage + + WP_CLI\Utils\is_interactive() + +
    +@return (bool)
    +
    + + +*** + +## Notes + +Both input and output need to be attached to a terminal: without a +terminal on STDIN there is nobody to answer a prompt, and without one +on STDOUT the prompt itself would end up in a pipe or file instead of in +front of the user. + + +*Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.* + + +*** + +## Related + + + + diff --git a/references/internal-api/wp-cli-utils-ispiped.md b/references/internal-api/wp-cli-utils-ispiped.md index 5249cc6dd..85aeef31c 100644 --- a/references/internal-api/wp-cli-utils-ispiped.md +++ b/references/internal-api/wp-cli-utils-ispiped.md @@ -62,6 +62,9 @@ wp db query --table "SELECT 1" | cat
  • WP_CLI\Utils\basename() - Locale-independent version of basename()
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.
  • diff --git a/references/internal-api/wp-cli-utils-parse-ssh-url.md b/references/internal-api/wp-cli-utils-parse-ssh-url.md index 866da588d..074c271ab 100644 --- a/references/internal-api/wp-cli-utils-parse-ssh-url.md +++ b/references/internal-api/wp-cli-utils-parse-ssh-url.md @@ -52,6 +52,9 @@ host OR host/path/to/wordpress OR host:port/path/to/wordpress
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.
  • diff --git a/references/internal-api/wp-cli-utils-proc-open-compat.md b/references/internal-api/wp-cli-utils-proc-open-compat.md index a4492a6eb..11b2b67e8 100644 --- a/references/internal-api/wp-cli-utils-proc-open-compat.md +++ b/references/internal-api/wp-cli-utils-proc-open-compat.md @@ -49,6 +49,9 @@ Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\esc_like() - First half of escaping for LIKE special characters % and _ before preparing for MySQL.
  • diff --git a/references/internal-api/wp-cli-utils-write-csv.md b/references/internal-api/wp-cli-utils-write-csv.md index 8a71c9996..ba3a4ec6b 100644 --- a/references/internal-api/wp-cli-utils-write-csv.md +++ b/references/internal-api/wp-cli-utils-write-csv.md @@ -42,6 +42,9 @@ Write data as CSV to a given file.
  • WP_CLI\Utils\isPiped() - Checks whether the output of the current script is a TTY or a pipe / redirect
  • +
  • WP_CLI\Utils\is_interactive() - Check whether the current command is running interactively.
  • + +
  • WP_CLI\Utils\proc_open_compat() - Windows compatible `proc_open()`. Works around bug in PHP, and also deals with *nix-like `ENV_VAR=blah cmd` environment variable prefixes.