Skip to content

Commit fd311cc

Browse files
committed
Document new sync:upload-directory CLI command
1 parent e7c01a8 commit fd311cc

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `sync:upload-directory`
2+
3+
This command synchronizes the file records in the database with the files stored in a given upload directory. This functionality is also available through the [File Manager](control-panel/file-manager/synchronizing.md).
4+
5+
## Options list:
6+
7+
```
8+
--upload-id=<value>
9+
-u <value>
10+
Upload Directory ID. If not provided, list of Upload Directories with corresponding IDs will be shown to choose from
11+
12+
--manipulations=<value>
13+
-m <value>
14+
Image manipulations to regenerate. Comma separated list of manipulation IDs. Use 'all' to regenerate all manipulations. If not provided, a list of available manipulations with corresponding IDs will be shown to choose from
15+
```
16+
17+
## Example:
18+
19+
`php eecli.php sync:upload-directory --upload-id=6 --manipulations=all`

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:upload-directory - Sync files in an upload directory](cli/built-in-commands/sync-upload-directory.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)