One command to fork Ethereum mainnet locally.
Create your environment variables file:
$ cp .envrc.example .envrc
Update the FORK_URL with your RPC URL.
Now use direnv to enable the vars:
$ direnv allow
Spin up a new ganache cli fork:
yarn fork
The fork will add data to the hidden directory .ganache