DbfSharp 0.2.4

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global DbfSharp --version 0.2.4
                    
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.4
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DbfSharp&version=0.2.4
                    
nuke :add-package DbfSharp --version 0.2.4
                    

DbfSharp CLI Tool

A cross-platform command-line tool for reading and processing DBF (dBASE) files with high performance and multiple output formats.

Installation

Install as a global .NET tool:

dotnet tool install -g DbfSharp

Requirements

  • .NET 9.0 or later

Features

  • High-performance reading optimized for large DBF files
  • Cross-platform support (Windows, macOS, Linux)
  • Multiple output formats (table, CSV, TSV, JSON)
  • Standard input/output for pipeline integration
  • Detailed file metadata analysis
  • Field filtering and record limiting
  • Support for deleted record inspection

Commands

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, reads from standard input.

Options

Option Alias Description Default
--format -f Output format (table, csv, tsv, json) table
--output -o Output file path (writes to stdout if not specified)
--limit -l Maximum number of records to display
--skip -s Number of records to skip from the beginning 0
--show-deleted Include records marked as deleted
--fields Comma-separated list of fields to include (e.g., "ID,NAME")
--verbose -v Enable verbose output with file information
--quiet -q Suppress all informational output
--encoding Override character encoding for text fields
--ignore-case Case-insensitive field name matching true
--trim-strings Trim whitespace from string fields true
--ignore-missing-memo Continue if 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, reads from standard input.

Options

Option Alias Description Default
--fields Show field definitions table true
--header Show header information table true
--stats Show record statistics table true
--memo Show memo file information true
--verbose -v Show additional details including sample data
--quiet -q Suppress all informational output
--encoding Override character encoding
--ignore-missing-memo Continue if memo file is missing true

Usage

# display as a simple table
dbfsharp read data.dbf

# export to CSV
dbfsharp read data.dbf --format csv --output data.csv

# analyze file structure and metadata
dbfsharp info data.dbf

# verbose flag for more detailed output
dbfsharp info data.dbf --verbose

# read from stdin and filter fields
cat data.dbf | dbfsharp read --fields "NAME,SALARY,DEPARTMENT"

# read first 100 records, skipping the first 50
dbfsharp read data.dbf --limit 100 --skip 50

# export to JSON including deleted records
dbfsharp read data.dbf --format json --show-deleted --output data.json

# override encoding
dbfsharp read old_file.dbf --encoding cp1252

# extract specific fields and process with other tools
dbfsharp read data.dbf --format csv --fields "ID,NAME" | sort | head -10

# convert to JSON and process with jq
dbfsharp read data.dbf --format json | jq '.[] | select(.SALARY > 50000)'
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 303 11/10/2025
0.2.8 191 10/14/2025
0.2.7 231 9/4/2025
0.2.6 217 9/4/2025
0.2.5 199 9/3/2025
0.2.4 201 8/18/2025
0.2.3 263 8/6/2025
0.2.2 214 8/4/2025
0.2.1 111 8/1/2025
0.2.0 141 8/1/2025
0.1.7 194 7/30/2025
0.1.6 180 7/29/2025
0.1.5 174 7/29/2025
0.1.4 188 7/28/2025
0.1.3 197 7/28/2025