1Password / shell-plugins

Seamless authentication for every tool in your terminal.
https://developer.1password.com/docs/cli/shell-plugins/
MIT License
519 stars 170 forks source link

MongoDB CLI (mongosh) provider #390

Open tresni opened 11 months ago

tresni commented 11 months ago

Overview

This provider takes a bunch of optional arguments/fields. The most important one is "database". That can be used for either specifying just a database name in conjuction with the other arguments/fields, or to supply a MongoDB connection string (e.g. mongodb+srv://username:password@example.org:27017/database?options).

I generally use a username, password, and a connection string without username and password in it.

I modeled after the mysql and postgres providers.

Type of change

How To Test

op init plugin mongosh
op plugin run -- mongosh

Changelog

Authenticate the MongoDB CLI using Touch ID and other unlock options with 1Password Shell Plugins.

techcraver commented 11 months ago

Thank you for your contribution!