@@ -31,9 +31,9 @@ export default class Deploy extends AppCLIBaseCommand {
31
31
"$ <%= config.bin %> <%= command.id %>" ,
32
32
"$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1>" ,
33
33
"$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1> --hosting-type <Custom Hosting> --app-url <https://localhost:3000>" ,
34
- "$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project-type <existing-project >" ,
35
- "$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project-type <new-project >" ,
36
- "$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project-type <new-project > --config <config-path>" ,
34
+ "$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <existing>" ,
35
+ "$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <new>" ,
36
+ "$ <%= config.bin %> <%= command.id %> --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <new> --config <config-path>" ,
37
37
] ;
38
38
39
39
static flags : FlagInput = {
@@ -51,10 +51,10 @@ export default class Deploy extends AppCLIBaseCommand {
51
51
description : deployAppMsg . FORCE_DISCONNECT ,
52
52
default : false ,
53
53
} ) ,
54
- "launch-project-type " : Flags . string ( {
54
+ "launch-project" : Flags . string ( {
55
55
multiple : false ,
56
- options : [ "existing-project " , "new-project " ] ,
57
- description : deployAppMsg . LAUNCH_PROJECT_TYPE ,
56
+ options : [ "existing" , "new" ] ,
57
+ description : deployAppMsg . LAUNCH_PROJECT ,
58
58
} ) ,
59
59
config : Flags . string ( {
60
60
char : "c" ,
@@ -89,8 +89,8 @@ export default class Deploy extends AppCLIBaseCommand {
89
89
const config = setupConfig ( flags [ "config" ] ) ;
90
90
config [ "name" ] = config [ "name" ] || app ?. name ;
91
91
await this . handleAppDisconnect ( projects ) ;
92
- this . flags [ "launch-project-type " ] =
93
- this . flags [ "launch-project-type " ] || ( await askProjectType ( ) ) ;
92
+ this . flags [ "launch-project" ] =
93
+ this . flags [ "launch-project" ] || ( await askProjectType ( ) ) ;
94
94
await this . handleHostingWithLaunch ( config , updateHostingPayload , projects ) ;
95
95
break ;
96
96
default :
@@ -190,9 +190,9 @@ export default class Deploy extends AppCLIBaseCommand {
190
190
) : Promise < void > {
191
191
let url : string = "" ;
192
192
193
- if ( this . flags [ "launch-project-type " ] === "existing-project " ) {
193
+ if ( this . flags [ "launch-project" ] === "existing" ) {
194
194
url = await this . handleExistingProject ( updateHostingPayload , projects ) ;
195
- } else if ( this . flags [ "launch-project-type " ] === "new-project " ) {
195
+ } else if ( this . flags [ "launch-project" ] === "new" ) {
196
196
config [ "name" ] = await handleProjectNameConflict (
197
197
config [ "name" ] ,
198
198
projects
0 commit comments