← 返回命令列表

Linux command

laravel-zero 命令

文本

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

常用示例

Create new Laravel Zero application

laravel-zero new [app-name]

Build standalone PHAR

php [app-name] app:build

Install optional component

php [app-name] app:install

说明

laravel-zero is a micro-framework for console applications built on Laravel components. It creates standalone command-line applications that can be compiled into single PHAR files. Ideal for building CLI tools with Laravel's elegant syntax.

参数

new _name_
Create a new Laravel Zero application.
--force
Overwrite existing directory.

FAQ

What is the laravel-zero command used for?

laravel-zero is a micro-framework for console applications built on Laravel components. It creates standalone command-line applications that can be compiled into single PHAR files. Ideal for building CLI tools with Laravel's elegant syntax.

How do I run a basic laravel-zero example?

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

What does new _name_ do in laravel-zero?

Create a new Laravel Zero application.