web6-agency / six-cli
此包已废弃,不再维护。未建议替代包。
控制 6admin 的命令行工具
v1.1.5
2015-03-27 16:19 UTC
Requires
- php: >=5.4.0
- illuminate/console: 4.*
- illuminate/container: 4.*
- illuminate/support: 4.*
README
此包是 6admin 包的一部分。
安装
composer global require "web6-agency/six-cli:dev-master"
设置
安装完成后,您可以从 bin
文件夹访问 six
命令行工具。
~/composer/vendor/bin/six
您可以为快速访问 six
命令行工具创建别名,或将 bin 路径导出到您的 ~/.bashrc
文件。
alias six="vendor/bin/six" export PATH="vendor/bin:$PATH"
在 cmder 等Windows终端模拟器中,您可以这样创建别名
alias six=C:\Users\<USERNAME>\AppData\Roaming\Composer\vendor\bin\six.bat $1 $2 $3 $4 $5
使用方法
您可以使用一些命令来控制 6admin 的安装。您也可以使用不带参数的 six
命令来显示所有可用的命令。
$ six
创建/配置项目的命令
# Start the project installer wizard six project:wizard # Create a new 6admin project based on private repo six project:create # Configure projet (database etc ...) six project:configure # Setup projet (Install modules, update composer, and module:install) six project:setup
管理 CMS 模块的命令
# List all available six modules six module # Download a module if not downloaded and run installation (with example seeds or not) six module:install [module_name] [--example-seeds] # Only download a module without installing it six module:download [module_name] # Uninstall module by running uninstallation script and then delete the module folder six module:uninstall [module_name] # Refresh a module by running uninstall / reinstall each modules six module:refresh [module_name] # Temporary disable a module six module:disable [module_name] # Enable a disabled module six module:enable [module_name] # Pulling / Pushing modifications from / to module repository six module:sync [module_name] # Pulling modifications from module repository six module:pull [module_name] # Pushing modifications to module repository six module:push [module_name]