You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/aws-cdk/bin/cdk.ts
+3-1
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,6 @@ async function parseCommandLineArguments() {
70
70
.option('path-metadata',{type: 'boolean',desc: 'Include "aws:cdk:path" CloudFormation metadata for each resource (enabled by default)',default: true})
71
71
.option('asset-metadata',{type: 'boolean',desc: 'Include "aws:asset:*" CloudFormation metadata for resources that uses assets (enabled by default)',default: true})
72
72
.option('role-arn',{type: 'string',alias: 'r',desc: 'ARN of Role to use when invoking CloudFormation',default: undefined,requiresArg: true})
73
-
.option('toolkit-stack-name',{type: 'string',desc: 'The name of the CDK toolkit stack',requiresArg: true})
74
73
.option('staging',{type: 'boolean',desc: 'Copy assets to the output directory (use --no-staging to disable, needed for local debugging the source files with SAM CLI)',default: true})
75
74
.option('output',{type: 'string',alias: 'o',desc: 'Emits the synthesized cloud assembly into a directory (default: cdk.out)',requiresArg: true})
76
75
.option('no-color',{type: 'boolean',desc: 'Removes colors and other style from console output',default: false})
@@ -95,6 +94,7 @@ async function parseCommandLineArguments() {
95
94
.option('force',{alias: 'f',type: 'boolean',desc: 'Always bootstrap even if it would downgrade template version',default: false})
96
95
.option('termination-protection',{type: 'boolean',default: undefined,desc: 'Toggle CloudFormation termination protection on the bootstrap stacks'})
97
96
.option('show-template',{type: 'boolean',desc: 'Instead of actual bootstrapping, print the current CLI\'s bootstrapping template to stdout for customization',default: false})
97
+
.option('toolkit-stack-name',{type: 'string',desc: 'The name of the CDK toolkit stack to create',requiresArg: true})
98
98
.option('template',{type: 'string',requiresArg: true,desc: 'Use the template from the given file instead of the built-in one (use --show-template to obtain an example)'}),
99
99
)
100
100
.command('deploy [STACKS..]','Deploys the stack(s) named STACKS into your AWS account',yargs=>yargs
@@ -112,6 +112,7 @@ async function parseCommandLineArguments() {
112
112
.option('parameters',{type: 'array',desc: 'Additional parameters passed to CloudFormation at deploy time (STACK:KEY=VALUE)',nargs: 1,requiresArg: true,default: {}})
113
113
.option('outputs-file',{type: 'string',alias: 'O',desc: 'Path to file where stack outputs will be written as JSON',requiresArg: true})
114
114
.option('previous-parameters',{type: 'boolean',default: true,desc: 'Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)'})
115
+
.option('toolkit-stack-name',{type: 'string',desc: 'The name of the existing CDK toolkit stack (only used for app using legacy synthesis)',requiresArg: true})
115
116
.option('progress',{type: 'string',choices: [StackActivityProgress.BAR,StackActivityProgress.EVENTS],desc: 'Display mode for stack activity events'})
116
117
.option('rollback',{
117
118
type: 'boolean',
@@ -158,6 +159,7 @@ async function parseCommandLineArguments() {
158
159
.option('exclusively',{type: 'boolean',alias: 'e',desc: 'Only deploy requested stacks, don\'t include dependencies'})
159
160
.option('change-set-name',{type: 'string',desc: 'Name of the CloudFormation change set to create'})
160
161
.option('force',{alias: 'f',type: 'boolean',desc: 'Always deploy stack even if templates are identical',default: false})
162
+
.option('toolkit-stack-name',{type: 'string',desc: 'The name of the existing CDK toolkit stack (only used for app using legacy synthesis)',requiresArg: true})
161
163
.option('progress',{type: 'string',choices: [StackActivityProgress.BAR,StackActivityProgress.EVENTS],desc: 'Display mode for stack activity events'})
0 commit comments