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 init command allows you to link the current working directory with a site and server on Laravel Forge.
When calling forge init, you can choose from an interactive list, which server you want to link the site with.

After selecting the server, you can either go and create a new site on Forge, or link the directory with an already existing site on the selected server:

Once the site is linked/created, Forge CLI will create a file called forge.yml in your current working directory.
This file contains the current site (and server) configuration that you have.
You can safely put this file into version control to later synchronize changes to Forge.
Herd is a blazing fast, native Laravel and PHP development environment for macOS. It includes everything you need to get started with Laravel development, including PHP and nginx. Once you install Herd, you're ready to start developing with Laravel.
Herd is available for macOS and Windows.
Learn more