Forum Discussion
Former Member
3 years agoExpect op item edit to be able to support stdin soon.
andi_t_1P Has there been any progress on this?
I need to programmatically update the password for multiple entries in my vault.
\n\nThis here works nicely:
\n\nop item edit some-item \"password=noneofyourbusiness\"
but it has 2 problems:
\n\nThe only way I see:
\n\nop item get --format=json
echo {} | base64 --decode | op item edit some-item
where {} would contain that base64 encoded jsonI have done similar things in the past, but I hope: there is an easier way to achieve the same?
\n","kudosSumWeight":0,"postTime":"2022-09-12T06:23:42.000-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"tags":{"__typename":"TagConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"TagEdge","cursor":"MjUuNHwyLjF8b3wxMHxfTlZffDE","node":{"__typename":"Tag","id":"tag:CLI","text":"CLI","time":"2025-01-30T03:12:02.261-08:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}}]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:90963_1"},"latestVersion":null,"metrics":{"__typename":"MessageMetrics","views":1115},"read":false,"visibilityScope":"PUBLIC","canonicalUrl":null,"seoTitle":null,"seoDescription":null,"isEscalated":null,"placeholder":false,"originalMessageForPlaceholder":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"archivalData":null,"customFields":[{"__typename":"CustomStringField","name":"smartconx_source_identifier","stringValue":""},{"__typename":"CustomStringField","name":"smartconx_message_origin","stringValue":""},{"__typename":"CustomStringField","name":"smartconx_share_messages","stringValue":""}],"body":"I need to programmatically update the password for multiple entries in my vault.
\n\nThis here works nicely:
\n\nop item edit some-item \"password=noneofyourbusiness\"
but it has 2 problems:
\n\nThe only way I see:
\n\nop item get --format=json
echo {} | base64 --decode | op item edit some-item
where {} would contain that base64 encoded jsonI have done similar things in the past, but I hope: there is an easier way to achieve the same?
"},"Conversation:conversation:90963":{"__typename":"Conversation","id":"conversation:90963","solved":false,"topic":{"__ref":"ForumTopicMessage:message:90963"},"lastPostingActivityTime":"2023-05-26T04:21:52.000-07:00","lastPostTime":"2023-05-26T04:21:52.000-07:00","unreadReplyCount":10,"isSubscribed":false},"ModerationData:moderation_data:90963":{"__typename":"ModerationData","id":"moderation_data:90963","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"Revision:revision:90963_1":{"__typename":"Revision","id":"revision:90963_1","lastEditTime":"2022-09-12T06:23:42.000-07:00"},"ForumReplyMessage:message:90970":{"__typename":"ForumReplyMessage","id":"message:90970","conversation":{"__ref":"Conversation:conversation:90963"},"author":{"__ref":"User:user:-1"},"entityType":"FORUM_REPLY","eventPath":"category:discuss/community:cuxzj43862board:developers/message:90963/message:90970","revisionNum":1,"uid":90970,"depth":1,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:developers"},"subject":"Re: Change password using \"op item edit\" without having it on the command line?","readOnly":false,"editFrozen":false,"showMoveIndicator":false,"moderationData":{"__ref":"ModerationData:moderation_data:90970"},"parent":{"__ref":"ForumTopicMessage:message:90963"},"body":"\n\n\nExpect op item edit to be able to support stdin soon.
\n
andi_t_1P Has there been any progress on this?
","body@stringLength":"330","rawBody":"\n\n\nExpect op item edit to be able to support stdin soon.
\n