After installing the package, the chronogen command becomes available. The CLI mirrors the Python API and exposes parameters that are useful when building password wordlists or quick test fixtures.
Generate ISO formatted dates between 2000 and 2001:
chronogen -s 2000 -e 2001 -f YYYYMMDDOutput includes the end year and prints directly to stdout.
chronogen -s 1999 -e 1999 -f MMDDYYYY -S "/" --case upperThis prints MM/DD/YYYY in uppercase, which is particularly handy when working with systems that normalise user input.
When testing a seasonal promotion or a leap-day edge case you might not want every day of the year:
chronogen --start 2024 --end 2024 --months 2 --days 29Only February 29th is emitted.
Multiple values can be passed for both --months and --days.
Append context or reverse chronological order to target the latest dates first:
chronogen -s 2018 -e 2024 -f DDMMYY -S . -P corp- --suffix "!" -rThe --pattern option accepts any valid strftime string and overrides the format template and separator configuration:
chronogen --start 1990 --end 1990 --pattern "%d%b%Y" --case lowerResult: 01jan1990, 02jan1990, etc.
Use --output (or -o) to write values to disk and choose a newline when targeting Windows tools:
chronogen -s 2000 -e 2005 -f YYYYMMDD -o wordlists/dates.txt -n "\r\n"List suggested format templates along with examples:
chronogen --list-formatsThese strings are made up of contiguous Y, M, and D blocks. Use YY for short years and YYYY for full years. Each component is optional, so formats like MM, DD, or MMDD are valid. See chronogen --help for the full list of options and short flag aliases.