Skip to main content
April 9, 2022
Question

Sample “op run” command for Windows cmd.exe

  • April 9, 2022
  • 3 replies
  • 170 views

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

April 12, 2022

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

ticksgtAuthor
April 13, 2022

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
April 21, 2022

💚