Soenneker.GitHub.FileStore
3.0.142
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.142
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.142
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.142" />
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.142" />
<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.142
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.GitHub.FileStore, 3.0.142"
#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.142
#: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.142
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.142
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.132)
- Soenneker.Utils.File (>= 3.0.1980)
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.145 | 15 | 9/24/2025 |
3.0.144 | 12 | 9/24/2025 |
3.0.143 | 32 | 9/23/2025 |
3.0.142 | 30 | 9/23/2025 |
3.0.141 | 53 | 9/22/2025 |
3.0.140 | 252 | 9/18/2025 |
3.0.139 | 281 | 9/17/2025 |
3.0.138 | 270 | 9/17/2025 |
3.0.137 | 280 | 9/16/2025 |
3.0.136 | 276 | 9/16/2025 |
3.0.135 | 128 | 9/14/2025 |
3.0.134 | 143 | 9/10/2025 |
3.0.133 | 129 | 9/10/2025 |
3.0.132 | 137 | 9/9/2025 |
3.0.131 | 130 | 9/9/2025 |
3.0.130 | 140 | 9/9/2025 |
3.0.129 | 138 | 9/9/2025 |
3.0.128 | 127 | 9/8/2025 |
3.0.127 | 102 | 9/5/2025 |
3.0.126 | 152 | 9/4/2025 |
3.0.125 | 152 | 9/4/2025 |
3.0.124 | 151 | 9/3/2025 |
3.0.123 | 144 | 9/3/2025 |
3.0.122 | 146 | 9/3/2025 |
3.0.121 | 149 | 9/3/2025 |
3.0.120 | 161 | 8/31/2025 |
3.0.119 | 172 | 8/29/2025 |
3.0.118 | 153 | 8/25/2025 |
3.0.117 | 158 | 8/25/2025 |
3.0.116 | 84 | 8/22/2025 |
3.0.115 | 152 | 8/21/2025 |
3.0.114 | 136 | 8/19/2025 |
3.0.113 | 114 | 8/17/2025 |
3.0.112 | 117 | 8/16/2025 |
3.0.111 | 60 | 8/16/2025 |
3.0.110 | 86 | 8/15/2025 |
3.0.109 | 132 | 8/15/2025 |
3.0.108 | 142 | 8/12/2025 |
3.0.107 | 141 | 8/12/2025 |
3.0.106 | 141 | 8/12/2025 |
3.0.105 | 138 | 8/12/2025 |
3.0.104 | 141 | 8/11/2025 |
3.0.103 | 144 | 8/11/2025 |
3.0.102 | 133 | 8/11/2025 |
3.0.101 | 136 | 8/11/2025 |
3.0.100 | 134 | 8/11/2025 |
3.0.99 | 133 | 8/11/2025 |
3.0.98 | 99 | 8/10/2025 |
3.0.97 | 211 | 8/7/2025 |
3.0.96 | 224 | 8/5/2025 |
3.0.95 | 217 | 8/5/2025 |
3.0.94 | 221 | 8/5/2025 |
3.0.93 | 53 | 8/1/2025 |
3.0.92 | 108 | 8/1/2025 |
3.0.91 | 106 | 7/30/2025 |
3.0.90 | 107 | 7/30/2025 |
3.0.89 | 107 | 7/29/2025 |
3.0.88 | 108 | 7/28/2025 |
3.0.87 | 160 | 7/26/2025 |
3.0.86 | 306 | 7/25/2025 |
3.0.85 | 548 | 7/23/2025 |
3.0.84 | 544 | 7/22/2025 |
3.0.83 | 111 | 7/18/2025 |
3.0.82 | 174 | 7/14/2025 |
3.0.81 | 115 | 7/12/2025 |
3.0.80 | 168 | 7/9/2025 |
3.0.79 | 150 | 7/9/2025 |
3.0.78 | 153 | 7/9/2025 |
3.0.77 | 149 | 7/9/2025 |
3.0.76 | 158 | 7/8/2025 |
3.0.75 | 141 | 7/5/2025 |
3.0.74 | 78 | 7/5/2025 |
3.0.73 | 94 | 7/4/2025 |
3.0.72 | 145 | 7/4/2025 |
3.0.71 | 193 | 7/3/2025 |
3.0.70 | 172 | 7/2/2025 |
3.0.69 | 148 | 7/2/2025 |
3.0.68 | 165 | 7/2/2025 |
3.0.67 | 165 | 7/1/2025 |
3.0.66 | 178 | 6/28/2025 |
3.0.65 | 105 | 6/28/2025 |
3.0.64 | 104 | 6/28/2025 |
3.0.63 | 78 | 6/28/2025 |
3.0.62 | 83 | 6/28/2025 |
3.0.61 | 78 | 6/28/2025 |
3.0.60 | 84 | 6/27/2025 |
3.0.59 | 94 | 6/27/2025 |
3.0.58 | 144 | 6/26/2025 |
3.0.57 | 162 | 6/25/2025 |
3.0.56 | 153 | 6/25/2025 |
3.0.55 | 138 | 6/21/2025 |
3.0.54 | 249 | 6/18/2025 |
3.0.53 | 152 | 6/18/2025 |
3.0.52 | 151 | 6/18/2025 |
3.0.51 | 154 | 6/17/2025 |
3.0.49 | 162 | 6/17/2025 |
3.0.48 | 154 | 6/17/2025 |
3.0.47 | 313 | 6/13/2025 |
3.0.46 | 307 | 6/12/2025 |
3.0.45 | 301 | 6/11/2025 |
3.0.44 | 303 | 6/11/2025 |
3.0.43 | 289 | 6/11/2025 |
3.0.42 | 302 | 6/11/2025 |
3.0.41 | 305 | 6/11/2025 |
3.0.40 | 297 | 6/10/2025 |
3.0.39 | 308 | 6/10/2025 |
3.0.38 | 302 | 6/10/2025 |
3.0.37 | 295 | 6/10/2025 |
3.0.36 | 304 | 6/10/2025 |
3.0.35 | 282 | 6/9/2025 |
3.0.34 | 187 | 6/3/2025 |
3.0.33 | 176 | 6/3/2025 |
3.0.32 | 160 | 6/3/2025 |
3.0.31 | 165 | 6/2/2025 |
3.0.30 | 156 | 6/2/2025 |
3.0.29 | 162 | 6/2/2025 |
3.0.28 | 82 | 5/30/2025 |
3.0.27 | 163 | 5/28/2025 |
3.0.26 | 157 | 5/28/2025 |
3.0.25 | 158 | 5/28/2025 |
3.0.24 | 164 | 5/27/2025 |
3.0.23 | 164 | 5/27/2025 |
3.0.22 | 159 | 5/27/2025 |
3.0.21 | 161 | 5/27/2025 |
3.0.20 | 159 | 5/27/2025 |
3.0.19 | 158 | 5/27/2025 |
3.0.18 | 112 | 5/25/2025 |
3.0.17 | 115 | 5/25/2025 |
3.0.16 | 86 | 5/24/2025 |
3.0.15 | 91 | 5/23/2025 |
3.0.14 | 108 | 5/23/2025 |
3.0.13 | 109 | 5/23/2025 |
3.0.12 | 113 | 5/23/2025 |
3.0.11 | 125 | 5/23/2025 |
3.0.10 | 141 | 5/23/2025 |
3.0.9 | 136 | 5/23/2025 |
3.0.8 | 142 | 5/23/2025 |
3.0.7 | 157 | 5/23/2025 |
3.0.6 | 162 | 5/22/2025 |
3.0.5 | 156 | 5/22/2025 |
3.0.4 | 160 | 5/21/2025 |
3.0.3 | 158 | 5/21/2025 |
3.0.2 | 148 | 5/21/2025 |
3.0.1 | 156 | 5/21/2025 |