This example flattens all photos — regardless of which subfolder they originally lived in — into aDocumentation Index
Fetch the complete documentation index at: https://photocli.com/llms.txt
Use this file to discover all available pages before exploring further.
[year]/[month]/[day] folder hierarchy, and renames every file with its full taken date and time. The result is a single chronological archive that ignores the original folder names completely.
Command
Key arguments
| Argument | Value | What it does |
|---|---|---|
--process-type | FlattenAllSubFolders | Ignores the original folder hierarchy and treats every photo as if it were in one pool. |
--group-by | YearMonthDay | Creates output folders named by year, then month, then day, derived from the EXIF taken date. |
--naming-style | DateTimeWithSeconds | Names each output file as yyyy.MM.dd_HH.mm.ss.ext, including hours, minutes, and seconds. |
--number-style | OnlySequentialNumbers | When two photos share the exact same taken timestamp, appends -1, -2, etc. to distinguish them. |
Before and after
Before (photos/):
organized-albums/):
What you see in the output
All 17 source photos are reorganized by date, completely ignoring which album they came from. The Italy album photos taken on 22 October 2008 are grouped together under2008/10/22/, and the Spain Journey photos from 10 April 2015 land in 2015/04/10/.
Two photos share the exact same timestamp (2008.10.22_17.00.07), so photo-cli appends -1 and -2 to keep them distinct. The same applies to the two Madrid photos at 2015.04.10_20.12.23.
Spain Journey/IMG_5397.jpg has no EXIF taken date, so it is placed at the root of the output as IMG_5397.jpg (the original file name is kept as a fallback).