sincecutoff.com
← all changes

cdk publish-assets publishes stack assets without deployment

Introduced 2026-04-01 · score 0.94

HOW TO USE IT

When a CI/CD workflow separates asset publishing from deployment, use the under-development `publish-assets` command to publish assets for the target stack without deploying it.

cdk publish-assets <stack> --unstable=publish-assets
cdk publish-assets --all --unstable=publish-assets
cdk publish-assets <stack> --unstable=publish-assets --force

WHY THIS HELPS

In a CI/CD workflow that separates asset publishing from deployment, publish assets for the target CDK stack without deploying it.

BEFORE THIS CHANGE

Use `cdk deploy`, which combines asset publishing and stack deployment into a single operation.

REQUIREMENTS AND LIMITATIONS

  • Version: v2.1116.0
  • Availability: Under development; opt in with `--unstable=publish-assets`. The scope and API might still change.
  • <stack>: Stack name; used to select the target stack. Omit when using `--all`.
  • --unstable=publish-assets (required): Opts in to the under-development `publish-assets` command.
  • --all: Select all stacks.
  • --force: Force republishing even if assets already exist.
  • Prerequisite: The command is under development; opt in with `--unstable=publish-assets`.
  • Publishes assets for specified stack(s) without performing deployment.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card