Envbee.SDK 1.8.2

dotnet add package Envbee.SDK --version 1.8.2
                    
NuGet\Install-Package Envbee.SDK -Version 1.8.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Envbee.SDK" Version="1.8.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Envbee.SDK" Version="1.8.2" />
                    
Directory.Packages.props
<PackageReference Include="Envbee.SDK" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Envbee.SDK --version 1.8.2
                    
#r "nuget: Envbee.SDK, 1.8.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Envbee.SDK@1.8.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Envbee.SDK&version=1.8.2
                    
Install as a Cake Addin
#tool nuget:?package=Envbee.SDK&version=1.8.2
                    
Install as a Cake Tool

Envbee .NET SDK

NuGet

Envbee SDK is a .NET client for interacting with the Envbee API (https://envbee.dev). This SDK allows you to securely fetch variables, handle local caching, and optionally decrypt encrypted values using AES-GCM.

Table of Contents

Installation

You can install the Envbee SDK from NuGet using the .NET CLI:

dotnet add package Envbee.SDK

Or using the NuGet Package Manager in Visual Studio:

Install-Package Envbee.SDK

Usage

You can instantiate the EnvbeeClient class directly with parameters, or configure it using the fluent builder pattern.

using Envbee.SDK;

var client = new EnvbeeClient(
    apiKey: "your_api_key",
    apiSecret: "your_api_secret",
    encKey: "encryption-key-goes-here" // optional
);

string? value = await client.GetAsync("VariableName");

Or using the builder:

var client = EnvbeeClientBuilder.Create()
    .WithCredentials("your_api_key", "your_api_secret")
    .WithEncryptionKey("32-byte-encryption-key-goes-here")
    .Build();

Environment Variables

The SDK supports loading credentials and configuration from environment variables:

  • ENVBEE_API_KEY
  • ENVBEE_API_SECRET
  • ENVBEE_ENC_KEY
export ENVBEE_API_KEY="your_api_key"
export ENVBEE_API_SECRET="your_api_secret"
export ENVBEE_ENC_KEY="encryption-key"

Then initialize with:

var client = new EnvbeeClient();

Explicit parameters take precedence over environment variables.

Methods

  • Task<object?> GetAsync(string variableName) — fetches a variable and returns its value as string, decimal, int, double or bool
  • Task<(IReadOnlyList<JsonElement> Data, Metadata Meta)> GetVariablesAsync(int? offset = null, int? limit = null) — fetches variable metadata with pagination

Encryption

Variables may be encrypted using AES-256-GCM. Encrypted values start with prefix envbee:enc:v1:.

  • If an encrypted variable is fetched and a valid encKey is provided, the SDK will decrypt it automatically.
  • If decryption fails due to missing or incorrect key, a DecryptionException is thrown.
  • The key is never sent to the server; all cryptographic operations happen locally.
var client = new EnvbeeClient(
    apiKey: "your_api_key",
    apiSecret: "your_api_secret",
    encKey: "encryption-key-goes-here"
);

Logging

The SDK uses Microsoft.Extensions.Logging.

Caching

The SDK caches variables locally to provide fallback data when offline or the API is unreachable. The cache is updated after each successful API call. Local cache stores variables as received from the API, encrypted or plain.

  • Encryption key is never stored in cache or sent to API.
  • All encryption/decryption happens locally with AES-256-GCM.

Dependency Injection

In ASP.NET Core or generic host apps, you can register the client via extension:

builder.Services.AddEnvbee(cfg => cfg
    .WithCredentials(apiKey, apiSecret)
    .WithEncryptionKey(encKey));

This registers the client as a singleton. Internally it shares the default HttpClient handler stack.

API Documentation

For more information on envbee API endpoints and usage, visit the official API documentation.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.8.2 340 11/30/2025
0.1.0-beta.0 148 7/6/2025