Skip to main content
List all stacks defined in your tfts application.

Usage

npx tfts list [options]

Aliases

  • ls

Description

The list command synthesizes your configuration and displays all stacks defined in the application.

Options

OptionTypeDescriptionDefault
--appstringCommand to run the tfts appFrom cdktf.json
--outputstringOutput directorycdktf.out
--skipSynthbooleanSkip synthesis stepfalse

Examples

Basic Usage

npx tfts list

Using Alias

npx tfts ls

Skip Synthesis

npx tfts list --skipSynth

Output

Stack name: production
Stack name: staging
Stack name: development

Multi-Stack Applications

When you have multiple stacks:
const app = new App();
new ProductionStack(app, "production");
new StagingStack(app, "staging");
new DevelopmentStack(app, "development");
app.synth();
The list command helps you see all available stacks before targeting specific ones with other commands:
npx tfts list
npx tfts deploy production