Hyprx.Rex.Console 0.0.0-alpha.4

This is a prerelease version of Hyprx.Rex.Console.
dotnet add package Hyprx.Rex.Console --version 0.0.0-alpha.4
                    
NuGet\Install-Package Hyprx.Rex.Console -Version 0.0.0-alpha.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hyprx.Rex.Console" Version="0.0.0-alpha.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hyprx.Rex.Console" Version="0.0.0-alpha.4" />
                    
Directory.Packages.props
<PackageReference Include="Hyprx.Rex.Console" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hyprx.Rex.Console --version 0.0.0-alpha.4
                    
#r "nuget: Hyprx.Rex.Console, 0.0.0-alpha.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Hyprx.Rex.Console@0.0.0-alpha.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hyprx.Rex.Console&version=0.0.0-alpha.4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Hyprx.Rex.Console&version=0.0.0-alpha.4&prerelease
                    
Install as a Cake Tool

Hyprx.Rex.Console

Overview

The Hyprx.Rex.Console package enables you to create a cli task runner or a make-like experience in .NET within console projects or using dotnet run app.cs (single files).

Usage

using static Hyprx.RexConsole;
using static Hyprx.Shell;

Task("default", () => Echo("Hello, World!"));

Task("hello", () => Echo("Hello from RexKitchen!"));

Task("env", () => Echo(Env.Expand("$MY_VALUE")));

Job("job1", (job) =>
{
    // addes the global task "hello" as a dependency to all tasks in this job
    // which allows you to share common tasks across multiple job
    // and run them as a standalone task as well.
    job.AddGlobalTask("hello");
    job.Task("task1", () => Echo("Task 1"));
    job.Task("task2", () => Echo("Task 2"));
});

Deployment("deploy1",
    (ctx) =>
    {
        Echo("Starting deployment...");
        Echo("Deployment finished.");
    })
    .BeforeDeploy((before) =>
    {
        before.Task("hello", () => Echo("Preparing to say hello..."));
    })
    .WithRollback(() =>
    {
        Echo("Rolling back deployment...");
        Echo("Rollback complete.");
    });

return await RunTasksAsync(args);

Command Line usage

Commands can either use a project or file.

When using a file, you must have .NET 10 or higher and use the following command:

dotnet run -v quiet app.cs

When using a project use the following:

dotnet run -v quiet --project ./path/to/project.csproj

When running an assembly, use:

dotnet ./path/to/myapp.dll

list tasks

dotnet run -v quiet app.cs --list

run a task

dotnet run -v quiet app.cs  hello
dotnet run -v quiet app.cs --task hello

run a job

dotnet run -v quiet app.cs job1
dotnet run -v quiet app.cs --job hello

run a deployment

dotnet run -v quiet app.cs job1
dotnet run -v quiet app.cs --deploy hello

rollback a deployment

dotnet run -v quiet app.cs --rollback hello

delete a deployment

dotnet run -v quiet app.cs --destroy hello
Product Compatible and additional computed target framework versions.
.NET 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0-alpha.4 120 7/10/2025
0.0.0-alpha.3 119 7/10/2025
0.0.0-alpha.2 122 6/25/2025
0.0.0-alpha.1 119 6/25/2025
0.0.0-alpha.0 126 6/17/2025

# Hyprx.Rex.Console Changelog

## 0.0.0

- features