Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape character for 1Password CLI - Windows PowerShell #497

Open
prboyer opened this issue Nov 14, 2024 · 0 comments
Open

Escape character for 1Password CLI - Windows PowerShell #497

prboyer opened this issue Nov 14, 2024 · 0 comments
Labels
op-cli Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.

Comments

@prboyer
Copy link

prboyer commented Nov 14, 2024

op CLI version

2.30.3

Goal or desired behavior

A credential with a special character in the item name can be retrieved using the 1Password CLI in Windows PowerShell with the syntax:
op read op://employee/DOMAIN\\user/username

Current behavior

Trying to retrieve a secret from my Employee vault using the CLI fails when a special character in the path.
E.g. op read op://employee/DOMAIN\user/username

I've also tried escaping the backslash per the documentation.
op read op://employee/DOMAIN\\user/username

And when using PowerShell adding the path in double quotes does not work either
op read "op://employee/DOMAIN\user/username"

Relevant log output

[ERROR] 2024/11/14 11:26:24 could not read secret 'op://employee/DOMAIN\user/username': invalid secret reference 'op://employee/DOMAIN\user/username': invalid character in secret reference: '\'
@prboyer prboyer added the op-cli Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers. label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
op-cli Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.
Projects
None yet
Development

No branches or pull requests

1 participant