Hi Vitor,
I have your workflow working on one Mac (M1 Pro MacBook) but not on my Intel iMac. When I try to run the "sign in and update items" command, terminal opens but I get the following (user directory is "rich"). Biometric unlock is not ticked.
I have tried installing the 1Passord CLI (based on the "old version of the command line" statement). But it made no difference. I found that I couldn't log into the CLI on my iMac at all, I get the same error about "cannot create directories" there as well. It seems like permissions, but I can't work out for what?
Last login: Tue May 3 18:32:04 on ttys000
/bin/zsh
export alfred_workflow_data=/Users/rich/Library/Application\ Support/Alfred/Workflow\ Data/com.alfredapp.1password && export logins_only=0 && /Users/rich/Library/CloudStorage/OneDrive-Personal/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DA5B1E61-154D-431E-9E9B-E62E56E9A689/signin.zsh
rich@Richs-iMac ~ % /bin/zsh
rich@Richs-iMac ~ % export alfred_workflow_data=/Users/rich/Library/Application\ Support/Alfred/Workflow\ Data/com.alfredapp.1password && export logins_only=0 && /Users/rich/Library/CloudStorage/OneDrive-Personal/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DA5B1E61-154D-431E-9E9B-E62E56E9A689/signin.zsh
[ERROR] 2022/05/03 18:37:35 cannot create directory "/Users/rich/.config/op" and the parent directories: mkdir /Users/rich/.config/op: permission denied
./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
[ERROR] 2022/05/03 18:37:35 cannot create directory "/Users/rich/.config/op" and the parent directories: mkdir /Users/rich/.config/op: permission denied
./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
/Users/rich/Library/CloudStorage/OneDrive-Personal/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DA5B1E61-154D-431E-9E9B-E62E56E9A689/signin.zsh:18: command not found: ''
------------------------- IMPORTANT -------------------------
You have an old version of the 1Password command-line tool.
Install the latest version from:
https://1password.com/downloads/command-line/
Then run the Workflow again.
You may close the terminal.
-------------------------------------------------------------
rich@Richs-iMac ~ %