It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
mmerrill
3 months agoNew Contributor
How to create an Address field type using the CLI?
I'm using the CLI to create an Identity item. The default Identity template has an example "ADDRESS" type, but fails to create an address with any value other than an empty string. I want to create t...
1P_Phil
Moderator
3 months agoHi mmerrill ,
I just wanted to drop a note and let you know i'm looking into this. I've also requested an update to the "op item get template" command to include examples for objects like this so you don't have to dig as much.
I hope to hear back from the team in the next day or so.
Thanks in advance for your patience,
Phil
- 1P_Phil2 months ago
Moderator
Hi mmerrill ,
Just to confirm address are supported by the CLI, but the actual value of the address is a string (due to localization). Here is an example you can use to get it working.
You'll see what I mean in line 9 "value"
{ "id": "address", "section": { "id": "address", "label": "Address" }, "type": "ADDRESS", "label": "address", "value": "Street Address 123, 1234XY, Delft, Netherlands", "reference": "op://acceptance-tests/test-identity/Address/address" },
Thanks,
Phil