← 返回命令列表

Linux command

lumen 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create new project

lumen new [project-name]

Serve application

php -S localhost:8000 -t public

Generate key

php artisan key:generate

Run migrations

php artisan migrate

List routes

php artisan route:list

Clear cache

php artisan cache:clear

说明

lumen is a PHP micro-framework by Laravel. It's designed for fast microservices and APIs. The framework provides routing, caching, and Eloquent ORM with minimal overhead.

参数

new _NAME_
Create new project.
--help
Display help information.

FAQ

What is the lumen command used for?

lumen is a PHP micro-framework by Laravel. It's designed for fast microservices and APIs. The framework provides routing, caching, and Eloquent ORM with minimal overhead.

How do I run a basic lumen example?

Run `lumen new [project-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does new _NAME_ do in lumen?

Create new project.