diff --git a/docs/cli/built-in-commands/sync-reindex.md b/docs/cli/built-in-commands/sync-reindex.md new file mode 100644 index 000000000..2ba67fa25 --- /dev/null +++ b/docs/cli/built-in-commands/sync-reindex.md @@ -0,0 +1,22 @@ +# `sync:reindex` + +The searchable content in your site may become stale after changing properties of some fields. Running the `sync:reindex` command will ensure fresh data is used by complex fields in the Entry Manager and search contexts. + +## Options list: + +``` + --site_id= + -s + Site ID. Skip this parameter to re-index content on all sites +``` + +## Examples: + +### Re-index content for all sites + +`php eecli.php sync:reindex` + +### Re-index content for Site ID 1 only + +`php eecli.php sync:reindex --site_id=1` +`php eecli.php sync:reindex -s 1` \ No newline at end of file diff --git a/docs/cli/intro.md b/docs/cli/intro.md index 0360580a1..bc520e5e0 100644 --- a/docs/cli/intro.md +++ b/docs/cli/intro.md @@ -2,7 +2,7 @@ The Command Line Interface (CLI) allows a user to run system and user-generated commands in the terminal. The CLI has access to all of the ExpressionEngine resources, and can be used to update the system, clear caches, and much more. -By default the CLI is located `system/ee/eecli.php` . +By default the CLI is located `system/ee/eecli.php` . ![EE CLI](_images/6-1_cli.png) @@ -29,6 +29,7 @@ By default the CLI is located `system/ee/eecli.php` . - [migrate:rollback - Rolls back most recent migration group](cli/built-in-commands/migrate.md) - Sync - [sync:conditional-fields - Sync channel entry conditional logic](cli/built-in-commands/sync-conditional-fields.md) + - [sync:reindex - Sync content used in search indexes](cli/built-in-commands/sync-reindex.md) - [Update ExpressionEngine](cli/built-in-commands/update.md) - [Creating a Command](cli/creating-a-command.md) - [Defining Input](cli/defining-input.md)