gedex/janrain-cli
Composer 安装命令:
composer require gedex/janrain-cli
包简介
README 文档
README
CLI ools for interacting with Janrain.
- Install From Source
- Configuration
- Commands
- Find Records
- Count Records
- View a Single Record
- Update a Record
- Update All Empty ETUID Attributes
Install From Source
git clone git@github.com:xwp/janrain-cli-tools.git jcli
cd jcli
composer install
You can run via ./bin/jcli from current directory.
If you want to build the phar file:
box build
and you can move the file to your OS PATH:
mv jcli.phar /usr/local/bin/jcli
Now you can run jcli from anywhere.
Configuration
The first time you need to do is configure your jcli. By default client_id,
client_secret, and base_url are empty:
jcli config -l
These are required config keys that need to be set. Set it with:
jcli config client_id YOUR_CLIENT_ID
jcli config client_secret YOUR_CLIENT_SECRET
jcli config base_url YOUR_BASE_URL
Additionally you can set default_type to set default entity type. Now, every time
you run command you can ignore -t option.
jcli config default_type user
Commands
$ ./bin/jcli
jcli version @package_version@
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
config Janrain config
help Displays help for a command
list Lists commands
entity
entity:count Retrieve number of records of entity type
entity:fill-unsub-key Fill empty unsubscribe key on records
entity:find Find entity
entity:update Update an entity
entity:view Retrieve a single entity
type
type:list Retrieve all entity types
Find Records
jcli entity:find "gender != 'male'"
Limit the output to 10 records:
jcli entity:find "gender != 'male'" -m 10
Specifying offset (start from 5th record):
jcli entity:find "gender != 'male'" -m 10 -f 5
Count Records
jcli entity:count "gender != 'male' AND birthday is not null"
View a Single Record
jcli entity:view id=999
jcli entity:view uuid=c0613105-f632-41ce-80eb-56668df7fc83
Update a Record
jcli entity:update id=999 givenName=Akeda displayName="Akeda Bagus"
Update All Empty ETUID Attributes
jcli entity:fill-unsub-key
You may get API rate limit from Janrain. If so, the jcli will output the
message. When that happens, you can re-run jcli entity:fill-unsub-key again for the remaining records.
gedex/janrain-cli 适用场景与选型建议
gedex/janrain-cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 07 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 gedex/janrain-cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gedex/janrain-cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-28