Kanject.Cli 2.6.1

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

Kanject.Cli

A single .NET global tool that drives C# AWS services from dotnet new to kanject aws deploy --env prod — wrapping the existing dotnet/AWS toolchain so your inner loop stays vanilla and the Lambda, ECS Fargate, static-site, and coupled full-stack deploy plumbing disappears behind one committed manifest.

Install

dotnet tool install --global Kanject.Cli

Requires the .NET 10 SDK or later (the .NET 11 SDK installs its .NET 11 build). The aws, msbuild, and github providers ship in the box — no extra installs.

Choose a workflow

  • Deploy applications: Lambda, ECS Fargate, or a coupled SPA/backend. Choose independent service roots, a shared multi-Lambda stack, or a coordinated frontend/backend pair.
  • Publish libraries: kanject packages init, then kanject packages plan and kanject packages verify from the package repository root.
  • Distribute desktop apps: initialize the product manifest, register with kanject add distributable, and configure delivery destinations.

Start at Getting started for workflow selection. Service commands run from the directory containing that service's manifest, which can differ from the repository or solution root. The current static-site shape requires a coupled backend.

Discover commands with kanject --help and kanject aws --help.

What it does

  • Bootstrap — kanject new scaffolds a project from a bundled template and initializes it; kanject init adds the manifest, stage files and lock file to an existing project.
  • Deploy — kanject aws deploy --env <stage> resolves cross-repo dependencies and env, builds the provider artifacts, and ships the manifest's target (Lambda, ECS Fargate, static site, or a coupled backend + site), recording every release in an S3 deployment ledger.
  • Rollback — kanject aws rollback --env prod shows the last 10 deployments with dates, statuses, targets, and commit summaries; pick one and Kanject does the target-native promotion with the prior artifact still immutable in S3/ECR.
  • And more — cross-repo dependency sync, a local test runner, env/param/secret management, static-site previews and ephemeral backend previews (kanject aws deploy --preview <NAME>), DynamoDB change feeds, a managed streaming Function URL and CloudFront edge, VPC & custom-domain wiring, multi-function services, AWS-native pipeline scaffolding, NuGet package publishing, desktop distribution, and sign-in for paid Kanject packages (kanject login, kanject add package).

It invokes — never replaces — dotnet new, dotnet build, and dotnet lambda, and drives AWS services through their SDK APIs (including CloudFormation change sets). The dotnet-native experience stays; kanject only owns the AWS plumbing that doesn't have a great answer in the box.

Learn more

License

Commercial — governed by the Kanject Code Libraries License Agreement (KCLLA); see the bundled LICENSE.md. © Kanject Business Solutions.

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.  net11.0 is compatible. 
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
2.6.1 74 11/25/2026
2.6.0 89 11/24/2026
2.5.0 180 11/16/2026
2.4.0 107 11/16/2026
2.3.0 135 11/15/2026
2.2.0 151 11/14/2026
2.1.0 113 11/13/2026
2.0.2 113 11/13/2026
2.0.1 105 11/13/2026
2.0.0 110 11/12/2026
1.5.1 131 11/11/2026
1.5.0 132 11/10/2026
1.4.0 116 11/4/2026
1.3.0 127 11/2/2026
1.2.0 163 11/1/2026
1.1.0 122 11/1/2026
1.0.79 117 10/30/2026
1.0.78 111 10/30/2026
1.0.77 114 10/29/2026
1.0.76 108 10/29/2026
Loading failed

- The CLI runs on Kanject Core 4 and AWS SDK for .NET 4.1.
 The Kanject Core libraries the host and its providers load move to their 4.x line, the one that dropped `net8.0` and added `net11.0`, and every `AWSSDK.*` package the AWS provider ships moves from 4.0 to 4.1. No command, flag, output or diagnostic changes.
 - Kanject Core: `Kanject.Core` 3.15.0 → 4.3.0, `Kanject.Core.Annotations` 3.15.0 → 4.0.1, `Kanject.Core.Features` 3.13.4 → 4.0.0, `Kanject.Core.Features.Entitlements` 3.14.0 → 4.2.0, `Kanject.Core.Packages` 3.13.3 → 4.0.1, `Kanject.Core.Packages.Annotations` 3.15.1 → 4.0.0, and the `*.Annotations.Attributes` packages 3.13.1 → 4.0.0.
 - `Microsoft.Extensions.DependencyInjection` on `net10.0` moves from 10.0.14 to 10.0.15, the floor Kanject Core 4 asks for.
 - The AWS provider no longer references `System.Formats.Cbor` itself. `AWSSDK.Extensions.CborProtocol` 4.1 asks for 11.0.0, which is past GHSA-vmv3-wvjp-wqpj, so the copy under `providers/aws/` moves from 10.0.15 to 11.0.0 through the SDK.

- `kanject login` cancels a sign-in it backs out of.
 Ctrl+C, a termination or a hang-up while it waits for approval, the device limit left as it is, a lost licence service, a code expired by this machine's clock, or an answer the CLI does not understand used to leave the session approvable in the portal for its ten minutes. The portal then took an approval nothing would collect. The CLI now cancels the session on the licence service (`POST activation-sessions/{id}/cancel` with the poll key), so the approval page says it was cancelled on the device.
 - Stopping exits with 130 (Ctrl+C), 143 (termination) or 129 (hang-up) and stores nothing. A second Ctrl+C ends the CLI at once. Ctrl+C at the device-limit prompt, and a console close or a shutdown on Windows, cancel the session first and then end the CLI as before.
 - Stopping after an approval, while the device key is being stored, signs the new device out again. It used to stay signed in with no key behind it, holding a seat until someone signed it out.
 - A release at the device limit is never cut short: a Ctrl+C during it is honoured once its answer is read, and if that answer signed the machine in, the sign-in finishes.
 - The cancel is best effort: the CLI waits for it at most three seconds, and says so when the service did not confirm it, in which case the session only runs out. The failure it reports does not change. A session that was approved, declined or ended on the service is never cancelled, since a cancel after an approval would sign the machine out again.
 - `KANCLI625` now says why a sign-in was declined: in the portal, on this machine, or because the person who approved it left the organisation. It used to print the raw reason.