Skip to main content
Apr 9, 2022 1:27 AM UTC
Question

Sample “op run” command for Windows cmd.exe

Hi. I read this official blog about using awscli with biometric sign in.

https://blog.1password.com/1password-cli-2_0/

alias aws="op run --env-file=$HOME/.config/op/aws-env -- aws"

I tried same things by using cmd.exe.

doskey aws=op run —env-file=%USERPROFILE%\.config\op\aws-env — aws $*

I hope this information can be shared and be useful.


1Password Version: 8
Extension Version: Not Provided
OS Version: Windows10

3 replies

Apr 12, 2022 7:23 PM UTC

Hey @ticksgt,

Thank you for reaching out to us, and for the suggestion! I've gone ahead and filed a ticket with our docs team to consider adding this to our examples. If you have any more suggestions or questions for us please don't hesitate to reach out.

Best,
Jody

Apr 13, 2022 12:42 PM UTC

Hi @jody.h_1P.

Thank you for this.

I've gone ahead and filed a ticket with our docs team to consider adding this to our examples.

But sorry, there was a typo "—" instead of "--".

So, it should actually be:
doskey aws=op run --env-file=%USERPROFILE%\.config\op\aws-env -- aws $*

All the best.

1Password Employee
Apr 21, 2022 10:37 AM UTC

💚