Export the cron env:
* * * * * env > ~/cronenv
then start a shell with the same environment:
env - `cat ~/cronenv` /bin/sh
Source: stackoverflow answer 1
Source: stackoverflow answer 2