LinuxCommandLibrary

lumen

Display information about installed Snap packages

TLDR

Create a new Lumen application

$ lumen new [application_name]
copy

List the available installer commands
$ lumen list
copy

SYNOPSIS

php artisan <command> [options] [arguments]
Example: php artisan migrate

PARAMETERS

make:controller {name}
    Create a new controller class.

make:middleware {name}
    Create a new middleware class.

make:migration {name}
    Create a new migration file.

migrate
    Run the database migrations.

migrate:rollback
    Roll back the last database migration.

db:seed
    Seed the database with records.

serve
    Serve the application using the PHP development server.

key:generate
    Set the application key.

optimize
    Optimize the framework for better performance.

help {command}
    Display help for a specific command.

list
    List all available Artisan commands.

DESCRIPTION

The term 'lumen' on Linux typically refers to the Lumen PHP micro-framework, not a standalone system command. Lumen is a lightweight, high-performance web application framework built on top of Laravel's components, specifically optimized for building fast APIs and microservices. It provides a foundational structure and essential tools for rapid development of back-end services. Its command-line interface (CLI) is powered by Artisan, Laravel's powerful command-line tool. You interact with a Lumen application's features—such as database migrations, route caching, code generation for controllers, middleware, and migrations, as well as serving the application locally—through the php artisan command. This command must be executed from within the root directory of a Lumen project. It significantly facilitates development workflows by automating repetitive tasks and providing scaffolding functionalities, streamlining the creation and management of Lumen applications.

CAVEATS

The `lumen` command itself does not exist as a standalone executable in standard Linux distributions. CLI functionality is accessed via php artisan within a Lumen project.
Requires PHP and Composer installed on the system, and a properly configured Lumen project.
The available Artisan commands depend on the Lumen version and installed packages.

HISTORY

Lumen was created by Taylor Otwell, the creator of Laravel, and was first released in 2015. It was designed to be a faster, leaner micro-framework for building high-performance APIs and microservices, using many of the same components as Laravel but with less overhead. Over time, some of Lumen's unique performance benefits have been integrated into Laravel itself, leading to a closer alignment between the two frameworks. While still maintained, for many API-only projects, modern Laravel itself with its API features can serve a similar purpose.

SEE ALSO

php(1), composer(1), laravel(7)

Copied to clipboard