Tinkerwell 5 is out now! Your favorite PHP Scratchpad enters the AI age. Tinkerwell 5 is out now! Your favorite PHP Scratchpad enters the AI age with conversational AI, MCP and more. Learn more
The forge env:pull command allows you to pull the current environment file of your Laravel Forge site to your local filesystem.
The naming convention is:
.env.forge.[ENVIRONMENT]
So by running forge env:pull, Forge CLI will write the current environment file to .env.forge.production.
Running forge env:pull staging would create a file called .env.forge.staging.
Kickstart your Laravel Websockets project with this in-depth video course – sign up to our newsletter and get a notification when it launches.