Skip to content

Commit 258f882

Browse files
authored
Merge pull request #801 from ExpressionEngine/feature/7.x/cli-sync-reindex
Document new sync:reindex CLI command
2 parents ff2ee92 + 3f85b96 commit 258f882

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# `sync:reindex`
2+
3+
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.
4+
5+
## Options list:
6+
7+
```
8+
--site_id=<value>
9+
-s <value>
10+
Site ID. Skip this parameter to re-index content on all sites
11+
```
12+
13+
## Examples:
14+
15+
### Re-index content for all sites
16+
17+
`php eecli.php sync:reindex`
18+
19+
### Re-index content for Site ID 1 only
20+
21+
`php eecli.php sync:reindex --site_id=1`
22+
`php eecli.php sync:reindex -s 1`

docs/cli/intro.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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.
44

5-
By default the CLI is located `system/ee/eecli.php` .
5+
By default the CLI is located `system/ee/eecli.php` .
66

77
![EE CLI](_images/6-1_cli.png)
88

@@ -29,6 +29,7 @@ By default the CLI is located `system/ee/eecli.php` .
2929
- [migrate:rollback - Rolls back most recent migration group](cli/built-in-commands/migrate.md)
3030
- Sync
3131
- [sync:conditional-fields - Sync channel entry conditional logic](cli/built-in-commands/sync-conditional-fields.md)
32+
- [sync:reindex - Sync content used in search indexes](cli/built-in-commands/sync-reindex.md)
3233
- [Update ExpressionEngine](cli/built-in-commands/update.md)
3334
- [Creating a Command](cli/creating-a-command.md)
3435
- [Defining Input](cli/defining-input.md)

0 commit comments

Comments
 (0)