Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Modern WordPress Workflow The Staging Server Staging Hosting

Robert Mews
Robert Mews
11,540 Points


What is the benefits of PHP CLI if I already have LAMP installed? I'm a bit confused since I already have my LAMP installed and console line command available in a VPS. I should point out that my IDE has VPS, so I'm not using Server Pilot.

2 Answers

jeremy rackley
jeremy rackley
22,336 Points

There are many benefits of the cli, a couple right off hand would be creating quick scripts to take care of cron jobs like sending emails and maintenance tasks. It can be a much faster way to get tasks done, especially ones that you may not want viewable from the web.

Jesse Petersen
Jesse Petersen
Treehouse Guest Teacher

We didn't cover PHP-CLI, but that is a good thing to run with WP-CLI. WP-CLI is to run WP functions without logging into WP and to do database things without PhpMyAdmin.