{"id":19264620,"url":"https://github.com/cappyzawa/op-kv","last_synced_at":"2026-06-19T11:01:26.879Z","repository":{"id":57575330,"uuid":"170514888","full_name":"cappyzawa/op-kv","owner":"cappyzawa","description":"A command-line tool for using op (https://support.1password.com/command-line/) like as key-value","archived":false,"fork":false,"pushed_at":"2021-04-06T20:37:58.000Z","size":74,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-15T04:29:12.650Z","etag":null,"topics":["1password-cli","cli","go"],"latest_commit_sha":null,"homepage":"","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/cappyzawa.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}},"created_at":"2019-02-13T13:43:24.000Z","updated_at":"2021-04-08T02:33:53.000Z","dependencies_parsed_at":"2022-09-26T19:01:56.608Z","dependency_job_id":null,"html_url":"https://github.com/cappyzawa/op-kv","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/cappyzawa/op-kv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fop-kv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fop-kv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fop-kv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fop-kv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cappyzawa","download_url":"https://codeload.github.com/cappyzawa/op-kv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cappyzawa%2Fop-kv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34528144,"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-19T02:00:06.005Z","response_time":61,"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":["1password-cli","cli","go"],"created_at":"2024-11-09T19:41:52.181Z","updated_at":"2026-06-19T11:01:26.826Z","avatar_url":"https://github.com/cappyzawa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# op-kv \n[![Actions Status](https://github.com/cappyzawa/op-kv/workflows/CI/badge.svg)](https://github.com/cappyzawa/op-kv/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cappyzawa/op-kv)](https://goreportcard.com/report/github.com/cappyzawa/op-kv)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThis CLI can use op (https://support.1password.com/command-line/) like as key-value.\n\n## Install\ngo\n```bash\n$ go get github.com/cappyzawa/op-kv/cmd/op-kv\n```\n\n[zdharma/zplugin](https://github.com/zdharma/zplugin)\n```zsh\nzplugin ice wait'2' lucid as\"program\" from\"gh-r\" \\\n  has\"op\"\nzplugin light cappyzawa/op-kv\n```\n\n## Required\n* `op`: [1Password command\\-line tool: Full documentation](https://support.1password.com/command-line/)\n\n## Usage\nThis cli required `$XDG_CONFIG_HOME/.op/config` (or `$HOME/.op/config`) file. This file is created by executing [`op signin`](https://support.1password.com/command-line/#sign-in-or-out).\n```bash\n$ op signin -h\nusage: op signin \u003csigninaddress\u003e \u003cemailaddress\u003e\n\nExample account details:\n\n   \u003csigninaddress\u003e   example.1password.com\n   \u003cemailaddress\u003e    user@example.com\n```\n\nIf you set `OP_PASSWORD` as master password to ENV var, `op-kv` command is very easy.\n\n```bash\n$ op-kv -h\nuse \"op\" like as kv\n\nUsage:\n  op-kv [flags]\n  op-kv [command]\n\nAvailable Commands:\n  help        Help about any command\n  list        Display item titles\n  read        Display one password of specified item by UUID or name\n  write       Generate one password by specified item and password\n\nFlags:\n  -h, --help                 help for op-kv\n      --op-password string   password for 1password \n  -d, --subdomain string     subdomain of 1password\n\nUse \"op-kv [command] --help\" for more information about a command.\n```\n\nif `-p` is not set, `$OP_PASSWORD` is used as password.\n\nAnd if `-d` is not set, this cli access to latest signin subdomain.\n\n### write\n```bash\n$ op-kv write -h \nGenerate one password by specified item and password\n\nUsage:\n  op-kv write \u003ckey\u003e \u003cvalue\u003e [flags]\n\nFlags:\n  -h, --help              help for write\n  -p, --password string   register password to item(key)\n  -u, --username string   register username to item(key)\n\nGlobal Flags:\n      --op-password string   password for 1password ()\n  -d, --subdomain string     subdomain of 1password ()\n```\n\n```bash\n$ op-kv write -p testPassword testItem\nsuccess to write password (testPassword) and username () to \"testItem\"\n```\n\nThis Command is same as below.\n\n```bash\n$ D=$(op get template login | jq -c '.fields[1].value = testPassword' | op encode)\n$ op create item login $D --title=testItem\n```\n\nThis can adjust only _login_ template.\n\n### Read\n```bash\n$ op-kv read -h\nDisplay one password of specified item by UUID or name\n\nUsage:\n  op-kv read \u003ckey\u003e [flags]\n\nFlags:\n  -h, --help    help for read\n      --table   Print username and password of the item as Table\n\nGlobal Flags:\n      --op-password string   password for 1password\n  -d, --subdomain string     subdomain of 1password\n```\n\n```bash\n$ op-kv read testItem\ntestPassword\n```\n\nThis Command is same as below.\n\n```bash\n$ op get item testItem | jq -r '.details.fields[] | select(.designation==\"password\").value'\n```\nThis can adjust only _item_ subcommand.\n\nIf you want to display username \u0026 password, you can use table flag.\n\n```bash\n$ op-kv write testTable -u testUsername -p testPassword\nsuccess to write password (testPassword) and username (testUsername) to \"testTable\"\n\n$ op-kv read testTable --table\n| USERNAME                      | PASSWORD                                                    |\n-----------------------------------------------------------------------------------------------\n| testUsername                  | testPassword                                                |\n\n```\n\n### list\n```bash\n$ op-kv list -h\nDisplay item titles\n\nUsage:\n  op-kv list [flags]\n\nFlags:\n  -h, --help   help for list\n```\n\nThis Command is same as below.\n\n```bash\n$ op list items | jq -r \".[].overview.title\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappyzawa%2Fop-kv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcappyzawa%2Fop-kv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcappyzawa%2Fop-kv/lists"}