{"id":50998876,"url":"https://github.com/thedavidweng/zenodo-cli","last_synced_at":"2026-06-20T12:04:03.578Z","repository":{"id":364175789,"uuid":"1266737097","full_name":"thedavidweng/zenodo-cli","owner":"thedavidweng","description":"Agent-friendly Zenodo CLI — single-binary tool for record management, file upload, and full InvenioRDM API access","archived":false,"fork":false,"pushed_at":"2026-06-19T04:04:50.000Z","size":205,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-19T04:12:13.650Z","etag":null,"topics":["api-client","cli","doi","go","invenio-rdm","open-science","research-data","zenodo"],"latest_commit_sha":null,"homepage":"https://thedavidweng.github.io/site/zenodo-cli/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedavidweng.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T22:56:05.000Z","updated_at":"2026-06-16T05:00:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thedavidweng/zenodo-cli","commit_stats":null,"previous_names":["thedavidweng/zenodo-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thedavidweng/zenodo-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedavidweng%2Fzenodo-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedavidweng%2Fzenodo-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedavidweng%2Fzenodo-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedavidweng%2Fzenodo-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedavidweng","download_url":"https://codeload.github.com/thedavidweng/zenodo-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedavidweng%2Fzenodo-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34568745,"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-06-20T02:00:06.407Z","response_time":98,"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":["api-client","cli","doi","go","invenio-rdm","open-science","research-data","zenodo"],"created_at":"2026-06-20T12:04:02.870Z","updated_at":"2026-06-20T12:04:03.573Z","avatar_url":"https://github.com/thedavidweng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://about.zenodo.org/static/img/icons/zenodo-icon-black.svg\" alt=\"zenodo-cli\" width=\"160\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ezenodo-cli\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Agent-friendly Zenodo CLI for records, files, search, and InvenioRDM API access.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/thedavidweng/zenodo-cli/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/thedavidweng/zenodo-cli/ci.yml?branch=main\u0026style=flat-square\u0026label=ci\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/thedavidweng/zenodo-cli/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/thedavidweng/zenodo-cli?style=flat-square\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/thedavidweng/zenodo-cli/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/thedavidweng/zenodo-cli?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/go-%3E%3D1.26-blue?style=flat-square\" alt=\"Go\"\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/thedavidweng/zenodo-cli\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/thedavidweng/zenodo-cli?style=flat-square\" alt=\"Go Report\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n`zenodo-cli` is a single-binary CLI for creating Zenodo records, uploading files, publishing drafts, searching public records, and calling the current InvenioRDM API directly.\n\n## Highlights\n\n- Single binary: no runtime, containers, or Python environment required\n- JSON-first: `--json` on every command with a consistent envelope\n- Safety gates: `--read-only`, `--dry-run`, and `--confirm` for remote mutations\n- Agent-ready: predictable exit codes, error categories, request IDs, and secret redaction\n- Sandbox support: test against `sandbox.zenodo.org` with `--sandbox` or `ZENODO_SANDBOX=1`\n\n## Why\n\nZenodo moved from the legacy deposit API to InvenioRDM in 2023. Tools built around `/api/deposit/depositions` can still install cleanly while failing on uploads and record management. `zenodo-cli` is built directly on the current `/api/records` API surface.\n\n**Used in production:** [全国村界数据集 / China Village Boundaries Dataset](https://zenodo.org/records/20664361) was uploaded and published with `zenodo-cli`: 875,140 records across 58 Shapefile datasets.\n\n\u003cdetails\u003e\n\u003csummary\u003eComparison with older Zenodo tools\u003c/summary\u003e\n\n| Tool | Language | API Version | Upload Works | CLI | Status |\n|------|----------|-------------|---------------|-----|--------|\n| **zenodo-cli** | Go | InvenioRDM | Yes | Yes | Active |\n| [zenodo-client](https://github.com/cthoyt/zenodo-client) | Python | Mixed old/new | No | Yes | Upload broken |\n| [zenodo](https://github.com/cheminfo/zenodo) | Node.js | InvenioRDM | Yes | No | Library only |\n| [zenodraft](https://github.com/zenodraft/zenodraft) | Node.js | Old deposit API | No | Yes | Deprecated API |\n| [zotzen-lib](https://github.com/OpenDevEd/zotzen-lib) | Node.js | Old deposit API | No | Yes | Unmaintained |\n| [zenodo-cli](https://github.com/OpenDevEd/zenodo-cli) | Node.js | Old deposit API | No | Yes | Deprecated |\n\n\u003c/details\u003e\n\n## Quickstart\n\n### Install\n\nRun the following on macOS or Linux:\n\n```shell\ncurl -fsSL https://raw.githubusercontent.com/thedavidweng/zenodo-cli/main/install.sh | sh\n```\n\nRun the following on Windows:\n\n```shell\npowershell -ExecutionPolicy ByPass -c \"irm https://raw.githubusercontent.com/thedavidweng/zenodo-cli/main/install.ps1 | iex\"\n```\n\nThe installer detects Homebrew automatically and uses it when available (recommended for easy upgrades). Otherwise it downloads the binary to `~/.local/bin`.\n\n\u003cdetails\u003e\n\u003csummary\u003eOther installation methods\u003c/summary\u003e\n\n**Homebrew Cask (macOS/Linux):**\n\n```shell\nbrew tap thedavidweng/tap\nbrew install --cask zenodo\n```\n\n**Go:**\n\n```shell\ngo install github.com/thedavidweng/zenodo-cli/cmd/zenodo@latest\n```\n\n**Manual download:** grab the archive for your platform from the [latest GitHub Release](https://github.com/thedavidweng/zenodo-cli/releases/latest), extract it, and place the `zenodo` binary on your `PATH`.\n\n**Build from source:**\n\n```shell\ngit clone https://github.com/thedavidweng/zenodo-cli.git\ncd zenodo-cli\nmake build\n```\n\n\u003c/details\u003e\n\n### Set up\n\n```shell\nzenodo auth login --token YOUR_TOKEN\nzenodo doctor\n```\n\nGet a token at https://zenodo.org/account/settings/applications/tokens/\n\nThen try it:\n\n```shell\nzenodo records create --title \"My Dataset\" --description \"A research dataset\"\nzenodo files upload RECORD_ID ./data.csv\nzenodo records publish RECORD_ID --confirm\n```\n\n### Uninstall\n\n```shell\n# Homebrew Cask\nbrew uninstall --cask zenodo\n\n# install.sh\ncurl -fsSL https://raw.githubusercontent.com/thedavidweng/zenodo-cli/main/install.sh | sh -s uninstall\n\n# Go\nrm \"$(go env GOPATH)/bin/zenodo\"\n```\n\nRemove config if desired: `rm -rf ~/.config/zenodo-cli`\n\n## Documentation\n\n- [Command Reference](docs/commands.md) — all commands with flags, examples, and configuration\n- [Authentication](docs/auth.md) — token setup, profiles, sandbox mode\n- [Safety Model](docs/safety.md) — `--read-only`, `--dry-run`, `--confirm` gates\n- [JSON Contract](docs/json-contract.md) — envelope schema, output modifiers\n- [Global Flags \u0026 Environment Variables](docs/flags.md) — all CLI flags and env vars\n- [Architecture](docs/ARCHITECTURE.md) — codebase structure and design decisions\n- [Agent Guide](docs/agent-guide.md) — scripting, JSON mode, exit codes\n\n## Infrastructure\n\n- **CI/CD:** [cli-workflow-template](https://github.com/thedavidweng/cli-workflow-template) — reusable GitHub Actions workflows\n- **Docs:** [site](https://github.com/thedavidweng/site) — landing page and documentation\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedavidweng%2Fzenodo-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedavidweng%2Fzenodo-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedavidweng%2Fzenodo-cli/lists"}