Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoOnePassword.NET Nuget package and CLI v2
I'm new to 1Password and trying to use the OnePassword.NET Nuget package with CLI v2 in a Visual Studio C# project.
My code is as follows:
using OnePassword;
try
{
...
andi_t_1P
1Password Team
3 years agoThe piece of code you presented should work as expected from what I can tell from the 1Password CLI .NET wrapped Github repo docs. The only configuring you need to do is to add your account as instructed. You could always try to configure the account directly in the CLI by running op account add
.
Let me know if you are still facing issues. Best,
Andi