vitor Posted January 6, 2023 Author Share Posted January 6, 2023 (edited) Welcome @alfreduser8, First, reboot. Then update the 1Password command-line tool, followed by (in Alfred) :1pextras → Reset Workflow. Then try again. If it still doesn’t work, see a few posts above yours. Edited January 9, 2023 by vitor Correct link Link to comment
alfreduser8 Posted January 6, 2023 Share Posted January 6, 2023 hi @vitor thanks for your great work I've already updated the CLI tool and tried the solutions in previous posts (i.e. used :1pextras to force update and reset workflow). I only have 1 account and 1 vault Still have same problem of no logins showing after i type 1p and stuck on "updating items will take a few seconds" do you have any other suggestions? thanks Link to comment
vitor Posted January 7, 2023 Author Share Posted January 7, 2023 Can you use op in the Terminal? Link to comment
alfreduser8 Posted January 9, 2023 Share Posted January 9, 2023 I'm not very technical so don't understand what can you use op in Terminal means? I can open terminal and type op which brings up a list of commands. for 1password CLI which I don't understand - can you point me to a relevant guide that I might be able to read ? Thanks Link to comment
vitor Posted January 9, 2023 Author Share Posted January 9, 2023 5 minutes ago, alfreduser8 said: can you point me to a relevant guide that I might be able to read ? See a few posts above your initial question (link was wrong in previous post). Link to comment
alfreduser8 Posted January 9, 2023 Share Posted January 9, 2023 (edited) I followed instrucitons in the post you linked i.e listing vaults via op: "op vault list". No 2nd account present. I tried force listing vaults from that account: "op account list" (copy the user id). Then execute "op vault list --account <user id goes here>". This is when you'd get asked for MFA. but I was never asked for MFA and get the following terminal output: Last login: Mon Jan 9 22:52:38 on ttys000 smeen@192-168-1-158 ~ % op vault list [REDACTED] [ERROR] 2023/01/09 23:18:14 expected at most 0 arguments but got 1 instead Usage: op vault list [flags] Aliases: list, ls Examples: Get details for all vaults: op vault list --format=json | op vault get - Get details for vaults that a group has access to: op vault list --group Security --format=json | op vault get - Get details for vaults that a user has access to: op vault list --user wendy_appleseed@1password.com --format=json | op vault get - Flags: --group string List vaults a group has access to. -h, --help Get help with vault list. --user string List vaults that a given user has access to. To list the global flags available on every command, run 'op --help'. smeen@192-168-1-158 ~ % any ideas? thanks Edited January 9, 2023 by vitor Redacted ID Link to comment
vitor Posted January 9, 2023 Author Share Posted January 9, 2023 2 minutes ago, alfreduser8 said: but I was never asked for MFA and get the following terminal output Note the command you quoted and the one you typed are different. Yours was missing the --account. Try it again with that. Send it over as a personal message, though, to avoid posting potentially personal information about an account or vault. Link to comment
alfreduser8 Posted January 11, 2023 Share Posted January 11, 2023 hi @vitor thanks for all your help again I've managed to get it working, not sure what worked but heres what i did for future reference: 1. deleted old1password 4 folder from library 2. updated to new version of 1 password released yesterday 3. turned off touchID and Apple Watch unlock for iOS and 1password 4. disconnected MacBook from clamshell mode 5. restarted computer 6. in terminal typed "op vault list". then force listing vaults from that account: "op account list" (copy the user id). Then execute "op vault list --account <user id goes here>" Link to comment
SuupaPro Posted January 22, 2023 Share Posted January 22, 2023 Hello, I'm a new user - just bought my Powerpack today and so far loving this workflow! I do come with one question, how can I change shortcuts? As of right now shortcuts are as following: Without the possibility to edit them. I would like to keep them "in line" with 1 Passwords one and to copy username I would for example like to use CMD + C. Is there any chance to edit those? Link to comment
vitor Posted January 22, 2023 Author Share Posted January 22, 2023 Welcome @SuupaPro, You can edit what each shortcut does by using their respective drop downs. You cannot add bespoke key combinations in there. ⌘C could technically be editable, but not to copy the username because doing so requires authentication, a deliberate choice because those can themselves be sensitive information, plus 1Password saves them in the additional_information field which is also used to store the first line of content from secure notes (which are even more sensitive information). Link to comment
SuupaPro Posted January 23, 2023 Share Posted January 23, 2023 Hey, Yes, I saw that I could change what the shortcut is doing itself but I wasn't sure how to edit the shortcut itself. In the 1password app I have those shortcuts: What I would like to do is to simply keep the same shortcuts in Alfred 1p workflow so whether I bring 1Password Show Quick Access or Alfred 1p I would be able to use the same shortcut to copy username/password. Link to comment
vitor Posted January 23, 2023 Author Share Posted January 23, 2023 I understand the request, but as mentioned above we cannot add random shortcuts to any action, the listed ones are what’s possible. The alternative would be changing 1Password’s shortcuts to match the ones in the workflow. There’s also the matter that a third-party integration is always limited by the vendor’s decisions: 1Password knows when it’s unlocked and can give you access to any data at that point, but external tools (like Alfred) either have to request the information at specific points or gobble it up beforehand. Due to the nature of 1Password and the data it stores, it is a very deliberate decision to ask for the minimum possible and be extra safe, which is why even copying a username requires the authentication step. Link to comment
vitor Posted January 25, 2023 Author Share Posted January 25, 2023 Updated to 2023.1. Use different icon for updating items. Link to comment
Block141 Posted February 3, 2023 Share Posted February 3, 2023 CLI is running and logged in CLI is enabled in 1P settings. The debug console just spams the following. } [21:23:13.039] 1Password[Script Filter] Queuing argument '(null)' [21:23:13.110] 1Password[Script Filter] Script with argv '(null)' finished [21:23:13.113] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } Here is the diag report. ### Launchd job NOT loaded NOT installed ' to Copy to Clipboard [21:25:36.601] 1Password[Copy to Clipboard] Processing complete [21:25:36.606] 1Password[Copy to Clipboard] Passing output '### Workflow version 2023.1 ### Alfred version 5.0.6 ### macOS version 13.2 ### Architecture i386 ### Preferences Default ### 1Password version 8.9.15 ### op version 2.13.1 Link to comment
vitor Posted February 3, 2023 Author Share Posted February 3, 2023 @Block141 Make sure the CLI works in a Terminal (do ask if you need help with that); when the workflow gets stuck in that state it has usually been a problem with the 1Password CLI connecting. Link to comment
Block141 Posted February 3, 2023 Share Posted February 3, 2023 (edited) 8 hours ago, vitor said: @Block141 Make sure the CLI works in a Terminal (do ask if you need help with that); when the workflow gets stuck in that state it has usually been a problem with the 1Password CLI connecting. Okay thank you, it signs in successfully and running op whoami works. Is there a command I need to run to start the process? Update: I got it to populate the database by going to :1pextras and selecting force update. Sorry if I had missed that in the docs earlier. Thank you for the awesome workflow! Edited February 3, 2023 by Block141 Issue resolved. vitor 1 Link to comment
kubarker Posted February 9, 2023 Share Posted February 9, 2023 Hey team, Chose 1P today due to the Alfred integration (I'm also new to Alfred, just wanting to see how they both work together). I set up Alfred and 1P, set up CLI, made sure the new logins were appearing under 'op item list', so I saw that as updating correctly. However on launching Alfred and typing '1P', I don't get options like logins in my vault, I only have applications, files, and Updating Items... The updating items line also never goes away or changes, so I assume I've made a mistake along the way. Any advice? Thanks, Kurt Link to comment
vitor Posted February 9, 2023 Author Share Posted February 9, 2023 Welcome @kubarker, Please provide the diagnostic. Link to comment
Vein Posted February 10, 2023 Share Posted February 10, 2023 HI there, thank you for this workflow! I like the quickness of being able to look for logins and quickly copy/pasting login information. I was wondering is there a way to search by category for example the Identity category? Link to comment
vitor Posted February 10, 2023 Author Share Posted February 10, 2023 @Vein You don’t need to ask both here and on GitHub, only in one of them is preferable. Updated workflow to 2023.3, which includes categories and tags in search. Link to comment
Vince77 Posted April 18, 2023 Share Posted April 18, 2023 (edited) Hi, I'm a new Alfred user and I do not see any items from my 1password. I'm able to view from a terminal with the op command and i've tried restarting my machine. When i run the debugger and type 1p, a list of my items show up on the debugger but not on the alfred search screen. Here are the results from my diagnostics... the Hello from .zshenv is just my echo command from my .zshenv file: Hello from .zshenv ### Workflow version 2023.5 ### Alfred version 5.0.6 ### macOS version 13.3.1 ### Architecture arm64 ### Preferences Default ### 1Password version 8.10.5-10.BETA ### op version 2.16.1 ### Launchd job Loaded: - 0 com.alfredapp.vitor.1password Installed OUTPUT FROM DEBUGGER (Force Update Items): 13:22:31.664] Logging Stopped. [13:26:11.415] Logging Started... [13:26:21.302] 1Password Processing complete [13:26:21.308] 1Password Passing output 'update_items' to Conditional [13:26:21.309] 1Password[Conditional] Processing complete [13:26:21.310] 1Password[Conditional] Passing output 'update_items' to Junction [13:26:21.311] 1Password[Junction] Processing complete [13:26:21.312] 1Password[Junction] Passing output 'update_items' to Run Script [13:26:21.606] 1Password[Run Script] Processing complete [13:26:21.613] 1Password[Run Script] Passing output 'Hello from .zshenv ' to Conditional [13:26:21.613] 1Password[Conditional] Processing complete [13:26:21.614] 1Password[Conditional] Passing output 'Hello from .zshenv ' to Run Script [13:26:21.876] 1Password[Run Script] Processing complete [13:26:21.886] 1Password[Run Script] Passing output 'Hello from .zshenv ' to Conditional [13:26:21.887] 1Password[Conditional] Processing complete [13:26:21.887] 1Password[Conditional] Passing output 'Hello from .zshenv ' to Run Script [13:26:33.170] 1Password[Run Script] Processing complete [13:26:33.171] 1Password[Run Script] Passing output 'Hello from .zshenv ' to Call External Trigger [13:26:33.172] 1Password[External] Processing complete [13:26:33.172] 1Password[External] Passing output '' to Run Script [13:26:33.191] 1Password[Run Script] Processing complete [13:26:33.194] 1Password[Run Script] Passing output 'Hello from .zshenv ' to Run Script Please let me know what i can do to resolve this issue. Edited April 18, 2023 by Vince77 Link to comment
vitor Posted April 18, 2023 Author Share Posted April 18, 2023 Welcome @Vince77, Please provide a video of it with the debugger open. You can do so via DM to avoid sharing private information. Link to comment
vitor Posted April 24, 2023 Author Share Posted April 24, 2023 Updated to 2023.6.When copying details, always disambiguate vault and account.Replace deprecated readDataToEndOfFile with readDataToEndOfFileAndReturnError. Link to comment
Cristina Posted May 23, 2023 Share Posted May 23, 2023 Hello, I set up 1Password 8 workflow: - installed 1P CLI - Turned on CLI in Developer tab - Set up touch - Logged in using CLI Initially I was getting an error in the debugger: "json text did not start with array or object and option to allow fragments not set". After not finding much in the way of help, I decided to try: Force Update Items. Now that error is gone and I see logging of items in my vaults, but I still can't get any results when I type 1p. I also tried changing the config for 1p to something else and that doesn't seem to work either even after quitting Alfred and restarting. Any ideas of what I could have missed? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now