DbfSharp 0.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global DbfSharp --version 0.2.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local DbfSharp --version 0.2.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DbfSharp&version=0.2.2
                    
nuke :add-package DbfSharp --version 0.2.2
                    

DbfSharp - DBF File Reader Tool

A cross-platform, command-line tool for reading and processing DBF (dBASE) database files, designed for performance and ease of use.

Installation

Install as a global .NET tool:

dotnet tool install -g DbfSharp

Requirements

  • .NET 9.0 runtime or later

Core Features

  • High-Performance Reading: Optimized for speed, even with large DBF files.
  • Cross-Platform: Runs on Windows, macOS, and Linux.
  • Multiple Output Formats: Export data to table, csv, tsv, and json.
  • Standard Input/Output: Seamlessly integrates into your data processing pipelines.
  • Detailed File Analysis: The info command provides in-depth metadata, from header details to field definitions.

Usage

read

Reads and displays the contents of a DBF file.

Syntax

dbfsharp read [file-path] [options]

Arguments

  • file-path: Path to the DBF file. If omitted, dbfsharp will read from standard input.

Options

Option Alias Description Default
--format -f Sets the output format (table, csv, tsv, json). table
--output -o Specifies the path for the output file. stdout
--limit -l The maximum number of records to display.
--skip -s Skips a specified number of records from the beginning. 0
--show-deleted Includes records that are marked as deleted.
--fields A comma-separated list of fields to include (e.g., "ID,NAME").
--verbose -v Enables verbose output, including file information.
--quiet -q Suppresses all informational output.
--encoding Overrides the character encoding for reading text fields.
--ignore-case Treats field names as case-insensitive. true
--trim-strings Trims leading and trailing whitespace from string fields. true
--ignore-missing-memo Prevents failure if a required memo file is missing. true

info

Analyzes a DBF file and displays its metadata and structure.

Syntax

dbfsharp info [file-path] [options]

Arguments

  • file-path: Path to the DBF file. If omitted, dbfsharp will read from standard input.

Options

Option Description Default
--fields Shows a table with field definitions. true
--header Displays a table with header information. true
--stats Shows a table with record statistics. true
--memo Displays information about the memo file. true
--verbose -v Shows additional details, including sample data.
--quiet -q Suppresses all informational output.
--encoding Overrides the character encoding.
--ignore-missing-memo Prevents failure if a memo file is missing. true

Examples

Reading Data

  • Display a DBF file in a table:
    dbfsharp read data.dbf
    
  • Export to CSV:
    dbfsharp read data.dbf --format csv --output data.csv
    
  • Read from stdin and select specific fields:
    cat data.dbf | dbfsharp read --fields "NAME,SALARY"
    

Analyzing Files

  • Get a full analysis of a DBF file:
    dbfsharp info data.dbf
    
  • Get a verbose analysis, including sample data:
    dbfsharp info data.dbf --verbose
    
Product 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.

This package has no dependencies.

Version Downloads Last Updated
0.2.9 302 11/10/2025
0.2.8 190 10/14/2025
0.2.7 230 9/4/2025
0.2.6 217 9/4/2025
0.2.5 197 9/3/2025
0.2.4 200 8/18/2025
0.2.3 263 8/6/2025
0.2.2 214 8/4/2025
0.2.1 110 8/1/2025
0.2.0 140 8/1/2025
0.1.7 193 7/30/2025
0.1.6 180 7/29/2025
0.1.5 173 7/29/2025
0.1.4 187 7/28/2025
0.1.3 196 7/28/2025