Glance through the Etlas command reference
The freeze command generates cabal.project.freeze file that pins down all the dependencies for your project.
etlas freeze [FLAGS]
All the flags supported by the build command.