puli/cli
Composer 安装命令:
composer require puli/cli
包简介
A Command Line Interface (CLI) for managing Puli projects.
README 文档
README
Latest release: 1.0.0-beta10
PHP >= 5.3.9
The Puli Command Line Interface gives access to the Puli Manager via your favorite terminal. The following is a list of the currently supported commands:
| Command | Description |
|---|---|
| Resource Mappings | |
puli map |
Display all path mappings |
puli map <path> <file>... |
Map a repository path to one or several file paths |
puli map -u <path> |
Update the mapping for a repository path |
puli map -d <path> |
Delete the mapping for a repository path |
| Resource Bindings | |
puli type |
Display all binding types |
puli type --define <type> |
Define a new binding type |
puli type -d <type> |
Remove a defined binding type |
puli bind |
Display all resource bindings |
puli bind <glob> <type> |
Bind resources to a type |
puli bind -u <uuid> |
Update a resource binding |
puli bind -d <uuid> |
Delete a resource binding |
puli bind --enable <uuid> |
Enable a binding of an installed package |
puli bind --disable <uuid> |
Disable a binding of an installed package |
| Public Resources | |
puli publish |
List mapped public resources |
puli publish <path> <server> |
Publish a resource path to a server |
puli publish -u <uuid> |
Update a published resource |
puli publish -d <uuid> |
Delete a published resource |
puli server |
List all servers |
puli server -a <name> <doc-root> |
Add a server |
puli server -u <name> |
Update a server |
puli server -d <name> |
Delete a server |
| Building | |
puli build |
Build the repository and the discovery |
| Packages | |
puli package |
Display all installed packages |
puli package --add <path> <name> |
Add a custom package |
puli package -d <name> |
Remove an installed package |
puli package --clean |
Remove all non-existing packages |
| Configuration | |
puli config |
Show the current configuration |
puli config -a |
Show the current configuration (including default values) |
puli config <key> |
Show the current value of a configuration key |
puli config <key> <value> |
Change a configuration key |
puli config -d <key> |
Remove a configuration key (reset to default) |
| Repository Access | |
puli ls <path> |
List the child resources of a resource path |
puli tree <path> |
Print a resource and its children as tree |
puli find --name <glob> |
Find resources matching a glob |
puli find --type <type> |
Find resources bound to a binding type |
| Plugin Management | |
puli plugin |
List the currently installed plugins |
puli plugin --install <class> |
Install a plugin class |
puli plugin -d <class> |
Remove a plugin class |
| Update | |
puli self-update |
Update puli.phar |
Run any of the commands with the -h option to find out more about other
supported options.
Authors
Installation
Follow the Installation guide guide to install Puli in your project.
Documentation
Read the Puli Documentation to learn more about Puli.
Contribute
Contributions to are very welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at Puli’s Git repository.
Support
If you are having problems, send a mail to bschussek@gmail.com or shout out to @webmozart on Twitter.
License
All contents of this package are licensed under the MIT license.
puli/cli 适用场景与选型建议
puli/cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47.36k 次下载、GitHub Stars 达 51, 最近一次更新时间为 2014 年 12 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 puli/cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 puli/cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 47.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 51
- 点击次数: 14
- 依赖项目数: 16
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-03