CLI Workflows

Use workflows when you know the job you are trying to complete and need the right command sequence rather than a command-by-command reference.

Scaffold to deploy
Create a project, configure dev, add a secret, deploy, then rehearse rollback while the context is fresh.
Add a stage
Provision AWS resources, register the stage, customize env, verify, and deploy.
Local real-env test
Resolve stage env into the local process so cloud-only bugs can be reproduced with local breakpoints.

Preview stacks

bash
kanject aws preview deploy --name pr-184 --env dev
kanject aws preview url --name pr-184 --env dev
kanject aws preview rm --expired --env dev

Preview stacks inherit region/profile/parameter path from a base stage, get a TTL, and can be cleaned by CI.

CI integration

bash
kanject aws pipeline init --env prod
kanject aws deploy --env prod --yes

Use pipeline init for AWS-native CodePipeline/CodeBuild, or run kanject aws deploy --yes from GitHub Actions, GitLab, Buildkite, or any runner with .NET and AWS credentials.

Local test with real env

bash
kanject test --pull-env --env stage
Secret safety
--pull-env is intentionally explicit and warns when SecureString or Secrets Manager values enter the local process.