{"id":50510235,"url":"https://github.com/bitcomplete/pin-cli","last_synced_at":"2026-06-02T19:31:44.878Z","repository":{"id":359961653,"uuid":"1247963773","full_name":"bitcomplete/pin-cli","owner":"bitcomplete","description":"Command-line client for pin (HTML sharing service)","archived":false,"fork":false,"pushed_at":"2026-05-24T09:45:56.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T11:27:29.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bitcomplete.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-05-24T02:29:11.000Z","updated_at":"2026-05-24T09:45:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bitcomplete/pin-cli","commit_stats":null,"previous_names":["bitcomplete/pin-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bitcomplete/pin-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fpin-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fpin-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fpin-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fpin-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcomplete","download_url":"https://codeload.github.com/bitcomplete/pin-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fpin-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33834010,"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-02T02:00:07.132Z","response_time":109,"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":[],"created_at":"2026-06-02T19:31:44.328Z","updated_at":"2026-06-02T19:31:44.860Z","avatar_url":"https://github.com/bitcomplete.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pin-cli\n\nCommand-line client for pin — a tiny tool for sharing HTML files behind Google SSO.\n\n## Install\n\n```sh\nbrew install bitcomplete/tap/pin\n```\n\nOr `go install github.com/bitcomplete/pin-cli@latest` if you'd rather build from source.\n\n## Use\n\n```sh\npin login                       # one-time, opens browser → Google SSO\npin share /tmp/report.html      # → https://pin.bitcomplete.dev/p/01HX...\n```\n\nSubcommands:\n\n| Command | What |\n|---|---|\n| `pin login [--device]` | Sign in. `--device` for SSH / headless boxes. |\n| `pin share \u003cfile\u003e` | Upload an HTML or MDX file. Prints the share URL. |\n| `pin get \u003cid-or-url\u003e` | Fetch a share's MDX source to stdout. `--html` for the rendered form. |\n| `pin components` | List the MDX components available in pin, grouped by category. |\n| `pin components get \u003cName\u003e` | Show one component's props + example. |\n| `pin components dump` | Print every component's full detail. |\n| `pin whoami` | Show the currently-logged-in email. |\n| `pin logout` | Revoke the refresh token + clear local creds. |\n| `pin version` | Print the CLI version. |\n\nEnvironment variables:\n\n| Var | Default | What |\n|---|---|---|\n| `PIN_HOST` | `https://pin.bitcomplete.dev` | Override the pin instance. |\n| `PIN_AGENT` | `pin-cli@\u003chostname\u003e` | Label sent with auth + upload requests for audit. |\n\nCredentials are stored in your OS keychain (macOS Keychain / Windows Credential Manager / libsecret on Linux) with a 0600 file fallback at `~/.config/pin/credentials.json` for headless boxes.\n\n## How auth works\n\n`pin login` does an OAuth 2.1 PKCE loopback flow against the pin server (which in turn handles Google SSO for the human). `pin login --device` falls back to the RFC 8628 device-code flow when no local browser is available.\n\nRefresh tokens are rotated on every use; reuse triggers family revocation. If a CI script's stored token gets exfiltrated and used elsewhere, the next legitimate refresh detects it and locks everyone out — `pin login` again to recover.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcomplete%2Fpin-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcomplete%2Fpin-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcomplete%2Fpin-cli/lists"}