{"id":20406649,"url":"https://github.com/xwp/janrain-cli-tools","last_synced_at":"2025-10-15T06:31:56.652Z","repository":{"id":35481223,"uuid":"39750232","full_name":"xwp/janrain-cli-tools","owner":"xwp","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-26T16:20:05.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":59,"default_branch":"master","last_synced_at":"2025-07-18T02:22:12.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xwp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-27T02:04:33.000Z","updated_at":"2015-07-28T06:05:42.000Z","dependencies_parsed_at":"2022-09-11T05:53:49.560Z","dependency_job_id":null,"html_url":"https://github.com/xwp/janrain-cli-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xwp/janrain-cli-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fjanrain-cli-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fjanrain-cli-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fjanrain-cli-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fjanrain-cli-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xwp","download_url":"https://codeload.github.com/xwp/janrain-cli-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fjanrain-cli-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279058350,"owners_count":26094844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:18:36.097Z","updated_at":"2025-10-15T06:31:56.622Z","avatar_url":"https://github.com/xwp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"jcli\n====\n\nCLI ools for interacting with Janrain.\n\n* [Install From Source](#install)\n* [Configuration](#config)\n* [Commands](#commands)\n* [Find Records](#find)\n* [Count Records](#count)\n* [View a Single Record](#view-single)\n* [Update a Record](#udpate)\n* [Update All Empty ETUID Attributes](#etuid)\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n## Install From Source\n\n```\ngit clone git@github.com:xwp/janrain-cli-tools.git jcli\ncd jcli\ncomposer install\n```\n\nYou can run via `./bin/jcli` from current directory.\n\nIf you want to build the phar file:\n\n```\nbox build\n```\n\nand you can move the file to your OS `PATH`:\n\n```\nmv jcli.phar /usr/local/bin/jcli\n```\n\nNow you can run `jcli` from anywhere.\n\n\u003ca name=\"config\"\u003e\u003c/a\u003e\n## Configuration\n\nThe first time you need to do is configure your `jcli`. By default `client_id`,\n`client_secret`, and `base_url` are empty:\n\n```\njcli config -l\n```\n\nThese are required config keys that need to be set. Set it with:\n\n```\njcli config client_id YOUR_CLIENT_ID\njcli config client_secret YOUR_CLIENT_SECRET\njcli config base_url YOUR_BASE_URL\n```\n\nAdditionally you can set `default_type` to set default entity type. Now, every time\nyou run command you can ignore `-t` option.\n\n```\njcli config default_type user\n```\n\n\u003ca name=\"commands\"\u003e\u003c/a\u003e\n## Commands\n\n```\n$ ./bin/jcli\njcli version @package_version@\n\nUsage:\n  command [options] [arguments]\n\nOptions:\n  -h, --help            Display this help message\n  -q, --quiet           Do not output any message\n  -V, --version         Display this application version\n      --ansi            Force ANSI output\n      --no-ansi         Disable ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nAvailable commands:\n  config                 Janrain config\n  help                   Displays help for a command\n  list                   Lists commands\n entity\n  entity:count           Retrieve number of records of entity type\n  entity:fill-unsub-key  Fill empty unsubscribe key on records\n  entity:find            Find entity\n  entity:update          Update an entity\n  entity:view            Retrieve a single entity\n type\n  type:list              Retrieve all entity types\n```\n\n\u003ca name=\"find\"\u003e\u003c/a\u003e\n### Find Records\n\n```\njcli entity:find \"gender != 'male'\"\n```\n\nLimit the output to 10 records:\n\n```\njcli entity:find \"gender != 'male'\" -m 10\n```\n\nSpecifying offset (start from 5th record):\n\n```\njcli entity:find \"gender != 'male'\" -m 10 -f 5\n```\n\n\u003ca name=\"count\"\u003e\u003c/a\u003e\n### Count Records\n\n```\njcli entity:count \"gender != 'male' AND birthday is not null\"\n```\n\n\u003ca name=\"view-single\"\u003e\u003c/a\u003e\n### View a Single Record\n\n```\njcli entity:view id=999\njcli entity:view uuid=c0613105-f632-41ce-80eb-56668df7fc83\n```\n\n\u003ca name=\"update\"\u003e\u003c/a\u003e\n### Update a Record\n\n```\njcli entity:update id=999 givenName=Akeda displayName=\"Akeda Bagus\"\n```\n\n\u003ca name=\"etuid\"\u003e\u003c/a\u003e\n### Update All Empty ETUID Attributes\n\n```\njcli entity:fill-unsub-key\n```\nYou may get API rate limit from Janrain. If so, the jcli will output the\nmessage. When that happens, you can re-run `jcli\nentity:fill-unsub-key` again for the remaining records.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fjanrain-cli-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxwp%2Fjanrain-cli-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fjanrain-cli-tools/lists"}