Quickstart
Install
Section titled “Install”PiSharp’s CLI is a .NET tool. It needs the .NET 10 SDK.
dotnet tool install -g PiSharp.CliThen run it:
pisharp --helpUpdate or uninstall
Section titled “Update or uninstall”dotnet tool update -g PiSharp.Clidotnet tool uninstall -g PiSharp.CliThe libraries are separate NuGet packages. See the SDK.
Build from source
Section titled “Build from source”You need .NET SDK 10.0.401 exactly: global.json pins it with roll-forward disabled.
The committed NuGet.Config clears all package feeds. The default CLI build uses YamlDotNet for prompt-template frontmatter, so it needs that package from a local cache, or from nuget.org added as a source.
git clone https://github.com/jkelly/PiSharp.gitcd PiSharpdotnet build src/PiSharp.Cli/PiSharp.Cli.csproj -c Release -p:RestoreSources=https://api.nuget.org/v3/index.json -p:RestoreLockedMode=falsedotnet src/PiSharp.Cli/bin/Release/net10.0/PiSharp.Cli.dll --helpThe committed lock files still record the sibling projects at their pre-0.99.1 version, so the build above restores without lock-file checking. This matches what the release pipeline does.
Run the offline tests
Section titled “Run the offline tests”These test projects use fake HTTP handlers and make no live provider requests:
dotnet run --project tests/PiSharp.AzureResponses.Tests -c Release -p:RestoreLockedMode=falsedotnet run --project tests/PiSharp.MistralConversations.Tests -c Release -p:RestoreLockedMode=false