FieldCure.ToolHost.Cli 0.1.8

dotnet tool install --global FieldCure.ToolHost.Cli --version 0.1.8
                    
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 FieldCure.ToolHost.Cli --version 0.1.8
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FieldCure.ToolHost.Cli&version=0.1.8
                    
nuke :add-package FieldCure.ToolHost.Cli --version 0.1.8
                    

FieldCure.ToolHost.Cli (fcdnx)

Run .NET tools from NuGet without the .NET SDK — a drop-in dnx / dotnet tool execute replacement for environments where only the .NET runtime is available.

Bridge until Microsoft ships standalone dnx (dotnet/sdk#49796).

Install

dotnet tool install -g FieldCure.ToolHost.Cli

Quick Start

fcdnx dotnetsay
fcdnx dotnetsay@2.1.0
fcdnx --prerelease MyTool.Preview
fcdnx --add-source https://feed.example.com/v3/index.json MyCorp.Tool
fcdnx --interactive YourCorp.Tool
fcdnx --no-inherit-env --env MY_TOOL_API_KEY=secret MyTool
fcdnx dotnetsay -- "Hello from a runtime-only host!"

Common Flags

Flag Meaning
<PACKAGE_ID>[@VERSION] Tool to run; append @VERSION to pin
--prerelease Include prerelease versions
--source <URI> Restrict to one source
--add-source <URI> Add a source (repeatable)
--interactive Allow credential plugin prompts
--no-inherit-env Do not forward the full ambient environment to the tool
--env <KEY=VALUE> Set an environment variable for the launched tool
--unset-env <KEY> Remove an environment variable from the launched tool
--verbosity <LEVEL> q/m/n/d/diag
--policy <POLICY> AlwaysLatest (default), CachedWithRefresh, CachedOnly
-- Everything after goes to the tool

Run fcdnx --help for the full list.

By default, tools inherit the fcdnx process environment to match dnx and normal process behavior. Use --no-inherit-env for untrusted tools or MCP servers; fcdnx then supplies only a curated platform baseline plus variables you pass with --env.

Exit Codes

0 on success; tool's own code if non-zero. ToolHost-specific failures follow sysexits.h (6470). See the flag-compatibility doc.

Requirements

  • .NET 8 or .NET 10 runtime (no SDK needed)

See Also

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
0.1.8 0 6/9/2026
0.1.7 0 6/9/2026
0.1.6 48 6/6/2026
0.1.5 100 5/23/2026
0.1.4 99 5/19/2026
0.1.3 90 5/19/2026
0.1.2 89 5/18/2026
0.1.1 94 5/18/2026
0.1.0 94 5/18/2026

v0.1.8 — Forwards stdin to the launched tool and bridges stdio with raw byte copies, so long-lived stdio servers (e.g. MCP) receive requests and stay connected. Previously the child's stdin was closed at startup, causing stdio servers to shut down immediately after connecting. Completes the MCP-hosting fix begun in v0.1.7 (stderr logging). See RELEASENOTES.ToolHost.Cli.md on GitHub for the full notes.