Sample “op run” command for Windows cmd.exe

Options
ticksgt
ticksgt
Community Member

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

Comments

  • 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

  • ticksgt
    ticksgt
    Community Member
    Options

    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.

  • 💚

This discussion has been closed.