File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ $ csdx COMMAND
21
21
running command...
22
22
$ csdx (--version| -v)
23
23
@contentstack/apps-cli/1.2.0 darwin-arm64 node-v18.20.2
24
+ @contentstack/apps-cli/1.2.0 darwin-arm64 node-v18.20.2
24
25
$ csdx --help [COMMAND]
25
26
USAGE
26
27
$ csdx COMMAND
@@ -129,11 +130,12 @@ Deploy an app
129
130
130
131
```
131
132
USAGE
132
- $ csdx app:deploy [--app-uid <value>] [--hosting-type <value>] [--app-url <value>] [--launch-project
133
+ $ csdx app:deploy [--app-uid <value>] [--hosting-type <value>] [--app-url <value>] [-y] [- -launch-project
133
134
existing|new] [-c <value>]
134
135
135
136
FLAGS
136
137
-c, --config=<value> [optional] path of config file
138
+ -y, --yes Force disconnect launch project by skipping the confirmation
137
139
--app-uid=<value> Provide the app UID of an existing app.
138
140
--app-url=<value> App URL
139
141
--hosting-type=<value> Hosting Type
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export default class Deploy extends AppCLIBaseCommand {
63
63
flags [ "app-uid" ] = this . manifestData ?. uid ?? flags [ "app-uid" ] ;
64
64
this . sharedConfig . org = await this . getOrganization ( ) ;
65
65
const app = await this . fetchAppDetails ( ) ;
66
+ this . flags [ "app-uid" ] = app ?. uid || "" ;
66
67
67
68
const apolloClient = await this . getApolloClient ( ) ;
68
69
const projects = await getProjects ( apolloClient ) ;
@@ -93,15 +94,17 @@ export default class Deploy extends AppCLIBaseCommand {
93
94
return ;
94
95
}
95
96
96
- await updateApp (
97
- flags ,
98
- this . sharedConfig . org ,
99
- {
100
- managementSdk : this . managementAppSdk ,
101
- log : this . log ,
102
- } ,
103
- updateHostingPayload
104
- ) ;
97
+ if ( this . flags [ "app-uid" ] ) {
98
+ await updateApp (
99
+ flags ,
100
+ this . sharedConfig . org ,
101
+ {
102
+ managementSdk : this . managementAppSdk ,
103
+ log : this . log ,
104
+ } ,
105
+ updateHostingPayload
106
+ ) ;
107
+ }
105
108
106
109
this . log (
107
110
this . $t ( deployAppMsg . APP_DEPLOYED , {
@@ -112,7 +115,7 @@ export default class Deploy extends AppCLIBaseCommand {
112
115
this . log ( `App URL: ${ flags [ "app-url" ] } ` , "info" ) ;
113
116
} catch ( error : any ) {
114
117
this . log ( error ?. errorMessage || error ?. message || error , "error" ) ;
115
- this . exit ( 1 ) ;
118
+ process . exit ( 1 ) ;
116
119
}
117
120
}
118
121
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export default class Reinstall extends AppCLIBaseCommand {
120
120
this . displayStackUrl ( ) ;
121
121
} catch ( error : any ) {
122
122
this . log ( error ?. errorMessage || error ?. message || error , "error" ) ;
123
- this . exit ( 1 ) ;
123
+ process . exit ( 1 ) ;
124
124
}
125
125
}
126
126
You can’t perform that action at this time.
0 commit comments