{"id":17118952,"url":"https://github.com/chyroc/otp-cli","last_synced_at":"2025-07-15T16:08:14.009Z","repository":{"id":57570684,"uuid":"346352554","full_name":"chyroc/otp-cli","owner":"chyroc","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-21T13:51:34.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T16:13:27.030Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chyroc.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":"2021-03-10T12:41:54.000Z","updated_at":"2023-12-26T04:11:49.000Z","dependencies_parsed_at":"2024-06-20T10:23:45.160Z","dependency_job_id":"d14fcd4c-8319-4d7f-8575-02a21b97410e","html_url":"https://github.com/chyroc/otp-cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/chyroc/otp-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fotp-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fotp-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fotp-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fotp-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chyroc","download_url":"https://codeload.github.com/chyroc/otp-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fotp-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265444738,"owners_count":23766435,"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","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":"2024-10-14T17:55:52.313Z","updated_at":"2025-07-15T16:08:13.982Z","avatar_url":"https://github.com/chyroc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# otp-cli\n\nGenerate OTP Code Tool.\n\n## Install\n\n### By Go Get\n\n```shell\ngo install github.com/chyroc/otp-cli@latest\n```\n\n### By Brew\n\n```shell\nbrew tap chyroc/tap\nbrew install chyroc/tap/otp-cli\n```\n\n### By Docker\n\n```shell\ndocker pull ghcr.io/chyroc/otp-cli\n```\n\n## Usage\n\n```text\nNAME:\n   otp-cli - generate otp client\n\nUSAGE:\n   otp-cli [global options] command [command options] [arguments...]\n\nCOMMANDS:\n   version    show otp-cli version\n   set-scope  set scope secret\n   del-scope  delete scope secret\n   help, h    Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --secret value, -s value       otp secret text [$OTP_SECRET]\n   --secret-file value, -f value  otp secret file [$OTP_SECRET_FILE]\n   --scope value                  otp scope [$OTP_SCOPE]\n   --copy, -c                     copy to clipboard (default: false) [$OTP_COPY]\n   --quiet, -q                    not output to console (default: false) [$OTP_QUIET]\n   --help, -h                     show help\n```\n\n- ***generate from secret text string***\n\n```shell\notp-cli -s '\u003csecret\u003e'\n```\n\n- ***generate from secret file***\n\n```shell\notp-cli -f '\u003csecret file\u003e'\n```\n\n- ***generate from scope***\n\n```shell\n# first: config scope\notp-cli set-scope --name \u003cscope\u003e --secret \u003csecret\u003e\n\n# second: generate\notp-cli --scope \u003cscope\u003e\n```\n\n- ***generate and copy to clipboard***\n\n```shell\notp-cli -s '\u003csecret\u003e' -c\n```\n\n- ***generate, copy to clipboard and not output to console***\n\n```shell\notp-cli -s '\u003csecret\u003e' -c -q\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyroc%2Fotp-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchyroc%2Fotp-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyroc%2Fotp-cli/lists"}