{"id":51678107,"url":"https://github.com/haijima/spreadit","last_synced_at":"2026-07-15T09:03:25.608Z","repository":{"id":143372013,"uuid":"603780518","full_name":"haijima/spreadit","owner":"haijima","description":"CLI to add csv data to Google Sheets","archived":false,"fork":false,"pushed_at":"2024-10-25T03:46:38.000Z","size":114,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-26T17:18:41.347Z","etag":null,"topics":["cli","command-line","csv","go","golang","google-spreadsheet"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/haijima/spreadit","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/haijima.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-19T15:00:28.000Z","updated_at":"2024-10-25T03:46:42.000Z","dependencies_parsed_at":"2024-03-23T12:09:15.056Z","dependency_job_id":"f752e6ef-693e-4007-834b-08d706756cff","html_url":"https://github.com/haijima/spreadit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/haijima/spreadit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haijima%2Fspreadit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haijima%2Fspreadit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haijima%2Fspreadit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haijima%2Fspreadit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haijima","download_url":"https://codeload.github.com/haijima/spreadit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haijima%2Fspreadit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35498251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"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","command-line","csv","go","golang","google-spreadsheet"],"created_at":"2026-07-15T09:03:24.737Z","updated_at":"2026-07-15T09:03:25.596Z","avatar_url":"https://github.com/haijima.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spreadit\n\n[![CI Status](https://github.com/haijima/spreadit/workflows/CI/badge.svg?branch=main)](https://github.com/haijima/spreadit/actions)\n[![Go Reference](https://pkg.go.dev/badge/github.com/haijima/spreadit.svg)](https://pkg.go.dev/github.com/haijima/spreadit)\n[![Go report](https://goreportcard.com/badge/github.com/haijima/spreadit)](https://goreportcard.com/report/github.com/haijima/spreadit)\n\n`spreadit` is a simple CLI tool to write CSV data to Google Sheets.\n\n## Usage\n\n``` sh\nspreadit --id \u003cspreadsheet_id\u003e --title \u003ctitle\u003e [--file \u003cfile\u003e] [--range \u003crange\u003e] [--append]\n```\n\n### Examples\n\n``` sh\n# specify csv file\nspreadit --file data.csv --id 1X2Y3Z4W5V6U7T8S9R0Q --title 'New Sheet'\n\n# or pipe data\ncat data.csv | spreadit --id 1X2Y3Z4W5V6U7T8S9R0Q --title 'New Sheet'\n\n# or redirect into stdin\nspreadit --id 1X2Y3Z4W5V6U7T8S9R0Q --title 'New Sheet' \u003c data.csv\n```\n\n### Options\n\n| Option          | Type   | Description                                                | Default |\n|-----------------|--------|------------------------------------------------------------|---------|\n| `--id` `-i`     | string | Spreadsheet ID                                             |         |\n| `--title` `-t`  | string | Sheet title                                                |         |\n| `--file` `-f`   | string | CSV file path. If not specified read from stdin (optional) |         |\n| `--range` `-r`  | string | Range to write (optional)                                  | \"A1\"    |\n| `--append` `-a` | bool   | Append data to the end of the sheet (optional)             | false   |\n| `--format`      | string | Input format. `csv` or `tsv` (optional)                    | \"csv\"   |\n| `--config`      | string | Config file path (optional)                                |         |\n\n### Config file\n\nYou can specify the default options in the config file.\n\n``` yaml\n# ~/.config/spreadit/.spreadit.yaml\nid: 1X2Y3Z4W5V6U7T8S9R0Q\ntitle: New Sheet\nfile: data.csv\nrange: A1\nappend: true\nformat: csv\n```\n\nConfig file is searched in the following order:\n\n1. `--config` option\n2. `$CURRENT_DIR/.spreadit.yaml`\n3. `$XDG_CONFIG_HOME/spreadit/.spreadit.yaml`\n4. `$HOME/.config/spreadit/.spreadit.yaml` when `$XDG_CONFIG_HOME` is not set\n5. `$HOME/.spreadit.yaml`\n\n[YAML](https://yaml.org/), [JSON](https://www.json.org/json-en.html) or [TOML](https://toml.io/en/) format is supported.\n\n## Requirements\n\n`spreadit` requires the Application Default Credentials (ADC) with below scopes\n- `https://www.googleapis.com/auth/spreadsheets`\n\nSee [here](https://cloud.google.com/docs/authentication/provide-credentials-adc) for more details.\n\n```\ngcloud auth application-default login --scopes=https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/spreadsheets   \n```\n\n## Install\n\nYou can install `spreadit` using the following command:\n\n``` sh\ngo install github.com/haijima/spreadit@latest\n```\n\nMacOS users can install stool using [Homebrew](https://brew.sh/) (See also [haijima/homebrew-tap](http://github.com/haijima/homebrew-tap)):\n\n``` sh\nbrew install haijima/tap/spreadit\n```\n\nor you can download binaries from [Releases](https://github.com/haijima/spreadit/releases).\n\n## License\n\nThis tool is licensed under the MIT License. See the [LICENSE](https://github.com/haijima/spreadit/blob/main/LICENSE)\nfile for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaijima%2Fspreadit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaijima%2Fspreadit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaijima%2Fspreadit/lists"}