← 返回命令列表

Linux command

robo 命令

文本

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

常用示例

List tasks

robo

Run task

robo [task-name]

Run with arguments

robo [task-name] [--arg=value]

Use specific file

robo -f [RoboFile.php] [task]

Verbose output

robo [task] -v

Dry run

robo [task] --simulate

说明

robo is a PHP task runner framework that uses an object-oriented approach to define automation tasks. Tasks are written as PHP class methods in a RoboFile.php, providing full access to PHP's language features and ecosystem for build automation, deployment, and development workflows. The framework includes built-in tasks for common operations like file manipulation (copy, move, watch), running shell commands, SSH remote execution, and parallel task execution. The --simulate flag enables dry-run mode to preview what commands would be executed without actually running them, which is useful for testing complex task sequences. Robo integrates naturally with Composer-based PHP projects and serves a similar role to Make, Rake, or Gulp for the PHP ecosystem.

参数

-f _FILE_
RoboFile path.
-v
Verbose output.
--simulate
Dry run mode.
--load-from _DIR_
Load from directory.
-n
No interaction.
--help
Show help.

FAQ

What is the robo command used for?

robo is a PHP task runner framework that uses an object-oriented approach to define automation tasks. Tasks are written as PHP class methods in a RoboFile.php, providing full access to PHP's language features and ecosystem for build automation, deployment, and development workflows. The framework includes built-in tasks for common operations like file manipulation (copy, move, watch), running shell commands, SSH remote execution, and parallel task execution. The --simulate flag enables dry-run mode to preview what commands would be executed without actually running them, which is useful for testing complex task sequences. Robo integrates naturally with Composer-based PHP projects and serves a similar role to Make, Rake, or Gulp for the PHP ecosystem.

How do I run a basic robo example?

Run `robo` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _FILE_ do in robo?

RoboFile path.