Skip to content
Merged
Show file tree
Hide file tree
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
22 changes: 22 additions & 0 deletions docs/cli/built-in-commands/sync-reindex.md
Original file line number Diff line number Diff line change
@@ -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=<value>
-s <value>
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`
3 changes: 2 additions & 1 deletion docs/cli/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down