Source: blog.laravel.com

Forge: Introducing The Forge CLI

Category: Laravel, PHP, MySQL

Today we're proud to introduce you to our new command-line tool: Forge CLI. This new open-source tool provides a number of helpful commands that can assist you in managing your Forge servers, sites, and resources from the command-line. Once you install Forge CLI, you may run forge from the command-line to get started: The first release (v1.0) of the Forge CLI contains around thirty commands, including initiating deployments, viewing application logs, configuring SSH key authentication, and more.

One of the primary features of Laravel Forge is deployments, and now those may be initiated via the Forge CLI using the deploy command: You may also view site logs directly from the command-line. To do so, use the site:logs command: To configure SSH key authentication, you may use the ssh:configure command: After you have configured SSH key authentication, you may use the ssh command to quickly create a secure connection to your server: You may even use the database:shell command to quickly access a command-line shell that lets you interact with your database: Be sure to check out the official Forge CLI documentation for more details.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners