Skip to main content
This document covers how to build and distribute the aipkg CLI binary and AI•Pkg.Core NuGet package. For the public API surface and command syntax, see the SDK Interface spec.

AI•Pkg.Core NuGet Package

Project Configuration

Add to AI•Pkg.Core.csproj:

Publishing to NuGet.org

  1. Set <PackageVersion> in AI•Pkg.Core.csproj
  2. dotnet pack -c Release
  3. dotnet nuget push AI•Pkg.Core.{version}.nupkg --api-key {key} --source https://api.nuget.org/v3/index.json
CI/CD: GitHub Actions workflow on v* tag push.

aipkg CLI: Native AOT

Why Native AOT

The aipkg CLI ships as a single self-contained binary with no .NET runtime requirement. Users on platforms where .NET is not installed (common for Claude Code users) get a zero-dependency install.

Publish Configuration

Add to AI•Pkg.CLI.csproj:
Publish command per platform:

RID Matrix

Target binary size: < 30 MB per platform.

Distribution Channels

GitHub Actions CI/CD Pipeline


TypeScript SDK Strategy (Post-MVP)

The TypeScript SDK is scoped to post-MVP. When implemented:
  1. @aipkg/core — Registry client and manifest parsing. Published to npm.
  2. Platform packages@aipkg/claude-code, @aipkg/copilot, @aipkg/cursor — thin wrappers with platform-specific install path logic.
Source lives in a separate repository (aipkg-js). Build tooling: tsc + tsup for dual CJS/ESM output. See SDK Interface spec for the normative TypeScript API surface.