{"id":14008211,"url":"https://github.com/mschneider82/sharecmd","last_synced_at":"2026-02-23T10:27:04.588Z","repository":{"id":98584148,"uuid":"158710427","full_name":"mschneider82/sharecmd","owner":"mschneider82","description":"Cmdline tool written in Golang to share file links using cloud providers like dropbox, opendrive, seafile, nextcloud","archived":false,"fork":false,"pushed_at":"2024-06-20T06:48:28.000Z","size":440,"stargazers_count":112,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-24T04:45:57.059Z","etag":null,"topics":["cli","cloud-storage","golang"],"latest_commit_sha":null,"homepage":"","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/mschneider82.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":"2018-11-22T14:24:22.000Z","updated_at":"2025-04-13T07:15:46.000Z","dependencies_parsed_at":"2024-08-10T11:02:50.898Z","dependency_job_id":"09de836e-d3ad-459d-b71c-7c5cd23dc43c","html_url":"https://github.com/mschneider82/sharecmd","commit_stats":null,"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/mschneider82/sharecmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschneider82%2Fsharecmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschneider82%2Fsharecmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschneider82%2Fsharecmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschneider82%2Fsharecmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mschneider82","download_url":"https://codeload.github.com/mschneider82/sharecmd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschneider82%2Fsharecmd/sbom","scorecard":{"id":665424,"data":{"date":"2025-08-11","repo":{"name":"github.com/mschneider82/sharecmd","commit":"cefdf81d96caa16c79ff6aceafa484de9e6853f8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/goreleaser.yml:10","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/mschneider82/sharecmd/goreleaser.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/mschneider82/sharecmd/goreleaser.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/goreleaser.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/mschneider82/sharecmd/goreleaser.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.126 not signed: https://api.github.com/repos/mschneider82/sharecmd/releases/161410871","Warn: release artifact v0.0.111 not signed: https://api.github.com/repos/mschneider82/sharecmd/releases/87877634","Warn: release artifact v0.0.110 not signed: https://api.github.com/repos/mschneider82/sharecmd/releases/87859662","Warn: release artifact v0.0.109 not signed: https://api.github.com/repos/mschneider82/sharecmd/releases/87858476","Warn: release artifact v0.0.106 not signed: https://api.github.com/repos/mschneider82/sharecmd/releases/28149131","Warn: release artifact v0.0.126 does not have provenance: https://api.github.com/repos/mschneider82/sharecmd/releases/161410871","Warn: release artifact v0.0.111 does not have provenance: https://api.github.com/repos/mschneider82/sharecmd/releases/87877634","Warn: release artifact v0.0.110 does not have provenance: https://api.github.com/repos/mschneider82/sharecmd/releases/87859662","Warn: release artifact v0.0.109 does not have provenance: https://api.github.com/repos/mschneider82/sharecmd/releases/87858476","Warn: release artifact v0.0.106 does not have provenance: https://api.github.com/repos/mschneider82/sharecmd/releases/28149131"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9","Warn: Project is vulnerable to: GO-2024-2978 / GHSA-xr7q-jx4m-x55m"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T17:50:51.483Z","repository_id":98584148,"created_at":"2025-08-21T17:50:51.483Z","updated_at":"2025-08-21T17:50:51.483Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28057702,"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-12-26T02:00:06.189Z","response_time":55,"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","cloud-storage","golang"],"created_at":"2024-08-10T11:01:25.385Z","updated_at":"2026-02-23T10:27:04.577Z","avatar_url":"https://github.com/mschneider82.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/mschneider82/sharecmd)](https://goreportcard.com/report/github.com/mschneider82/sharecmd) [![GoDoc](https://godoc.org/github.com/mschneider82/sharecmd?status.svg)](https://godoc.org/github.com/mschneider82/sharecmd)\n\n![gopher](gopher.png)\n\n# Go Share files!\n\nShare your files with your friends using cloud providers with just one command.\n\n# Supported Cloud Providers:\n\n* **HTTP Upload** — any server that accepts HTTP PUT (e.g. WebDAV, custom APIs)\n* Box\n* Dropbox\n* Google Drive\n* OpenDrive\n* Seafile (also private hosted)\n* Nextcloud / Owncloud\n* Any missing? Create an Issue or PR!\n\n# How to share?\n\n```\n$ share somedocument.pdf\nUploading somedocument.pdf\n\n████████████████████████████████████████  100%\n361 B / 361 B  120.3 KiB/s\n\nURL: https://drive.google.com/file/d/1C77TZ.../view?usp=sharing\nURL copied to clipboard!\n```\n\n# How to setup?\n\n```\n$ share --setup\n```\n\nAn interactive TUI guides you through the setup. You can configure multiple providers and switch between them.\n\n```\nShareCmd Setup  (active: my-dropbox)\n? What would you like to do?\n  \u003e Select active provider\n    Add new provider\n    Edit provider\n    Delete provider\n    Preferences\n    Quit\n```\n\n## Multiple providers\n\nYou can add as many provider configurations as you want, each with a unique label (e.g. `work-nextcloud`, `personal-dropbox`). Use **Select active provider** to switch between them.\n\n## Preferences\n\nUnder **Preferences** you can toggle:\n\n* **Copy URL to clipboard** — enabled by default\n* **QR code display** — enabled by default\n\n# How to install?\n\n[Download precompiled binaries](https://github.com/mschneider82/sharecmd/releases) for your OS\nor compile it from source.\n\n**Using Go:**\n```\ngo install schneider.vip/share@latest\n```\n\n**Using Snap (Linux):**\n```\nsnap install share\n```\n\n**Using Homebrew (macOS/Linux):**\n\n```\nbrew tap mschneider82/sharecmd https://github.com/mschneider82/sharecmd\nbrew install sharecmd\n```\n\n# CLI Usage\n\n```\n$ share [flags] [file] [provider]\n```\n\n| Flag | Description |\n|------|-------------|\n| `--setup`, `-s` | Launch interactive setup |\n| `--select`, `-p` | Select provider for this upload interactively |\n| `--version`, `-v` | Print version and exit |\n| `--config PATH` | Path to config file (default: `~/.config/sharecmd/config.json`) |\n\nIf no active provider is configured, setup launches automatically.\n\n## Provider Override\n\nYou can temporarily override the active provider by specifying its label as an argument. The order of arguments doesn't matter:\n\n```\n$ share filename.zip dropbox      # Upload to dropbox\n$ share dropbox filename.zip      # Same as above\n$ share my-nextcloud report.pdf   # Upload to provider labeled \"my-nextcloud\"\n```\n\nIf an argument matches a configured provider label, that provider is used instead of the default active provider.\n\n**Interactive provider selection:**\n\nUse the `--select` (or `-p`) flag to choose a provider interactively:\n\n```\n$ share --select document.pdf\n? Select provider for this upload\n  \u003e my-dropbox (dropbox)\n    work-nextcloud (nextcloud)\n    personal-gdrive (googledrive)\n```\n\nIf you provide an invalid provider name, an interactive menu appears automatically:\n\n```\n$ share dr document.pdf\nArgument \"dr\" is not a configured provider.\n? Select provider for this upload\n  \u003e my-dropbox (dropbox)\n    work-nextcloud (nextcloud)\n    personal-gdrive (googledrive)\n```\n\n# Notes\n\nShareCmd uploads the file to the configured cloud provider and creates a public\nshare link for anyone who has the link. The link is printed (with optional QR code)\nand optionally copied to the system clipboard (Windows/Linux/macOS).\n\nThe configuration is stored in `~/.config/sharecmd/config.json`. Old single-provider\nconfigs (v1) are automatically migrated to the new multi-provider format on first load.\n\n# Provider Notes\n\n## HTTP Upload\nUploads files via HTTP PUT to a configurable base URL. The file is PUT to `\u003cbase-url\u003e/\u003cfilename\u003e`.\n\nCustom HTTP headers can be added as JSON. Header values support Go template functions for dynamic values:\n\n| Function | Description | Example output |\n|----------|-------------|----------------|\n| `{{now \"2006-01-02\"}}` | Current date | `2026-02-19` |\n| `{{addDays N \"2006-01-02\"}}` | Date + N days | `2026-02-26` |\n\nExample header configuration for a purge-date header one week in the future:\n```json\n{\"x-purgets\": \"{{addDays 7 \\\"2006-01-02\\\"}}T16:09:09+02:00\"}\n```\n\n## Box\nUploads all files to `/sharecmd` (folder auto-generated). Re-uploading the same filename creates a new version.\n\n## Dropbox\nUploads all files to `/` (overwrite mode).\n\n## Google Drive\nUploads all files to `/sharecmd` (folder auto-generated).\n\n## OpenDrive\nUploads all files to `/sharecmd` (folder auto-generated).\n\n## Seafile\nCreates a new library called `sharecmd` on setup.\n\n## Nextcloud / Owncloud\nThe folder `/sharecmd` is auto-generated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschneider82%2Fsharecmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmschneider82%2Fsharecmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschneider82%2Fsharecmd/lists"}