Hyperbee.XS.Cli 1.3.1-develop.250414151300

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

XS.Cli: Cli tooling for Hyperbee.XS

What is XS?

XS is a lightweight scripting language designed to simplify and enhance the use of C# expression trees. It provides a familiar C#-like syntax while offering advanced extensibility, making it a compelling choice for developers building domain-specific languages (DSLs), rules engines, or dynamic runtime logic systems.

XS.Cli added dotnet commands like:

  • run
  • compile
  • repl

Install Xs.Cli using

you can install Xs.Cli using the following command:

dotnet tool install -g hyperbee.xs.cli

or following Microsoft's documentation

Run

xs run script

or:

xs run file ./script.xs

Compile (.NET 9 or later)

xs compile -s "1 + 1" -o "output.dll"

Repl

xs repl

Examples

Run a script

xs run script "(1-5);"
Result: -4

Show Expression Tree

xs run script "if( true ) 1+1; else 0;" -s
Result:
using System;                                                                                                                                                  │
using System.Linq.Expressions;                                                                                                                                 │
                                                                                                                                                                │
var expression = Expression.Condition(                                                                                                                         │
  Expression.Constant(true),                                                                                                                                   │
  Expression.Add(                                                                                                                                              │
    Expression.Constant(1),                                                                                                                                    │
    Expression.Constant(1)                                                                                                                                     │
  ),                                                                                                                                                           │
  Expression.Constant(0),                                                                                                                                      │
  typeof(Int32)                                                                                                                                                │
);

Run a repl session

xs repl
Starting REPL session. Type "run" to run the current block, "exit" to quit, "print" to see variables.

> print
┌──────┬───────┐
│ Name │ Value │
└──────┴───────┘
> var x = 2;
> var y = 5;
> x + y;
> run
Result:
┌─────────────────────────────────────────────────────────────────────────────────────┐
│ 7                                                                                   │
└─────────────────────────────────────────────────────────────────────────────────────┘
> print
┌──────┬───────┐
│ Name │ Value │
├──────┼───────┤
│ x    │ 2     │
│ y    │ 5     │
└──────┴───────┘
> exit

Credits

Special thanks to:

Contributing

We welcome contributions! Please see our Contributing Guide for more details.

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 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
1.7.3 49 11/28/2026
1.6.3 158 8/31/2026
1.6.2 211 1/26/2026
1.3.3 258 5/9/2025
1.3.2 273 5/8/2025
1.3.2-develop.250506145226 216 5/6/2025
1.3.2-develop.250505191148 217 5/5/2025
1.3.2-develop.250505185108 237 5/5/2025
1.3.2-develop.250505155011 218 5/5/2025
1.3.1 369 4/14/2025
1.3.1-develop.250414151300 287 4/14/2025
1.2.3 290 4/2/2025
1.2.2 304 3/31/2025
1.2.1 295 3/19/2025
1.2.0 268 2/11/2025
1.1.0 265 2/10/2025
1.1.0-develop.250210210309 211 2/10/2025