diff --git a/cli/valet.php b/cli/valet.php index aa711b4..15c4a98 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -210,6 +210,17 @@ info('The ['.$url.'] site will now serve traffic over HTTP.'); })->descriptions('Stop serving the given domain over HTTPS and remove the trusted TLS certificate'); + /** + * Get all the current secured sites + */ + $app->command('secured', function () { + $sites = collect(Site::secured())->map(function ($url) { + return ['Site' => $url]; + }); + + table(['Site'], $sites->all()); + }); + /** * Create an Nginx proxy config for the specified domain. */