paulbalandan/codeigniter4-installer

CodeIgniter4的完整安装程序。

v1.0.0 2020-07-15 14:30 UTC

This package is auto-updated.

Last update: 2024-08-29 05:09:38 UTC


README

QA Build QA Control Latest Stable Version Latest Unstable Version GitHub license contributions welcome

安装

使用Composer,全局安装此安装程序,请使用以下命令

    composer global require paulbalandan/codeigniter4-installer

用法

现在您已全局安装了安装程序,您可以在终端中使用codeigniter4 new [name]来调用脚手架,其中name是目录名称。

这里的name是可选的。如果您没有提供,它将默认为当前工作目录。如果提供了name,它将相对于当前工作目录解析。

运行codeigniter4 new --help以获取完整选项。

选项

  • --config - 提供默认配置值的路径。这将相对于$directorycwd解析
  • --dev - 安装最新的CI4开发者版本作为框架
  • --with-git - 在目录中初始化空的Git仓库
  • --with-gitflow - 使用GitFlow初始化Git仓库。这隐式包含了--with-git选项。
  • -f|--force - 在现有目录上强制安装。

注意:这些选项默认不启用。您应提供自己的选项集。