Skip to content

CLI reference

stack list

stacktape stack list lists CloudFormation stacks deployed in a specified AWS region and identifies which ones are Stacktape-managed. It shows each stack's name, status, timestamps, and actual or forecasted spend when budget data is available — giving you a quick inventory of what's running in your account.

Usage

stacktape stack list --region eu-west-1

What it does

When you run stack list, Stacktape queries CloudFormation for all stacks in the specified region (excluding stacks in DELETE_COMPLETE state) and enriches the results with spend data when available. Each stack entry includes:

  • Stack name and stack ID
  • Status (e.g. CREATE_COMPLETE, UPDATE_COMPLETE, UPDATE_ROLLBACK_COMPLETE)
  • Creation time and last update time
  • Whether it's a Stacktape-managed stack — the isStacktapeStack field is derived from the CloudFormation TemplateDescription using Stacktape's isStacktapeStackDescription helper, which recognizes descriptions set by Stacktape during deployment
  • Actual and forecasted spend (when budget data is available)

This is useful for auditing what's deployed, finding forgotten stacks that are still incurring cost, or verifying a deployment landed in the correct region.

Important flags

The only required flag is --region, which determines which AWS region to query.

Use --profile to specify which AWS credentials profile to use, or --aws-account to target a specific AWS account connected in the Stacktape Console.

Use --agent to get JSON output for programmatic consumption. For stack list, agent mode prints the full result as a single pretty-printed JSON array (via JSON.stringify with indentation) and disables the interactive terminal UI. This differs from the generic --agent flag description in the API reference above, which describes JSONL output — stack list uses a JSON array instead.

Note:

The --stage and --project flags are accepted by the CLI parser but are not used in the stack-listing logic. The command lists all non-deleted stacks returned for the selected AWS region and account.

Examples

List all stacks in us-east-1:

stacktape stack list --region us-east-1

List stacks using a specific AWS profile:

stacktape stack list --region eu-west-1 --profile my-aws-profile

Get JSON output for scripting or AI agent consumption:

stacktape stack list --region eu-west-1 --agent

Use a specific AWS account connected in the Stacktape Console:

stacktape stack list --region eu-west-1 --aws-account my-production-account

Options

stacktape stack list8 options
  • -r, --regionRequiredstring
    The AWS region for the operation.

    For a list of available regions, see the AWS documentation.

    Inside a project whose config declares region, the flag is optional and overrides the config.

    21 allowed values: us-east-2us-east-1us-west-1us-west-2ap-east-1ap-south-1
    Show all ap-northeast-3ap-northeast-2ap-southeast-1ap-southeast-2ap-northeast-1ca-central-1eu-central-1eu-west-1eu-west-2eu-west-3eu-north-1me-south-1sa-east-1af-south-1eu-south-1
  • The name of the AWS account to use for the operation.

    The account must first be connected in the Stacktape Console.

    Without it, the account is chosen by --profile, AWS_PROFILE or AWS credentials in environment variables, then by your saved default, then by your organization's only connected account. --aws-account takes precedence over all of them, but AWS credentials in environment variables must then belong to that account.

  • If provided, the command will not execute and will instead print help information.

  • --log-level"info" | "debug" | "error"
    Log Level

    The level of logs to print to the console.

    • info: Basic information about the operation.
    • error: Only errors.
    • debug: Detailed information for debugging.
  • The AWS profile to use for the command.

    You can manage profiles using the aws-profile:* commands and set a default profile with defaults set.

    For commands that use a connected AWS account, --profile (or AWS_PROFILE) selects the connected account the profile belongs to, unless --aws-account is set. The command fails if that account is not connected.

  • --projectstring
    The name of the Stacktape project for this operation.

    Commands that target a stack take it from projectName in the project's config when the flag is absent.

  • --quietboolean
    Hide progress, banners, success messages and hints.

    Command output, warnings and errors are still printed.

  • The stage for the operation (e.g., production, staging, dev-john).

    You can set a default stage using the defaults set command. Stage names use lowercase letters, numbers and dashes, with at least 2 characters. The project name, a dash and the stage form the CloudFormation stack name, which can have at most 128 characters. Stacktape shortens an AWS resource name that would be too long and adds a hash.

  • status — get detailed information about a single deployed stack, including outputs and resource list.
  • stack history — view recent deployment operations and their success/failure status.
  • delete — remove a deployed stack from AWS.