[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"package:cask:1password-cli:zh":3,"releases:stats:cask:1password-cli:zh":22},{"accentColor":4,"artifacts":5,"autoUpdates":38,"categories":39,"conflictsWith":45,"dependsOn":50,"deprecated":38,"description":57,"descriptionEn":58,"developer":59,"disabled":38,"displayName":60,"downloadSha256":61,"downloadSize":62,"downloadUrl":63,"editorChoice":38,"formulaeUrl":64,"homepage":65,"iconUrl":66,"installCommand":67,"installs":68,"installs30d":69,"isFont":38,"isLibrary":38,"kegOnly":38,"kind":72,"latestRelease":73,"machineTranslated":76,"name":60,"names":103,"platforms":105,"primaryCategory":535,"rank30d":536,"releaseCount":537,"releaseStats":538,"screenshots":544,"sourceLocale":97,"sourceUrl":552,"summary":553,"summaryTranslation":554,"supports":555,"tags":557,"tap":562,"token":104,"version":102,"versionChangedAt":78},"#3A95F1",{"apps":6,"binaries":7,"entries":9,"pkgs":37},[],[8],"op",[10,17,29],{"declaration":11,"phase":14,"sources":15,"target":13,"type":16},{"binary":12,"target":13},[8],"$HOMEBREW_PREFIX\u002Fbin\u002Fop","install",[8],"binary",{"declaration":18,"phase":14,"sources":27,"type":28},{"generate_completions_from_executable":19},[8,20,21],"completion",{"base_name":22,"shell_parameter_format":22,"shells":23},null,[24,25,26],"bash","zsh","fish",[8,20],"generate_completions_from_executable",{"declaration":30,"phase":34,"sources":35,"type":36},{"zap":31},[32],{"trash":33},"~\u002F.config\u002Fop","cleanup",[],"zap",[],false,[40],{"icon":41,"machineTranslated":38,"name":42,"slug":43,"sourceLocale":44},"lucide:shield","安全与隐私","security","zh-CN",{"casks":46,"formulae":49},[47,48],"1password-cli@1","1password-cli@beta",[],{"arch":51,"casks":54,"formulae":55,"requirements":56},[52,53],"arm64","x86_64",[],[],{},"1Password CLI 将 1Password 保管库和开发者机密带入终端。`op` 命令面向开发者、管理员和自动化使用场景，这些场景需要对凭据进行受控访问，而无需在脚本中硬编码凭据。\n\n## 主要功能\n- 使用命令行命令查找和管理保管库与条目。\n- 通过 `op:\u002F\u002F` 引用读取机密；使用 `op run` 将它们加载到子进程中，或使用 `op inject` 将它们替换到配置模板中。\n- 通过 1Password 桌面应用进行身份验证（包括受支持的生物识别身份验证），或使用作用域限定为所选保管库或 Environments 的服务账户令牌，用于无头自动化。\n- 为 Bash、Zsh 和 Fish 生成 shell 补全。单独的 1Password Shell Plugins 可将身份验证与受支持的第三方开发者工具集成。\n\n## 安装与首次使用\n在 macOS 上，使用 `brew install --cask 1password-cli` 安装此 Homebrew cask，然后检查 `op --version`。Homebrew 会将 `op` 链接到其二进制目录中，并生成 shell 补全。对于桌面应用身份验证，请安装并登录 1Password 桌面应用，启用 Settings → Developer → Integrate with 1Password CLI，然后尝试 `op vault list`。有多个账户时，`op signin` 会选择账户。对于共享构建和无头服务器，建议改用服务账户；仅配置自动化所需的访问权限。\n\n## 系统、依赖项与冲突\n官方 macOS 入门指南指定 macOS Big Sur 11 或更高版本，以及 Bash、Zsh、sh 或 Fish。官方下载支持 Apple Silicon 和 Intel Macs。Windows 和 Linux 构建版本单独提供：Windows 文档使用 PowerShell；Linux 桌面集成需要 1Password for Linux、PolKit 以及正在运行的 PolKit 身份验证代理。桌面应用集成需要安装相应的 1Password 应用，并拥有符合条件的已登录账户；它不同于服务账户身份验证。此目录条目安装的是 macOS CLI，而不是桌面应用。Homebrew 声明此 cask 没有额外的 formula 依赖项，并声明与 `1password-cli@1` 和 `1password-cli@beta` 冲突；这些替代 cask 也提供 `op`，不应与此 cask 一起安装。\n\n## 账户、费用与许可\n使用个人保管库需要 1Password 账户和订阅；服务账户访问取决于账户可用的功能和权限。订阅计划、试用和商业条款由 1Password 定义。CLI 是专有软件，依据 1Password 的适用条款分发；单独的开源 Shell Plugins 项目并不确立完整 CLI 的许可证。尚未找到完整 CLI 的公开源代码仓库。\n\n`op run` 的输出掩码是尽力而为的，并不保证机密会被隐藏。避免记录机密或提交生成的包含机密的文件。\n\n官方参考：[CLI 概览](https:\u002F\u002Fwww.1password.dev\u002Fcli)、[入门](https:\u002F\u002Fwww.1password.dev\u002Fcli\u002Fget-started)、[发行说明](https:\u002F\u002Freleases.1password.com\u002Fdevelopers\u002Fcli\u002F)和[服务条款](https:\u002F\u002F1password.com\u002Flegal\u002Fterms-of-service)。","Command-line interface for 1Password","1Password (AgileBits Inc.)","1Password CLI","43b9e7c245b48207c789ba1b8a481ccf4a658f60dbed8cc8b70d36044548a994",14005767,"https:\u002F\u002Fcache.agilebits.com\u002Fdist\u002F1P\u002Fop2\u002Fpkg\u002Fv2.40.0\u002Fop_darwin_arm64_v2.40.0.zip","https:\u002F\u002Fformulae.brew.sh\u002Fcask\u002F1password-cli","https:\u002F\u002Fdeveloper.1password.com\u002Fdocs\u002Fcli","https:\u002F\u002Fcdn.opennavo.com\u002Ficons\u002Fuploads\u002Fde9c97fb9de0\u002F94f053ebc64b-256.png","brew install --cask 1password-cli",{"d30":69,"d365":70,"d90":71},13514,373848,58075,"cask",{"bodyMarkdown":74,"brewCommittedAt":75,"hasNotes":76,"id":77,"isLatest":76,"isPrerelease":38,"machineTranslated":76,"publishedAt":78,"sections":79,"source":96,"sourceLocale":97,"summary":98,"title":99,"translation":100,"version":102},"# 1Password CLI 2.40.0\n\n发布于 2026-10-01。\n\nGoogle Workspace 预配、更快的保管库处理以及安全维护。\n\n无可读保管库的账户（包括使用 1Password Environments 的账户）不再为每个命令重新获取完整的保管库列表。Go 和 golang.org\u002Fx 依赖项更新修复了已知的安全漏洞。op run 帮助文本现在明确将 stdout\u002Fstderr 遮蔽描述为尽力而为。\n\n## 功能\n- 使用 op provisioning google sync 添加 Google Workspace 预配功能。\n\n## 性能\n- 当没有可读保管库时，避免重复进行完整的保管库查找。\n\n## 安全\n- 将 Go 更新至 1.26.8，并更新 x\u002Fcrypto、x\u002Fnet 和 x\u002Ftext 依赖项。\n\n## 文档\n- 澄清 op run 的输出遮蔽不能保证机密隐藏。\n\n[官方 1Password CLI 发布说明](https:\u002F\u002Freleases.1password.com\u002Fdevelopers\u002Fcli\u002F)。","2026-10-02T21:33:58Z",true,335,"2026-10-07T09:38:25.801627Z",[80,84,88,92],{"area":81,"items":82},"功能",[83],"添加通过 op provisioning google sync 进行 Google Workspace 预配的功能。",{"area":85,"items":86},"性能",[87],"当不存在可读取的保险库时，避免重复进行完整的保险库查找。",{"area":89,"items":90},"安全",[91],"将 Go 更新至 1.26.8，并更新 x\u002Fcrypto、x\u002Fnet 和 x\u002Ftext 依赖项。",{"area":93,"items":94},"文档",[95],"说明 op run 的输出掩码无法保证隐藏机密。","editorial","en-US","Google Workspace 预配、更快的保险库处理和安全维护。","1Password CLI 2.40.0",{"locale":44,"machineTranslated":76,"sourceLocale":97,"status":101},"machine","2.40.0",[60,104],"1password-cli",[106,139,169,200,230,261,291,322,352,383,413,444,474,505],{"arch":53,"artifacts":107,"conflictsWith":127,"dependsOn":130,"downloadSha256":135,"downloadUrl":136,"macos":137,"requiresRosetta":38,"tag":138,"version":102},{"apps":108,"binaries":109,"entries":110,"pkgs":126},[],[8],[111,115,121],{"declaration":112,"phase":14,"sources":114,"target":13,"type":16},{"binary":113,"target":13},[8],[8],{"declaration":116,"phase":14,"sources":120,"type":28},{"generate_completions_from_executable":117},[8,20,118],{"base_name":22,"shell_parameter_format":22,"shells":119},[24,25,26],[8,20],{"declaration":122,"phase":34,"sources":125,"type":36},{"zap":123},[124],{"trash":33},[],[],{"casks":128,"formulae":129},[47,48],[],{"arch":131,"casks":132,"formulae":133,"requirements":134},[53],[],[],{},"a435e0257ea35db77efca2c668d0faec20502d4c7e1f250a8dee59a10a5d985c","https:\u002F\u002Fcache.agilebits.com\u002Fdist\u002F1P\u002Fop2\u002Fpkg\u002Fv2.40.0\u002Fop_darwin_amd64_v2.40.0.zip","27","golden_gate",{"arch":52,"artifacts":140,"conflictsWith":160,"dependsOn":163,"downloadSha256":61,"downloadUrl":63,"macos":137,"requiresRosetta":38,"tag":168,"version":102},{"apps":141,"binaries":142,"entries":143,"pkgs":159},[],[8],[144,148,154],{"declaration":145,"phase":14,"sources":147,"target":13,"type":16},{"binary":146,"target":13},[8],[8],{"declaration":149,"phase":14,"sources":153,"type":28},{"generate_completions_from_executable":150},[8,20,151],{"base_name":22,"shell_parameter_format":22,"shells":152},[24,25,26],[8,20],{"declaration":155,"phase":34,"sources":158,"type":36},{"zap":156},[157],{"trash":33},[],[],{"casks":161,"formulae":162},[47,48],[],{"arch":164,"casks":165,"formulae":166,"requirements":167},[52],[],[],{},"arm64_golden_gate",{"arch":53,"artifacts":170,"conflictsWith":190,"dependsOn":193,"downloadSha256":135,"downloadUrl":136,"macos":198,"requiresRosetta":38,"tag":199,"version":102},{"apps":171,"binaries":172,"entries":173,"pkgs":189},[],[8],[174,178,184],{"declaration":175,"phase":14,"sources":177,"target":13,"type":16},{"binary":176,"target":13},[8],[8],{"declaration":179,"phase":14,"sources":183,"type":28},{"generate_completions_from_executable":180},[8,20,181],{"base_name":22,"shell_parameter_format":22,"shells":182},[24,25,26],[8,20],{"declaration":185,"phase":34,"sources":188,"type":36},{"zap":186},[187],{"trash":33},[],[],{"casks":191,"formulae":192},[47,48],[],{"arch":194,"casks":195,"formulae":196,"requirements":197},[53],[],[],{},"26","tahoe",{"arch":52,"artifacts":201,"conflictsWith":221,"dependsOn":224,"downloadSha256":61,"downloadUrl":63,"macos":198,"requiresRosetta":38,"tag":229,"version":102},{"apps":202,"binaries":203,"entries":204,"pkgs":220},[],[8],[205,209,215],{"declaration":206,"phase":14,"sources":208,"target":13,"type":16},{"binary":207,"target":13},[8],[8],{"declaration":210,"phase":14,"sources":214,"type":28},{"generate_completions_from_executable":211},[8,20,212],{"base_name":22,"shell_parameter_format":22,"shells":213},[24,25,26],[8,20],{"declaration":216,"phase":34,"sources":219,"type":36},{"zap":217},[218],{"trash":33},[],[],{"casks":222,"formulae":223},[47,48],[],{"arch":225,"casks":226,"formulae":227,"requirements":228},[52],[],[],{},"arm64_tahoe",{"arch":53,"artifacts":231,"conflictsWith":251,"dependsOn":254,"downloadSha256":135,"downloadUrl":136,"macos":259,"requiresRosetta":38,"tag":260,"version":102},{"apps":232,"binaries":233,"entries":234,"pkgs":250},[],[8],[235,239,245],{"declaration":236,"phase":14,"sources":238,"target":13,"type":16},{"binary":237,"target":13},[8],[8],{"declaration":240,"phase":14,"sources":244,"type":28},{"generate_completions_from_executable":241},[8,20,242],{"base_name":22,"shell_parameter_format":22,"shells":243},[24,25,26],[8,20],{"declaration":246,"phase":34,"sources":249,"type":36},{"zap":247},[248],{"trash":33},[],[],{"casks":252,"formulae":253},[47,48],[],{"arch":255,"casks":256,"formulae":257,"requirements":258},[53],[],[],{},"15","sequoia",{"arch":52,"artifacts":262,"conflictsWith":282,"dependsOn":285,"downloadSha256":61,"downloadUrl":63,"macos":259,"requiresRosetta":38,"tag":290,"version":102},{"apps":263,"binaries":264,"entries":265,"pkgs":281},[],[8],[266,270,276],{"declaration":267,"phase":14,"sources":269,"target":13,"type":16},{"binary":268,"target":13},[8],[8],{"declaration":271,"phase":14,"sources":275,"type":28},{"generate_completions_from_executable":272},[8,20,273],{"base_name":22,"shell_parameter_format":22,"shells":274},[24,25,26],[8,20],{"declaration":277,"phase":34,"sources":280,"type":36},{"zap":278},[279],{"trash":33},[],[],{"casks":283,"formulae":284},[47,48],[],{"arch":286,"casks":287,"formulae":288,"requirements":289},[52],[],[],{},"arm64_sequoia",{"arch":53,"artifacts":292,"conflictsWith":312,"dependsOn":315,"downloadSha256":135,"downloadUrl":136,"macos":320,"requiresRosetta":38,"tag":321,"version":102},{"apps":293,"binaries":294,"entries":295,"pkgs":311},[],[8],[296,300,306],{"declaration":297,"phase":14,"sources":299,"target":13,"type":16},{"binary":298,"target":13},[8],[8],{"declaration":301,"phase":14,"sources":305,"type":28},{"generate_completions_from_executable":302},[8,20,303],{"base_name":22,"shell_parameter_format":22,"shells":304},[24,25,26],[8,20],{"declaration":307,"phase":34,"sources":310,"type":36},{"zap":308},[309],{"trash":33},[],[],{"casks":313,"formulae":314},[47,48],[],{"arch":316,"casks":317,"formulae":318,"requirements":319},[53],[],[],{},"14","sonoma",{"arch":52,"artifacts":323,"conflictsWith":343,"dependsOn":346,"downloadSha256":61,"downloadUrl":63,"macos":320,"requiresRosetta":38,"tag":351,"version":102},{"apps":324,"binaries":325,"entries":326,"pkgs":342},[],[8],[327,331,337],{"declaration":328,"phase":14,"sources":330,"target":13,"type":16},{"binary":329,"target":13},[8],[8],{"declaration":332,"phase":14,"sources":336,"type":28},{"generate_completions_from_executable":333},[8,20,334],{"base_name":22,"shell_parameter_format":22,"shells":335},[24,25,26],[8,20],{"declaration":338,"phase":34,"sources":341,"type":36},{"zap":339},[340],{"trash":33},[],[],{"casks":344,"formulae":345},[47,48],[],{"arch":347,"casks":348,"formulae":349,"requirements":350},[52],[],[],{},"arm64_sonoma",{"arch":53,"artifacts":353,"conflictsWith":373,"dependsOn":376,"downloadSha256":135,"downloadUrl":136,"macos":381,"requiresRosetta":38,"tag":382,"version":102},{"apps":354,"binaries":355,"entries":356,"pkgs":372},[],[8],[357,361,367],{"declaration":358,"phase":14,"sources":360,"target":13,"type":16},{"binary":359,"target":13},[8],[8],{"declaration":362,"phase":14,"sources":366,"type":28},{"generate_completions_from_executable":363},[8,20,364],{"base_name":22,"shell_parameter_format":22,"shells":365},[24,25,26],[8,20],{"declaration":368,"phase":34,"sources":371,"type":36},{"zap":369},[370],{"trash":33},[],[],{"casks":374,"formulae":375},[47,48],[],{"arch":377,"casks":378,"formulae":379,"requirements":380},[53],[],[],{},"13","ventura",{"arch":52,"artifacts":384,"conflictsWith":404,"dependsOn":407,"downloadSha256":61,"downloadUrl":63,"macos":381,"requiresRosetta":38,"tag":412,"version":102},{"apps":385,"binaries":386,"entries":387,"pkgs":403},[],[8],[388,392,398],{"declaration":389,"phase":14,"sources":391,"target":13,"type":16},{"binary":390,"target":13},[8],[8],{"declaration":393,"phase":14,"sources":397,"type":28},{"generate_completions_from_executable":394},[8,20,395],{"base_name":22,"shell_parameter_format":22,"shells":396},[24,25,26],[8,20],{"declaration":399,"phase":34,"sources":402,"type":36},{"zap":400},[401],{"trash":33},[],[],{"casks":405,"formulae":406},[47,48],[],{"arch":408,"casks":409,"formulae":410,"requirements":411},[52],[],[],{},"arm64_ventura",{"arch":53,"artifacts":414,"conflictsWith":434,"dependsOn":437,"downloadSha256":135,"downloadUrl":136,"macos":442,"requiresRosetta":38,"tag":443,"version":102},{"apps":415,"binaries":416,"entries":417,"pkgs":433},[],[8],[418,422,428],{"declaration":419,"phase":14,"sources":421,"target":13,"type":16},{"binary":420,"target":13},[8],[8],{"declaration":423,"phase":14,"sources":427,"type":28},{"generate_completions_from_executable":424},[8,20,425],{"base_name":22,"shell_parameter_format":22,"shells":426},[24,25,26],[8,20],{"declaration":429,"phase":34,"sources":432,"type":36},{"zap":430},[431],{"trash":33},[],[],{"casks":435,"formulae":436},[47,48],[],{"arch":438,"casks":439,"formulae":440,"requirements":441},[53],[],[],{},"12","monterey",{"arch":52,"artifacts":445,"conflictsWith":465,"dependsOn":468,"downloadSha256":61,"downloadUrl":63,"macos":442,"requiresRosetta":38,"tag":473,"version":102},{"apps":446,"binaries":447,"entries":448,"pkgs":464},[],[8],[449,453,459],{"declaration":450,"phase":14,"sources":452,"target":13,"type":16},{"binary":451,"target":13},[8],[8],{"declaration":454,"phase":14,"sources":458,"type":28},{"generate_completions_from_executable":455},[8,20,456],{"base_name":22,"shell_parameter_format":22,"shells":457},[24,25,26],[8,20],{"declaration":460,"phase":34,"sources":463,"type":36},{"zap":461},[462],{"trash":33},[],[],{"casks":466,"formulae":467},[47,48],[],{"arch":469,"casks":470,"formulae":471,"requirements":472},[52],[],[],{},"arm64_monterey",{"arch":53,"artifacts":475,"conflictsWith":495,"dependsOn":498,"downloadSha256":135,"downloadUrl":136,"macos":503,"requiresRosetta":38,"tag":504,"version":102},{"apps":476,"binaries":477,"entries":478,"pkgs":494},[],[8],[479,483,489],{"declaration":480,"phase":14,"sources":482,"target":13,"type":16},{"binary":481,"target":13},[8],[8],{"declaration":484,"phase":14,"sources":488,"type":28},{"generate_completions_from_executable":485},[8,20,486],{"base_name":22,"shell_parameter_format":22,"shells":487},[24,25,26],[8,20],{"declaration":490,"phase":34,"sources":493,"type":36},{"zap":491},[492],{"trash":33},[],[],{"casks":496,"formulae":497},[47,48],[],{"arch":499,"casks":500,"formulae":501,"requirements":502},[53],[],[],{},"11","big_sur",{"arch":52,"artifacts":506,"conflictsWith":526,"dependsOn":529,"downloadSha256":61,"downloadUrl":63,"macos":503,"requiresRosetta":38,"tag":534,"version":102},{"apps":507,"binaries":508,"entries":509,"pkgs":525},[],[8],[510,514,520],{"declaration":511,"phase":14,"sources":513,"target":13,"type":16},{"binary":512,"target":13},[8],[8],{"declaration":515,"phase":14,"sources":519,"type":28},{"generate_completions_from_executable":516},[8,20,517],{"base_name":22,"shell_parameter_format":22,"shells":518},[24,25,26],[8,20],{"declaration":521,"phase":34,"sources":524,"type":36},{"zap":522},[523],{"trash":33},[],[],{"casks":527,"formulae":528},[47,48],[],{"arch":530,"casks":531,"formulae":532,"requirements":533},[52],[],[],{},"arm64_big_sur",{"icon":41,"machineTranslated":38,"name":42,"slug":43,"sourceLocale":44},14,19,{"brewLag":539,"cadence":543,"count30d":541},{"compared":540,"earlierCount":541,"medianMinutes":542},3,1,153722867,"monthly",[545],{"caption":546,"height":547,"machineTranslated":76,"sourceLocale":97,"theme":548,"thumbUrl":549,"url":550,"width":551},"官方桌面设置插图：启用 1Password CLI 集成以进行终端身份验证。",750,"light","https:\u002F\u002Fcdn.opennavo.com\u002Fscreenshots\u002Fuploads\u002Fscreenshot\u002Fbbca2e5388a1\u002F9e2a985182ac-640.png","https:\u002F\u002Fcdn.opennavo.com\u002Fscreenshots\u002Fuploads\u002Fscreenshot\u002Fbbca2e5388a1\u002F9e2a985182ac-1280.png",1280,"https:\u002F\u002Fgithub.com\u002Fhomebrew\u002Fhomebrew-cask\u002Fblob\u002FHEAD\u002FCasks\u002F1\u002F1password-cli.rb","通过终端访问 1Password 保险库和机密，将凭据注入命令，并使用具有范围限制的服务账户实现自动化。",{"locale":44,"machineTranslated":76,"sourceLocale":97,"status":101},{"arm64":76,"requiresRosetta":38,"status":556,"x86_64":76},"known",[558,559,560,561],"1Password","CLI","Secrets","DevOps","homebrew\u002Fcask"]