Tinkerwell 4 is out now! Get the most popular PHP Scratchpad application. Learn more

Forge CLI

Pull environment files

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.

Tinkerwell: The PHP Scratchpad

Enjoy coding and debugging in an editor designed for fast feedback and quick iterations. It's like a shell for your application – but with multi-line editing, code completion, and more.