Forge: Introducing The Forge CLI

>>> Shared from Original Post Laravel

Today we're proud to introduce you to our new command-line tool: **[Forge CLI](https://github.com/laravel/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](https://forge.laravel.com/docs/1.0/accounts/cli.html#installation), you may run `forge` from the command-line to get started: ![image](https://laravel-blog-assets.s3.amazonaws.com/calgv5adNgepUWrx16Mp2Ci5uHUQYyBpy0ZDYoG7.png "forge") 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. In this article, we are going to highlight some of these new commands. And, of course, you may refer to the **[official documentation](https://forge.laravel.com/docs/1.0/accounts/cli.html)** for more details. ### Initiating Deployments One of the primary features of Laravel Forge is deployments, and now those may be initiated via the Forge CLI using the `deploy` command: ![image](https://laravel-blog-assets.s3.amazonaws.com/6leQsEMOItsN64hoK2K3hQkJ4VqmIypm3mmuNjDF.png "forge-deploy") ### Viewing Application Logs You may also view site logs directly from the command-line. To do so, use the `site:logs` command: ![image](https://laravel-blog-assets.s3.amazonaws.com/1W4B1DiY28tJdYMVIzs0TK2NeahGj4nMSpDDeCsW.png "forge-site-logs") ### Configuring SSH Key Authentication To configure SSH key authentication, you may use the `ssh:configure` command: ![image](https://laravel-blog-assets.s3.amazonaws.com/4Rz6rN8KOh7BoIrNGJRKMwcuQjTp1pnZC8uaaXQ9.png "forge-ssh-configure") After you have configured SSH key authentication, you may use the `ssh` command to quickly create a secure connection to your server: ![image](https://laravel-blog-assets.s3.amazonaws.com/q6fuEh4hK4P9V1I2Rek1FzLJNlpP0OqVuiuZR0SP.png "forge-ssh") ### Connecting To A Database Locally You may even use the `database:shell` command to quickly access a command-line shell that lets you interact with your database: ![image](https://laravel-blog-assets.s3.amazonaws.com/NNGUTSt6vNGKUyiME6fHku0BGmyKbPbg7CAKqscG.png "forge-database-shell") --- Be sure to check out the [official Forge CLI documentation](https://forge.laravel.com/docs/1.0/accounts/cli.html) for more details. There you will find a listing of all of the available commands and options. We hope you enjoy this new command-line tool! If you don’t have a Forge account, now is a great time to **[sign up](https://forge.laravel.com/auth/register)**! Forge allows you to painlessly create and manage PHP servers which include MySQL, Redis, Memcached, database backups, and everything else you need to run robust, modern Laravel applications.

>>>Read the Full Story at Laravel