Skip to main content
December 15, 2025
Question

op create failing with `--category ssh` and `--url options`

  • December 15, 2025
  • 2 replies
  • 35 views

in a script I have the following:

op item create --category ssh --title "$CONFIG_HOSTNAME" --ssh-generate-key ed25519 --url "ssh://$CONFIG_USER@$CONFIG_HOSTNAME"

super cool right? its creating ssh keys and auto adding the url so they will show up in my team's ssh agents! unfortunately the url field is blocked for the ssh category:

[ERROR] 2025/12/15 12:31:34 You can only set URL fields for Login, Password, and API Credential items.

P.S. It would be super cool if there was a GitHub project for `op` bugs

2 replies

northisupAuthor
December 15, 2025

this forum software also gave me multiple "bad html errors" when trying to paste in my shell script snippet. so I'm doubling my plea for a GitHub project for bug reports. thanks!

July 7, 2026

Same here and quiet puzzling: in the UI I can add an URL field, so why shouldn’t I using the API option create item call?

[ERROR] 2025/12/15 12:31:34 You can only set URL fields for Login, Password, and API Credential items.

Please add this to op item create.