Turso.Platform.Client 0.8.0-pre.11

Prefix Reserved
This is a prerelease version of Turso.Platform.Client.
dotnet add package Turso.Platform.Client --version 0.8.0-pre.11
                    
NuGet\Install-Package Turso.Platform.Client -Version 0.8.0-pre.11
                    
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="Turso.Platform.Client" Version="0.8.0-pre.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Turso.Platform.Client" Version="0.8.0-pre.11" />
                    
Directory.Packages.props
<PackageReference Include="Turso.Platform.Client" />
                    
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 Turso.Platform.Client --version 0.8.0-pre.11
                    
#r "nuget: Turso.Platform.Client, 0.8.0-pre.11"
                    
#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 Turso.Platform.Client@0.8.0-pre.11
                    
#: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=Turso.Platform.Client&version=0.8.0-pre.11&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Turso.Platform.Client&version=0.8.0-pre.11&prerelease
                    
Install as a Cake Tool

Turso.Platform.Client

.NET client for the Turso Platform API (https://api.turso.tech): manage databases, groups, auth tokens, organizations, members and invites.

Unlike the Turso and Turso.Data.Sqlite.Provider packages, this is a pure managed HTTP client — it has no native component.

Getting started

using Turso.Platform.Client;

var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
    new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", platformApiToken);

var client = new TursoPlatformClient(httpClient);

// Create a database
var created = await client.CreateDatabaseAsync(organizationSlug, new CreateDatabaseInput
{
    Name = "my-database",
    Group = "default",
});

// Mint a database auth token
var token = await client.CreateDatabaseTokenAsync(organizationSlug, "my-database");

// List databases
var databases = await client.ListDatabasesAsync(organizationSlug);

The client is generated with NSwag from the official OpenAPI specification published in tursodatabase/turso-docs (api-reference/openapi.json).

Regenerating the client

The pinned upstream spec lives at openapi.json next to this file and is kept byte-identical to the published one. Because the spec leaves its request/response schemas anonymous, NSwag would generate counter names (Response17, Body3); the tools/OpenApiTitler project first derives proper names from each operationId (ListDatabasesResponse, CreateGroupRequest) and collapses the repeated { error: string } payloads into one shared ErrorResponse.

Every dotnet build, test, or pack generates the transformed document and C# client under the project's ignored obj directory. The build uses the version-pinned NSwag.MSBuild package, so it does not require a globally installed NSwag CLI.

To refresh the tracked spec and regenerate during the next build:

curl -sL https://raw.githubusercontent.com/tursodatabase/turso-docs/main/api-reference/openapi.json -o openapi.json
dotnet build

(or make generate-platform-client from bindings/dotnet).

TursoPlatformClient.Supplement.cs contains the hand-written Extensions union NSwag cannot generate. Use Extensions.All to enable every extension or Extensions.FromNames(...) for an explicit list.

Spec pinned from turso-docs commit ac44bfab64a7 (2026-06-08).

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 is compatible.  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 is compatible.  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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

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
0.8.0-pre.11 34 9/11/2026
0.8.0-pre.7 69 8/21/2026