whatthejeff/fab-cli

让您的Shell变得更亮丽!

v1.0.2 2014-06-02 14:13 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:52:48 UTC


README

让您的Shell变得更亮丽!

命令

fab

fab composer example fab PHPUnit example

fabify

fabify composer example fabify PHPUnit example

需求

fab-cli 需要

  • PHP 5.3.3 或更高版本。
  • 支持ANSI转义序列的终端仿真器。

安装

警告:以下安装说明建议将fab.phar二进制文件重命名为fab。如果您的系统已安装fabric,您应保留二进制文件的.phar扩展名,以免在下次部署时出现意外。

全局

使用cURL

$ sudo curl -Lo /usr/local/bin/fab https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fab.phar
$ sudo curl -Lo /usr/local/bin/fabify https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fabify.phar
$ sudo chmod a+x /usr/local/bin/fab /usr/local/bin/fabify

使用Wget

$ sudo wget -O /usr/local/bin/fab https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fab.phar
$ sudo wget -O /usr/local/bin/fabify https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fabify.phar
$ sudo chmod a+x /usr/local/bin/fab /usr/local/bin/fabify

使用composer

$ composer global require whatthejeff/fab-cli @stable
$ export PATH="$PATH:$HOME/.composer/vendor/bin"

本地

使用cURL

$ curl -Lo fab https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fab.phar
$ curl -Lo fabify https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fabify.phar
$ chmod +x fab fabify
$ export PATH="$PATH:$(pwd)"

使用Wget

$ wget -O fab https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fab.phar
$ wget -O fabify https://github.com/whatthejeff/fab-cli/releases/download/v1.0.2/fabify.phar
$ chmod +x fab fabify
$ export PATH="$PATH:$(pwd)"

使用composer

$ composer require whatthejeff/fab-cli @stable
$ export PATH="$PATH:$(pwd)/vendor/bin"

用法

$ fab command [args...]
$ command [args...] | fabify

致谢

fab-cli 受到以下启发:

许可证

fab-cli 使用MIT许可证