The 'whoami' command does not respect the '--session' flag

Options
cofiem
cofiem
Community Member

The usage page for the cli includes --session token as a global flag.

However, when I use a valid session token obtained from op signin --raw, the whoami command does not seem to notice:

$ op whoami --session xxx

[ERROR] 2023/02/22 08:54:26 no active session found for account xxx

The session token works fine for other cli commands.

Is the 'whoami' command expected to use the --session token?
If so, this looks like a bug.
If not, please update the whoami docs page to indicate that the command can't use the gobal --session flag.


1Password Version: 2.14.0
Extension Version: Not Provided
OS Version: Ubuntu 20.04.5 LTS
Browser:_ Not Provided

This discussion has been closed.