Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
ticksgt
4 years agoOccasional Contributor
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
- 1P_Simon
1Password Team
💚
- ticksgtOccasional Contributor
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.
- Former Member
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