I am trying to interact with the CLI using R (statistics oriented programming language). I've ran into an error message that i can't seem to look up.
When I run a shell command directly from "R Console" (different than interactive shell/command prompt), I don't get an opportunity to interact with the prompts. For example:
> shell('op signin <EMAIL>')
Enter the password for <EMAIL> at <SECRET KEY>: [ERROR] invalid account key format length 0.
One of my thoughts was trying to 'chain' commands. However, it seems to return a different error message:
> shell('op signin <EMAIL> <SECRET KEY> --raw && <PASSWORD>')
Enter the password for <EMAIL> at <SECRET KEY>: [ERROR] The handle is invalid.
The CLI error messages are different than the interactive shell and command prompt. Specifically, in the interactive shell, if my is blank, it just asks for it again. If the password is blank, I get a 401: Unauthorized. These errors are different than the R Console.
I've also posted this on the R forums to see if anyone has any R specific insight (https://community.rstudio.com/t/interacting-with-1password-cli/81657). I have confirmed that my CLI 1.7.0 is installed correctly and I can successfully perform actions via interactive shell and also command prompt.
Does anyone have any thoughts on whether or not trying to figure out chaining is the right approach, or if there may be something unexpected that is being passed to the CLI?
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Windows
Sync Type: Not Provided
Referrer: forum-search:Handle is invalid