CSQLY.CLI 0.15.0

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

CSQLY Command Line Interface

CSQLY CLI is a command-line tool for executing YAML-based SQL queries against various database systems.

Installation

dotnet tool install --global CSQLY.CLI

Usage

csqly --file <path-to-yaml-file> --connection <connection-string> --type <database-type>

Abbreviated options:

csqly -f <path-to-yaml-file> -c <connection-string> -t <database-type>

Options

Option Abbreviation Description
--file -f Path to the YAML query file
--connection -c Database connection string
--type -t Database type (sqlite, mysql, postgres, sqlserver, oracle)
--help -h Show help information
--version -v Show version information

Examples

SQLite Example

csqly -f query.yaml -c "Data Source=mydb.sqlite" -t sqlite

MySQL Example

csqly -f query.yaml -c "Server=localhost;Database=mydb;User ID=user;Password=password;" -t mysql

YAML Query Example

select:
  columns:
    - id
    - name
    - email
  from: users
  where:
    active: true
  limit: 10

More Information

For full documentation, visit the GitHub repository.

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.21.0 141 5/29/2025
0.20.0 145 5/29/2025
0.19.0 189 4/10/2025
0.15.0 146 3/13/2025
0.14.0 147 3/13/2025
0.13.0 146 3/13/2025
0.1.0 150 3/13/2025