DsDevelopment.FileZillaServer.AdminClient 0.1.0

dotnet add package DsDevelopment.FileZillaServer.AdminClient --version 0.1.0
                    
NuGet\Install-Package DsDevelopment.FileZillaServer.AdminClient -Version 0.1.0
                    
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="DsDevelopment.FileZillaServer.AdminClient" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DsDevelopment.FileZillaServer.AdminClient" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DsDevelopment.FileZillaServer.AdminClient" />
                    
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 DsDevelopment.FileZillaServer.AdminClient --version 0.1.0
                    
#r "nuget: DsDevelopment.FileZillaServer.AdminClient, 0.1.0"
                    
#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 DsDevelopment.FileZillaServer.AdminClient@0.1.0
                    
#: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=DsDevelopment.FileZillaServer.AdminClient&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=DsDevelopment.FileZillaServer.AdminClient&version=0.1.0
                    
Install as a Cake Tool

DsDevelopment.FileZillaServer.AdminClient

.NET client for the administration interface of FileZilla Server 1.x. Use it to automate user and group management. It does the same job as the users and groups pages of the FileZilla Server administration UI.

For FileZilla Server 0.9.x, use Miracle.FileZilla.Api instead.

This project is not affiliated with the FileZilla project.

Preview. The library currently supports connecting, logging in, and getting or setting groups and users.

Supported server versions

FileZilla Server only accepts admin clients that use exactly the same admin protocol version as the server, and FileZilla changes that version without notice. Each release of this library therefore supports specific server versions:

Library Admin protocol FileZilla Server
0.1.x 70 1.12.x (tested with 1.12.6)

If the server uses a different protocol version, Connect throws a LoginFailedException that says so.

Usage

The admin interface listens on port 14148 and uses TLS with a self-signed certificate. The client only accepts that certificate if you give it the certificate's SHA-256 fingerprint. You can find the fingerprint in the server's administration settings.

using DsDevelopment.FileZillaServer.AdminClient;
using DsDevelopment.FileZillaServer.AdminClient.Models;

var options = new FileZillaAdminClientOptions
{
    Host = "127.0.0.1",
    Port = 14148,
    CertificateFingerprint = "9d:2e:bd:36:...", // SHA-256, from the server's admin settings
};

using var client = new FileZillaAdminClient(options);
client.Connect("admin password");

var data = client.GetGroupsAndUsers();

var user = new User
{
    Name = "alice",
    Groups = { "Customers" },               // must be an existing group
    MountPoints =
    {
        new MountPoint { VirtualPath = "/", NativePath = @"C:\Ftp\alice", Access = MountAccess.ReadWrite, Flags = MountFlags.AutoCreate },
    },
};
user.SetPassword("secret");                 // PBKDF2, like the server's own UI
data.Users.Add(user);

// Replaces ALL groups and users. save: true also writes the server's configuration file.
client.SetGroupsAndUsers(data, save: true);

Groups work the same way through data.Groups.

Building

dotnet build
dotnet test                                    # offline tests

Versions come from git tags via GitVersion, so no version is set in the project file.

The live tests run against a real server, only when these environment variables are set:

$env:FZ_ADMIN_PASSWORD='...'
$env:FZ_ADMIN_FINGERPRINT='..:..'
# optional: $env:FZ_ADMIN_HOST, $env:FZ_ADMIN_PORT
dotnet test --filter Category=LiveServer

These tests make changes with save: false, so they never touch the server's configuration file, and they revert everything they change.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • net10.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.1.0 0 11/23/2026

Initial preview: TLS connection with certificate pinning, login, get/set groups and users (protocol version 70, FileZilla Server 1.12.x).