Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP-CLI parameters documentation #2711

Merged
merged 2 commits into from
Apr 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions includes/classes/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ public function list_features( $args, $assoc_args ) {
* [--network-wide]
* : Force mappings to be sent for every index in the network.
*
* [--indexables]
* [--indexables=<indexables>]
* : List of indexables
*
* [--ep-host]
* [--ep-host=<host>]
* : Custom Elasticsearch host
*
* [--ep-prefix]
* [--ep-prefix=<prefix>]
* : Custom ElasticPress prefix
*
* @subcommand put-mapping
Expand Down Expand Up @@ -388,6 +388,8 @@ public function get_mapping( $args, $assoc_args ) {
/**
* Return all indexes from the cluster as a JSON object.
*
* ## OPTIONS
*
* [--pretty]
* : Use this flag to render a pretty-printed version of the JSON response.
*
Expand All @@ -407,6 +409,8 @@ public function get_cluster_indexes( $args, $assoc_args ) {
/**
* Return all index names as a JSON object.
*
* ## OPTIONS
*
* [--pretty]
* : Use this flag to render a pretty-printed version of the JSON response.
*
Expand Down Expand Up @@ -456,7 +460,7 @@ protected function get_index_names() {
*
* ## OPTIONS
*
* [--index-name]
* [--index-name=<index_name>]
* : The name of the index to be deleted. If not passed, all indexes will be deleted
*
* [--network-wide]
Expand Down Expand Up @@ -645,7 +649,7 @@ public function delete_transient_on_int( $signal_no ) {
* [--setup]
* : Clear the index first and re-send the put mapping. Use `--yes` to skip the confirmation
*
* [--per-page]
* [--per-page=<per_page_number>]
* : Determine the amount of posts to be indexed per bulk index (or cycle)
*
* [--nobulk]
Expand All @@ -663,31 +667,31 @@ public function delete_transient_on_int( $signal_no ) {
* [--show-nobulk-errors]
* : Display the error message returned from Elasticsearch when a post fails to index while not using the /_bulk endpoint
*
* [--offset]
* [--offset=<offset_number>]
* : Skip the first n posts (don't forget to remove the `--setup` flag when resuming or the index will be emptied before starting again).
*
* [--indexables]
* [--indexables=<indexables>]
* : Specify the Indexable(s) which will be indexed
*
* [--post-type]
* [--post-type=<post_types>]
* : Specify which post types will be indexed (by default: all indexable post types are indexed). For example, `--post-type="my_custom_post_type"` would limit indexing to only posts from the post type "my_custom_post_type". Accepts multiple post types separated by comma
*
* [--include]
* [--include=<IDs>]
* : Choose which object IDs to include in the index
*
* [--post-ids]
* [--post-ids=<IDs>]
* : Choose which post_ids to include when indexing the Posts Indexable (deprecated)
*
* [--upper-limit-object-id]
* [--upper-limit-object-id=<ID>]
* : Upper limit of a range of IDs to be indexed. If indexing IDs from 30 to 45, this should be 45
*
* [--lower-limit-object-id]
* [--lower-limit-object-id=<ID>]
* : Lower limit of a range of IDs to be indexed. If indexing IDs from 30 to 45, this should be 30
*
* [--ep-host]
* [--ep-host=<host>]
* : Custom Elasticsearch host
*
* [--ep-prefix]
* [--ep-prefix=<prefix>]
* : Custom ElasticPress prefix
*
* [--yes]
Expand Down Expand Up @@ -990,6 +994,8 @@ public function clear_index() {
* items_indexed | integer | Total number of items indexed
* total_items | integer | Total number of items indexed or -1 if not yet determined
*
* ## OPTIONS
*
* [--pretty]
* : Use this flag to render a pretty-printed version of the JSON response.
*
Expand Down