{"id":35011677,"url":"https://github.com/aooiuu/z-gio","last_synced_at":"2026-05-20T22:35:21.323Z","repository":{"id":63923570,"uuid":"571555632","full_name":"aooiuu/z-gio","owner":"aooiuu","description":"growingio 命令行工具","archived":false,"fork":false,"pushed_at":"2022-12-03T08:59:09.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-18T06:13:52.810Z","etag":null,"topics":["gio","growingio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aooiuu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-28T11:45:44.000Z","updated_at":"2023-03-07T04:46:32.000Z","dependencies_parsed_at":"2023-01-14T14:30:52.247Z","dependency_job_id":null,"html_url":"https://github.com/aooiuu/z-gio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aooiuu/z-gio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aooiuu%2Fz-gio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aooiuu%2Fz-gio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aooiuu%2Fz-gio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aooiuu%2Fz-gio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aooiuu","download_url":"https://codeload.github.com/aooiuu/z-gio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aooiuu%2Fz-gio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33278178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T15:12:43.734Z","status":"ssl_error","status_checked_at":"2026-05-20T15:12:42.300Z","response_time":356,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["gio","growingio"],"created_at":"2025-12-27T04:59:19.129Z","updated_at":"2026-05-20T22:35:21.317Z","avatar_url":"https://github.com/aooiuu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ez-gio\u003c/h1\u003e\n\n![z-gio](https://img.shields.io/npm/v/z-gio.svg?style=flat-square) ![z-gio](https://img.shields.io/npm/dt/z-gio.svg)\n\n\u003e growingio 命令行工具\n\n## 功能\n\n- 原始数据导出\n  - 下载数据报表并解压\n  - 下载缓存\n- 埋点数据上传\n- 验证埋点事件\n\n## 安装\n\n```sh\nnpm install -g z-gio\n```\n\n## 例子\n\n### 通用\n\n```sh\n# 执行 bind 绑定参数, 后面就不用每次都写 authorization 和 ai 了\nzgio bind --ai xxx --authorization xxxxx\n```\n\n**参数说明**\n\n\u003e 参数大多和官网保持一致\n\n[growingio - API 参考](https://growingio.gitbook.io/v3/developer-manual/api-reference/authenticate)\n\n| 名称          | 说明                           |\n| ------------- | ------------------------------ |\n| authorization | 接口请求所需的认证码，即 Token |\n| ai            | 项目 ID                        |\n\n### 下载报表\n\n```sh\n# 下载 2022112714 时间段的报表 并解压\nzgio export --export-date 2022112714\n\n# 下载 2022112714至2022112723 时间段的报表 并解压\nzgio export --export-date 2022112714-2022112723\n\n# 下载 2022112714 时间段的报表 并解压\nzgio export --export-date 2022112714 --ai xxx --authorization xxx --export-type hour --data-type custom_event\n```\n\n**参数说明**\n\n\u003e 参数大多和官网保持一致\n\n[growingio - API 参考](https://growingio.gitbook.io/v3/developer-manual/api-reference/authenticate)\n\n| 名称          | 说明                                                                    |    默认值    |\n| ------------- | ----------------------------------------------------------------------- | :----------: |\n| authorization | 接口请求所需的认证码，即 Token                                          |              |\n| ai            | 项目 ID                                                                 |              |\n| data_type     | 导出事件类型                                                            | custom_event |\n| export_type   | 导出任务类型，系统目前支持小时与天的导出，可选值：hour 或者 day         |     hour     |\n| export_date   | 导出数据时间，格式为 yyyyMMddHH (支持配置时段如: 2022112000-2022112023) |              |\n\n### 埋点数据上传\n\n```sh\nzgio track --event-id xxx\nzgio track --event-id xxx --data \"{\\\"a\\\": 1}\"\n```\n\n**参数说明**\n\n\u003e 参数大多和官网保持一致\n\n[growingio - API 参考](https://growingio.gitbook.io/v3/developer-manual/api-reference/authenticate)\n\n| 名称          | 说明                                                                    |    默认值    |\n| ------------- | ----------------------------------------------------------------------- | :----------: |\n| authorization | 接口请求所需的认证码，即 Token                                          |              |\n| ai            | 项目 ID                                                                 |              |\n| data_type     | 导出事件类型                                                            | custom_event |\n| export_type   | 导出任务类型，系统目前支持小时与天的导出，可选值：hour 或者 day         |     hour     |\n| export_date   | 导出数据时间，格式为 yyyyMMddHH (支持配置时段如: 2022112000-2022112023) |              |\n| event-id      | 埋点事件标识                                                            |              |\n| data          | 所有的自定义事件变量                                                    |              |\n\n### 验证埋点事件\n\n\u003e 用来快速验证埋点数据是否存在\n\n```sh\nzgio find --event-id xxx --export-date 2022112714\n```\n\n**参数说明**\n\n\u003e 参数大多和官网保持一致\n\n[growingio - API 参考](https://growingio.gitbook.io/v3/developer-manual/api-reference/authenticate)\n\n| 名称          | 说明                                                                    |    默认值    |\n| ------------- | ----------------------------------------------------------------------- | :----------: |\n| authorization | 接口请求所需的认证码，即 Token                                          |              |\n| ai            | 项目 ID                                                                 |              |\n| data_type     | 导出事件类型                                                            | custom_event |\n| export_type   | 导出任务类型，系统目前支持小时与天的导出，可选值：hour 或者 day         |     hour     |\n| export_date   | 导出数据时间，格式为 yyyyMMddHH (支持配置时段如: 2022112000-2022112023) |              |\n| event-id      | 埋点事件标识                                                            |              |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faooiuu%2Fz-gio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faooiuu%2Fz-gio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faooiuu%2Fz-gio/lists"}