Open a new bash shell, which uses yesterday as the current date

faketime

faketime '{{yesterday}}' {{bash}}

click the source code to copy install faketime on any operating system with command-not-found.com