Invoke-Expression and 1Password CLI Integration Issue
turnertime
Community Member
in CLI
When utilizing the Invoke-Expression $(op signin --account my.1password.com)
command in a PowerShell script with CLI integration enabled, as recommended in the official documentation, we encountered an issue. The command fails with the following error: Invoke-Expression: Cannot bind argument to parameter 'Command' because it is null.
This issue is not present when performing a manual sign-in.
We found a workaround by including a semi-colon, but it would be highly beneficial if the command or the documentation could be updated to address this issue.
Invoke-Expression ((op signin --account my.1password.com) + ";")
1Password Version: 8.10.20
Extension Version: cli 2.22.0
OS Version: Windows 11, Powershell 7.3.9
Browser: Not Provided
0
This discussion has been closed.