Linux command
lambo-new 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create Laravel project
lambo new [project-name]
With editor
lambo new [project-name] --editor=[code]
With database creation
lambo new [project-name] --create-db
With auth scaffolding
lambo new [project-name] --auth
Full setup
lambo new [project-name] --create-db --auth --editor=[code]
说明
lambo new creates new Laravel projects with automation. It combines multiple setup steps into one command. The command handles git initialization, dependency installation, and configuration. It opens the project in your editor.
参数
- -e, --editor _EDITOR_
- Editor command to open the project after install.
- -m, --message _MSG_
- Initial git commit message.
- -p, --path _PATH_
- Path where the project will be created.
- -b, --browser _URL_
- Open a browser at the given URL after install.
- -l, --link
- Create a Valet link to the project.
- -s, --secure
- Configure Valet with HTTPS for the project.
- --create-db
- Create a corresponding MySQL database.
- --dbuser _USER_
- Database user (default: root).
- --dbpassword _PASS_
- Database password.
- --auth
- Run php artisan make:auth scaffolding (legacy Laravel).
- --dev
- Use the development Laravel version.
- --node
- Run npm install after creation.
- --mix
- Run npm run dev (Laravel Mix) after creation.
- --quiet
- Minimal output.
- --help
- Display help information.
FAQ
What is the lambo-new command used for?
lambo new creates new Laravel projects with automation. It combines multiple setup steps into one command. The command handles git initialization, dependency installation, and configuration. It opens the project in your editor.
How do I run a basic lambo-new example?
Run `lambo new [project-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e, --editor _EDITOR_ do in lambo-new?
Editor command to open the project after install.