Connect can't find op://vault/item/file.json

Community Member
edited July 7 in CLI

When using a connect server and trying to reference a file from the OP cli, it errors:

op inject -i service-account.json.tmpl -o service-account.json

with {{ op://vault/demo-api/service-account.json }} in the template.

service-account.json is saved as a file attachment in the demo-api item in the vault.

[ERROR] 2022/07/07 15:55:55 could not read secret op://vault/demo-api/service-account.json: could not find field or file service-account.json on item demo-api in vault vault

This works appropriately when using an account, but not when using connect.

1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:Linux CLI file


  • Horia.Culea_1PHoria.Culea_1P

    Team Member

    Hey @jbgbrad, thank you for reaching out!

    What versions of CLI and Connect are you currently running?


Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file