kanject new [template] Scaffold a service from a template, then run init on it. Omit the template on a terminal to choose one.
- Example
kanject new webapi --name Acme.Analytics- Guide
- Project Templates
Every Kanject CLI command: what it does, an example where it helps, and the guide that teaches it. New to the CLI? Pick what you ship and follow its path; the rest of the page is for looking things up.
Run bare kanject inside a project for a short landing screen: each workflow set up there, and the next command for it. kanject --help prints every command. Cloud commands sit under a provider key, kanject aws; the rest work on the project itself.
kanject new [template] Scaffold a service from a template, then run init on it. Omit the template on a terminal to choose one.
kanject new webapi --name Acme.Analyticskanject init Review and enroll an existing project: writes the manifest, stage files and applicable wiring after interactive confirmation. Back changes the plan; cancel leaves the project untouched.
kanject init --yes --service phonebook-app --stages dev,stage,prodkanject doctor Pre-flight checks of the toolchain, and of a stage when you name one.
kanject doctor --env devkanject update Update the CLI and its template pack, then verify the new install.
kanject update --check-only--non-interactive, not --yeskanject install provider [key] Install an optional provider plugin. Omit the key on a terminal to choose from the curated providers.
kanject completion <SHELL> Generate Bash, Zsh, or PowerShell 7 completion from the loaded command tree; writes only the script to stdout.
kanject completion zshkanject add packagefunctionstagelibenvparamsecretdistributable Register a Lambda entry, a stage, a cross-repo dependency, a distributable, or a plain / Parameter Store / Secrets Manager value in the manifest and stage files. add package adds a Kanject library: see Sign-in and paid libraries.
kanject add stage qakanject add env --stage dev ASPNETCORE_ENVIRONMENT Developmentkanject test Run the service locally with the right runner for its project type.
kanject test --watchdotnet watch (webapi projects)kanject env Show a stage's env bindings as written in its stage file, with secret: references masked. Makes no AWS call.
kanject env --stage devsecret: references; never fetches valueskanject sync Resolve cross-repo dependencies into the lockfile and generated MSBuild imports.
kanject sync --lockedkanject configure distribution Set up how a desktop app is distributed. With no subcommand, interactively add a destination.
kanject configure distribution list --env prodls)rm)release-kit)kanject migrate Adopt legacy cross-repo <ProjectReference>s into the manifest, or move the manifest to a newer schema.
kanject migrate --dry-runkanject aws deploy Build and ship a stage: Lambda, ECS Fargate, or a static site, per entry.
kanject aws deploy --env dev--no-build is the compatibility aliaskanject aws rollback Point a stage back at a prior release from the deployment ledger, with no rebuild: the Lambda alias, the previous ECS task definition, or an earlier static-site release.
kanject aws rollback --env prod --to previous-stableprevious or previous-stable; left out on a terminal, you pick from a listkanject aws deployments listshowmarkgc Read the S3 deployment ledger, mark releases stable or broken, and delete artifacts outside the rollback window.
kanject aws deployments list --env prodkanject aws preview publishlsurlextendrm Publish static-site previews, and list, extend, or remove previews. url resolves static-site previews.
kanject aws configure http Configure managed REST access, external ownership, or pending HTTP setup for an existing Lambda stage.
/healthkanject aws configure vpcdomain Interactive wizards that validate and write a stage's network and custom-domain config.
kanject aws pipeline upinitbootstrappromotestatus Provision a service's CodePipeline (up is the one-command path). promote and status serve library releases.
--select to choose a fetched release tipInside a repository with packaging/release.pipeline.json, both read the rehearsal project and region from it, so --rehearsal-project and --region are only overrides. --commit takes a full or abbreviated SHA; one that is ambiguous or unknown fails with KANCLI608.
kanject aws distribute Build a desktop app's distributables and publish them to S3, CodeArtifact, or (with the github plugin) GitHub Releases.
kanject aws distribute --env prod --candidate-rc.N release candidatekanject github distribute Publish only the distribution cells mapped to GitHub Releases.
For repositories whose product is one or more NuGet packages. kanject pkg is the short alias for every kanject packages command. Guides: Publish .NET packages, Release the Pricing SDK.
kanject packages initplanverify Scaffold the repository policy, classify every packable project, and gate the release so no private package leaks into a public one. verify is the blocking CI gate.
kanject packages verifykanject packages intent add Record a change's release intent: whether it needs a minor or major release. Writes packaging/intent/<date>-<slug>.json to commit with the change; a bug fix needs none, because no declaration means patch.
kanject packages intent add --part minor --note "Adds IAuthProvider"kanject packages release The release front door, no flags needed. Resolves the declared part, plans and applies the wave on a release branch, pushes, follows the hosted rehearsal, promotes, and stops at approval.
kanject packages releaseaws pipeline promote command--select opens a release-tip picker, and --commit accepts a full or abbreviated SHAwave or none: whether this checkout's version releasesKanject's paid libraries restore from the Kanject feed, not nuget.org. Sign the machine in once; the CLI keeps the feed credential in your NuGet config.
kanject login Sign this machine in to Kanject through the browser, like aws sso login. The device key stays in the OS credential store.
kanject login--refresh forces it, --json for scripts)kanject add package <ID> Add a Kanject package to a project. Public ones come from nuget.org; paid ones come from the Kanject feed with your licence, after the CLI signs the feed credential into NuGet.
kanject add package Kanject.Core.NoSqlDatabasekanject access Set NuGet up for paid Kanject libraries without adding one: the feed token as the kanject_feed credential in your user-level config, the feed's source and package source mapping in the repository's.
kanject access --servicekanject logout Sign this machine out: removes its device key from the OS credential store and the feed credential from NuGet config.
The steps packages release and the hosted pipeline run for you, the building blocks for a custom CI host, and tools for less common setups. You can ship a service or a library without touching any of them.
kanject packages bump previewplanapply Preview which packages a change reaches, prove the version wave, then apply the sealed plan with no build or network. You choose patch, minor, or major; the CLI works out what has to move with it.
--all with the part the release commit declareskanject packages release prepare Prepare the verified release bundle. Projects with public build-input contracts require an explicit stage.
kanject packages graphfeedsversions Export the evaluated dependency graph, show what the feed environment variables resolve to, and list which current versions are already claimed on their feeds.
kanject packages scope carry Complete a --package release's approval set with the published bytes of everything outside the scope.
kanject packages publish Push packed packages in dependency order, with release plans, preflight evidence, and a resumable journal.
kanject packages next-rc Take the next -rc.N from the candidate feed.
kanject packages candidate materialize Derive a candidate wave from verified stable packages.
kanject packages smoke restoretemplatefeed Prove consumers restore against local packs or the actual candidate feed.
kanject packages ci Print the day-to-day verify gate as a CodeBuild or GitHub Actions snippet. It publishes nothing; releases run through packages release or your own workflow.
kanject aws packages release pipeline validateup Check and provision the hosted library release pipeline described in packaging/release.pipeline.json.
--plan-filekanject aws change-feeds plan Print the DynamoDB change-feed documents each Lambda entry carries, how the manifest's aws.changeFeeds claims bind them, and what a deploy would render or check. Read-only; never builds.
kanject aws web-adapter upgrade Pin the newest Lambda Web Adapter layer this CLI has verified in manifest.lock.json, through kanject sync. No AWS call.
kanject aws template migrate Preview or apply migration from generated stage templates to a committed template.json base.
kanject msbuild statusenable Inspect or set up the generated dependency wiring and git hooks.
Still accepted so existing scripts keep running, but drop them from new ones:
kanject new --paid / --free and kanject update --paid — every template is free since 1.0.53; they only print a warning.kanject aws pipeline up --region — renamed --pipeline-region, because it sets where the pipeline stack lives, not where the service deploys.kanject add lambda — the older name for kanject add function. It keeps working.