LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lambo

automates Laravel project creation

TLDR

Create new Laravel project
$ lambo new [project-name]
copy
Create and open in an editor
$ lambo new [project-name] --editor=[code]
copy
Create in a specific directory
$ lambo new [project-name] --path=[~/Sites]
copy
Create and migrate a MySQL database named after the project
$ lambo new [project-name] --create-db --migrate-db
copy
Install the Breeze starter kit
$ lambo new [project-name] --breeze=[blade|vue|react]
copy
Install Jetstream with teams support
$ lambo new [project-name] --jetstream=[livewire|inertia],teams
copy
Create and migrate the database, then link and secure the site with Valet
$ lambo new [project-name] --full
copy
Push to a new GitHub repository
$ lambo new [project-name] --github
copy
Edit the saved default configuration
$ lambo edit-config
copy

SYNOPSIS

lambo new [options] namelambo edit-config|edit-after|help

DESCRIPTION

lambo is a "super-powered laravel new" for Laravel and Valet. It creates a Laravel application and then performs common setup steps with a single command.After running laravel new, it initializes a Git repository with an initial commit, sets the database credentials and APP_URL in .env and .env.example (using the Valet TLD), generates an app key, and opens the project in your editor and browser.Defaults can be stored in ~/.lambo/config (lambo edit-config), and a Bash script in ~/.lambo/after (lambo edit-after) runs after each project is created.

PARAMETERS

NAME

Project name.
-e, --editor EDITOR
Editor command to run in the project directory after creation.
-p, --path PATH
Directory in which to create the project.
-m, --message MESSAGE
Message for the initial Git commit.
-f, --force
Delete an existing project directory of the same name first.
-d, --dev
Install the development branch of Laravel.
-b, --browser BROWSER
Browser to open the project in.
-l, --link
Create a Valet link to the project directory.
-s, --secure
Secure the Valet site with HTTPS.
--create-db
Create a MySQL database named after the project (requires mysql).
--migrate-db
Run database migrations.
--dbuser, --dbpassword, --dbhost VALUE
Database credentials and host written to .env.
--breeze STACK
Install Laravel Breeze with the blade, vue or react stack.
--jetstream STACK[,teams]
Install Laravel Jetstream with the inertia or livewire stack, optionally with teams.
--full
Shortcut for --create-db, --migrate-db, --link and --secure.
-g, --github
Create a private GitHub repository and push the project (requires gh or hub).
--gh-public, --gh-org ORG, --gh-description TEXT, --gh-homepage URL
Options for the created GitHub repository.
--help
Display help information.

CAVEATS

The project is archived and no longer maintained, so it may not support current Laravel releases or starter kits; the official laravel new installer now covers most of its features. Requires PHP and Composer, and is designed around macOS with Laravel Valet.

HISTORY

lambo was created by Matt Stauffer at Tighten to speed up Laravel project initialization. It started as a shell script and was later rewritten in PHP using Laravel Zero; the GitHub repository is now archived (last commit in 2023).

SEE ALSO

laravel(1), valet(1), composer(1), php(1)

RESOURCES

Copied to clipboard
Kai