rokka/client-cli
Composer 安装命令:
composer require rokka/client-cli
包简介
CLI to use the Rokka service, using PHP
README 文档
README
A stand-alone console client for rokka.io, built with Symfony components.
Download: .phar
The cli can be used as a standalone commandline tool. Download the .phar from our releases
page and put it into e.g. /usr/local/bin/rokka-cli.
Installation: Composer
Note: If you are using Symfony, use the RokkaClientBundle which provides these commands in a Symfony application.
composer require rokka/client-cli- run the CLI from
vendor/bin/rokka-cli
Commands
Available commands:
-
image:copy: Copy the given image to another organization -
image:copy-all: Copies all existing image between organizations -
image:delete: Delete an image from a Rokka organization by its hash -
image:delete-all: Delete all images from a Rokka organization -
image:delete-subjectarea: Remove the subject area metadata from an image -
image:download: Download a source image from Rokka, given its hash -
image:info: Given an image hash, output its details (name, filesize, metadatas) -
image:list: List all uploaded images (includes offset, limit, sort and image-search options) -
image:render: Render an image with a specified stack -
image:restore: Restore the given image -
image:set-subjectarea: Set the SubjectArea metadata to a given image -
image:upload: Upload a given image file to Rokka.io -
stack:create: Create a stack -
stack:clone: Copies a given ImageStack to another name (or to a different organization) -
stack:clone-all: Clones all ImageStack to another organization -
stack:list: List all available ImageStacks -
stack:info: Given a Stack name, output its details (name, operations, options) -
stack:delete: Removes an ImageStack -
organization:create: Creates a new organization -
organization:info: Prints the details of a given organization -
organization:membership:add: Adds a membership given a user email and role -
organization:membership:info: Prints the details of a given membership (by user email and organization) -
user:create: Creates and register a new User on Rokka.io
Configuration
Without configuration, the command will only list the operations that are possible when not logged in.
Use the organization:create and user:create commands with the --save-as-default option to initialize
the configuration with your user. You can then copy the rokka.yml file to .rokka.yml in your home directory.
If you have an existing account, create the file .rokka.yml with the following content in your home directory:
rokka_cli:
api_key: your-api-key
organization: organization-name
rokka-cli looks for rokka.yml in the current working directory or .rokka.yml in your home directory.
Development
Building rokka-cli.phar
Rokka-CLI uses Box to build executable Phars.
- Checkout the GIT repository
- Run
make dist - The .phar should be at dist/rokka-cli.phar
Running PHP-CS-Fixer
curl http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar > /tmp/php-cs-fixer.phar
php /tmp/php-cs-fixer.phar fix -v --diff --using-cache=yes src/
rokka/client-cli 适用场景与选型建议
rokka/client-cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 255.84k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2016 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「rokka」 「rokka.io」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rokka/client-cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rokka/client-cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rokka/client-cli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
统计信息
- 总下载量: 255.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 15
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-18