Is it possible to use the op CLI command to generate a password without creating a vault item?

Options
WaitingForGuacamole
WaitingForGuacamole
Community Member

I'd love to use 1Password CLI to generate passwords that I wish to store elsewhere (I know, I know, why would I ever want to do that? Well, to create passwords/secrets for Azure Key Vault, that other Azure resources can leverage), and I'd love to be able to script that out!


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:cli generate password without creating item

Comments

  • ArunV1P
    Options

    Hey @WaitingForGuacamole, thank you for your patience. You can use the --dry-run flag along with --generate-password to achieve that. Here's an example:

    op item create --category password --generate-password --dry-run --format json | jq -r '.fields[0].value'

    May I ask how your Azure integrations look at the moment/what Azure resources are you specifically using? We can help identify if 1Password Service Accounts is a better fit.

    Best,
    Arun

This discussion has been closed.