gist 1.0.6
dotnet tool install --global gist --version 1.0.6
dotnet new tool-manifest
dotnet tool install --local gist --version 1.0.6
#tool dotnet:?package=gist&version=1.0.6
nuke :add-package gist --version 1.0.6
Run C# code programs from GitHub gists.
Usage: [dnx] gist [OPTIONS] <gistRef> [<appArgs>...]
Arguments:
<GIST_REF> Reference to gist file to run, with format owner/gist[@commit][:path]
@commit optional gist commit (default: latest)
:path optional path to file in gist (default: program.cs or first .cs file)
Examples:
* kzu/0ac826dc7de666546aaedd38e5965381 (tip commit and program.cs or first .cs file)
* kzu/0ac826dc7de666546aaedd38e5965381@d8079cf:run.cs (explicit commit and file path)
Can be an alias previously set with --dnx-alias.
<appArgs> Arguments passed to the C# program that is being run.
Options:
--dnx-aot Enable dotnet AOT defaults for run file.cs. Defaults to false.
--dnx-alias ALIAS Assign an alias on first usage which can be used instead of the full ref.
--dnx-debug Launch the debugger before running.
--dnx-force Force download, skipping ETag checking.
The gist does not need to be public. Private repos will leverage the same authentication
used by your local git to access the file, via the Git Credential Manager.
Example:
dnx gist kzu/52b115ce24c7978ddc33245d4ff840f5 dotnet rocks
View source gist:
#:package Spectre.Console@*
using Spectre.Console;
AnsiConsole.MarkupLine($"Hello world from [green]dnx[/] [yellow]gist[/] :rocket: [bold italic]{string.Join(' ', args)}[/]");
When running different files from the same repo+ref, the download will be performed only once. The last download etag is used to avoid downloading on each run.
Open Source Maintenance Fee
To ensure the long-term sustainability of this project, users of this package who generate revenue must pay an Open Source Maintenance Fee. While the source code is freely available under the terms of the License, this package and other aspects of the project require adherence to the Maintenance Fee.
To pay the Maintenance Fee, become a Sponsor at the proper OSMF tier. A single fee covers all of Devlooped packages.
Sponsors
| Product | Versions 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.6 | 380 | 5/4/2026 |
| 1.0.5 | 405 | 3/5/2026 |
| 1.0.4 | 392 | 3/4/2026 |
| 1.0.3 | 436 | 1/17/2026 |
| 1.0.2 | 463 | 1/2/2026 |
| 1.0.1 | 807 | 11/17/2025 |
| 1.0.0 | 795 | 11/17/2025 |
| 1.0.0-alpha | 552 | 11/16/2025 |
| 0.5.1 | 246 | 9/25/2025 |
| 0.5.0 | 230 | 9/25/2025 |
| 0.4.0 | 239 | 9/24/2025 |
| 0.3.1 | 293 | 8/30/2025 |
| 0.3.0 | 280 | 8/30/2025 |
| 0.2.0 | 283 | 8/29/2025 |
| 0.1.2 | 290 | 8/28/2025 |
| 0.1.1 | 280 | 8/28/2025 |
| 0.1.0 | 273 | 8/28/2025 |