Soenneker.GitHub.FileStore
3.0.29
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.GitHub.FileStore --version 3.0.29
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.29
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="Soenneker.GitHub.FileStore" Version="3.0.29" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.FileStore" Version="3.0.29" />
<PackageReference Include="Soenneker.GitHub.FileStore" />
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 Soenneker.GitHub.FileStore --version 3.0.29
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.GitHub.FileStore, 3.0.29"
#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 Soenneker.GitHub.FileStore@3.0.29
#: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=Soenneker.GitHub.FileStore&version=3.0.29
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.29
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.GitHub.FileStore
A high-level file system utility for GitHub repositories, built on the GitHub OpenAPI client. Supports reading, writing, deleting, listing, and checking file existence via the GitHub Contents API.
Features
- đ Read file content from a GitHub repository
- đ Write new files with commit messages and optional branch targeting
- â Delete files with SHA validation
- đ List directory contents
- â Check for file existence
- âī¸ Built on top of a typed OpenAPI GitHub client
Installation
dotnet add package Soenneker.GitHub.FileStore
Setup
builder.Services.AddGitHubFileStoreAsSingleton();
This will register all necessary dependencies, including the underlying GitHub OpenAPI client.
âšī¸ Note: The GitHub access token must be provided via configuration under the key: GitHub:Token
.
Example Usage
public class MyService
{
private readonly IGitHubFileStore _store;
public MyService(IGitHubFileStore store)
{
_store = store;
}
public async Task Run()
{
string content = await _store.Read("owner", "repo", "README.md");
await _store.Create("owner", "repo", "newfile.txt", "Hello world!");
bool exists = await _store.Exists("owner", "repo", "README.md");
var files = await _store.List("owner", "repo", "docs");
await _store.Delete("owner", "repo", "oldfile.txt");
}
}
Related Packages
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 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.
-
net9.0
- Soenneker.GitHub.ClientUtil (>= 3.0.27)
- Soenneker.Utils.File (>= 3.0.1941)
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 |
---|---|---|
3.0.94 | 0 | 8/5/2025 |
3.0.93 | 20 | 8/1/2025 |
3.0.92 | 77 | 8/1/2025 |
3.0.91 | 83 | 7/30/2025 |
3.0.90 | 85 | 7/30/2025 |
3.0.89 | 85 | 7/29/2025 |
3.0.88 | 86 | 7/28/2025 |
3.0.87 | 137 | 7/26/2025 |
3.0.86 | 266 | 7/25/2025 |
3.0.85 | 480 | 7/23/2025 |
3.0.84 | 483 | 7/22/2025 |
3.0.83 | 24 | 7/18/2025 |
3.0.82 | 149 | 7/14/2025 |
3.0.81 | 94 | 7/12/2025 |
3.0.80 | 148 | 7/9/2025 |
3.0.79 | 130 | 7/9/2025 |
3.0.78 | 133 | 7/9/2025 |
3.0.77 | 129 | 7/9/2025 |
3.0.76 | 137 | 7/8/2025 |
3.0.75 | 119 | 7/5/2025 |
3.0.74 | 55 | 7/5/2025 |
3.0.73 | 72 | 7/4/2025 |
3.0.72 | 123 | 7/4/2025 |
3.0.71 | 170 | 7/3/2025 |
3.0.70 | 152 | 7/2/2025 |
3.0.69 | 129 | 7/2/2025 |
3.0.68 | 136 | 7/2/2025 |
3.0.67 | 145 | 7/1/2025 |
3.0.66 | 158 | 6/28/2025 |
3.0.65 | 86 | 6/28/2025 |
3.0.64 | 86 | 6/28/2025 |
3.0.63 | 59 | 6/28/2025 |
3.0.62 | 62 | 6/28/2025 |
3.0.61 | 59 | 6/28/2025 |
3.0.60 | 65 | 6/27/2025 |
3.0.59 | 74 | 6/27/2025 |
3.0.58 | 126 | 6/26/2025 |
3.0.57 | 138 | 6/25/2025 |
3.0.56 | 137 | 6/25/2025 |
3.0.55 | 119 | 6/21/2025 |
3.0.54 | 231 | 6/18/2025 |
3.0.53 | 131 | 6/18/2025 |
3.0.52 | 131 | 6/18/2025 |
3.0.51 | 144 | 6/17/2025 |
3.0.49 | 141 | 6/17/2025 |
3.0.48 | 135 | 6/17/2025 |
3.0.47 | 294 | 6/13/2025 |
3.0.46 | 284 | 6/12/2025 |
3.0.45 | 281 | 6/11/2025 |
3.0.44 | 283 | 6/11/2025 |
3.0.43 | 278 | 6/11/2025 |
3.0.42 | 281 | 6/11/2025 |
3.0.41 | 286 | 6/11/2025 |
3.0.40 | 277 | 6/10/2025 |
3.0.39 | 285 | 6/10/2025 |
3.0.38 | 282 | 6/10/2025 |
3.0.37 | 275 | 6/10/2025 |
3.0.36 | 284 | 6/10/2025 |
3.0.35 | 263 | 6/9/2025 |
3.0.34 | 167 | 6/3/2025 |
3.0.33 | 148 | 6/3/2025 |
3.0.32 | 142 | 6/3/2025 |
3.0.31 | 147 | 6/2/2025 |
3.0.30 | 139 | 6/2/2025 |
3.0.29 | 143 | 6/2/2025 |
3.0.28 | 64 | 5/30/2025 |
3.0.27 | 145 | 5/28/2025 |
3.0.26 | 138 | 5/28/2025 |
3.0.25 | 140 | 5/28/2025 |
3.0.24 | 146 | 5/27/2025 |
3.0.23 | 146 | 5/27/2025 |
3.0.22 | 142 | 5/27/2025 |
3.0.21 | 142 | 5/27/2025 |
3.0.20 | 140 | 5/27/2025 |
3.0.19 | 141 | 5/27/2025 |
3.0.18 | 95 | 5/25/2025 |
3.0.17 | 96 | 5/25/2025 |
3.0.16 | 67 | 5/24/2025 |
3.0.15 | 83 | 5/23/2025 |
3.0.14 | 88 | 5/23/2025 |
3.0.13 | 91 | 5/23/2025 |
3.0.12 | 94 | 5/23/2025 |
3.0.11 | 107 | 5/23/2025 |
3.0.10 | 121 | 5/23/2025 |
3.0.9 | 117 | 5/23/2025 |
3.0.8 | 124 | 5/23/2025 |
3.0.7 | 139 | 5/23/2025 |
3.0.6 | 143 | 5/22/2025 |
3.0.5 | 137 | 5/22/2025 |
3.0.4 | 140 | 5/21/2025 |
3.0.3 | 139 | 5/21/2025 |
3.0.2 | 139 | 5/21/2025 |
3.0.1 | 136 | 5/21/2025 |