{"id":41758369,"url":"https://github.com/x-color/google-oauth-cli","last_synced_at":"2026-01-25T02:04:36.313Z","repository":{"id":57709661,"uuid":"509684164","full_name":"x-color/google-oauth-cli","owner":"x-color","description":"It is a tool to be authorized with OAuth 2.0(Authorization Code Flow with Proof Key for Code Exchange) and access Google API.","archived":false,"fork":false,"pushed_at":"2022-07-07T11:27:30.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T12:54:36.436Z","etag":null,"topics":["cli","golang","google","oauth2"],"latest_commit_sha":null,"homepage":"","language":"Go","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/x-color.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-07-02T07:04:05.000Z","updated_at":"2023-04-01T02:11:14.000Z","dependencies_parsed_at":"2022-09-14T13:11:23.810Z","dependency_job_id":null,"html_url":"https://github.com/x-color/google-oauth-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x-color/google-oauth-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-color%2Fgoogle-oauth-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-color%2Fgoogle-oauth-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-color%2Fgoogle-oauth-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-color%2Fgoogle-oauth-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-color","download_url":"https://codeload.github.com/x-color/google-oauth-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-color%2Fgoogle-oauth-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28741642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:40:51.112Z","status":"online","status_checked_at":"2026-01-25T02:00:06.841Z","response_time":113,"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":["cli","golang","google","oauth2"],"created_at":"2026-01-25T02:04:35.609Z","updated_at":"2026-01-25T02:04:36.308Z","avatar_url":"https://github.com/x-color.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google OAuth CLI\n\nIt is a tool to be authorized with OAuth 2.0(Authorization Code Flow with Proof Key for Code Exchange) and access Google API.\n\nRead [this blog](https://zenn.dev/x_color/articles/google-oauth-cli) for details.\n\n## Usage\n\nBefore using the cli, you must prepare Google OAuth Client settings. See https://developers.google.com/identity/protocols/oauth2/native-app#prerequisites.\n\nInstall the cli\n\n```\n$ go install github.com/x-color/google-oauth-cli@latest\n$ google-oauth-cli\nThis command has login, logout, email commands. Please use them.\n```\n\nSet environment variables\n\n```\n$ export CLIENT_ID=\u003cCLIENT ID\u003e\n$ export CLIENT_SECRET=\u003cCLIENT SECRET\u003e\n```\n\nAuthorize the cli with OAuth\n\n```\n$ google-oauth-cli login\n```\n\nGet your google account's mail address\n\n```\n$ google-oauth-cli email\nYour email address is \u003cYOUR ADDRESS\u003e\n```\n\nRemove a token\n\n```\n$ google-oauth-cli logout\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-color%2Fgoogle-oauth-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-color%2Fgoogle-oauth-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-color%2Fgoogle-oauth-cli/lists"}