OracleSqlParser.Cli 1.0.0-rc.1

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

OracleSqlParser.Cli

Command-line tool for OracleSqlParser, a hand-written parser for Oracle SQL and PL/SQL. It parses the input and prints the abstract syntax tree, either as JSON or as the compact tree used by the library's shape tests.

Install

dotnet tool install -g OracleSqlParser.Cli --prerelease
oraclesqlparser -e "SELECT 1 FROM dual"

The tool is built for net8.0 and net10.0. Use --tool-path <dir> instead of -g to install it into a directory of your choice.

Usage

oraclesqlparser [--shape] [--positions] [--compact] [-f file | -e "sql"]
Flag Meaning
-e "sql" Parse the SQL text given on the command line.
-f file Read the SQL from a file.
(neither) Read the SQL from standard input.
--shape Print each top-level statement as a compact tree (one line per statement) instead of JSON.
--positions Include Start/End/Line/Column for each node in the JSON output. Has no effect with --shape.
--compact Print single-line JSON instead of indented JSON. Has no effect with --shape.
-h, --help Show usage.

Syntax errors are written to standard error, one per line. The tree is still printed for the statements that parsed.

Exit codes: 0 when the input parsed without errors, 1 when there were parse errors, 2 for an unknown argument.

Examples:

oraclesqlparser -f migration.sql --positions > migration.json
echo "UPDATE emp SET sal = sal * 1.1 WHERE deptno = 10" | oraclesqlparser --shape

See the main README for the library API and the coverage matrix.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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
1.0.0 87 11/21/2026
1.0.0-rc.4 59 11/20/2026
1.0.0-rc.3 62 11/19/2026
1.0.0-rc.2 60 11/18/2026
1.0.0-rc.1 62 11/16/2026
0.7.0-preview.1 59 11/14/2026
0.6.0-preview.1 58 11/14/2026
0.5.0-preview.1 64 11/14/2026