@@ -59,6 +59,7 @@ const program = new Command();
59
59
program . version ( pkg . version ) ;
60
60
program
61
61
. command ( 'init' )
62
+ . option ( '--host <host>' , 'Management API host' )
62
63
. description ( 'Initialize contentful-migrations' )
63
64
. action (
64
65
actionRunner ( async ( cmd ) => {
@@ -99,8 +100,9 @@ program
99
100
. option ( '-e, --environment-id <environment-id>' , 'Change the Contentful environment' )
100
101
. option ( '-c, --content-type <content-type...>' , 'Specify content-types' )
101
102
. option ( '-p, --path <path/to/migrations>' , 'Change the path where the migrations are saved' )
102
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
103
103
. option ( '-v, --verbose' , 'Verbosity' )
104
+ . option ( '--host <host>' , 'Management API host' )
105
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
104
106
. description ( 'Generate a new Contentful migration from content type' )
105
107
. action (
106
108
actionRunner ( async ( cmd ) => {
@@ -115,8 +117,9 @@ program
115
117
. option ( '-s, --space-id <space-id>' , 'Contentful space id' )
116
118
. option ( '-e, --environment-id <environment-id>' , 'Change the Contentful environment' )
117
119
. option ( '-p, --path <path/to/migrations>' , 'Change the path where the migrations are saved' )
118
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
119
120
. option ( '-v, --verbose' , 'Verbosity' )
121
+ . option ( '--host <host>' , 'Management API host' )
122
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
120
123
. description ( 'Generate a new Contentful migration' )
121
124
. action (
122
125
actionRunner ( async ( cmd ) => {
@@ -131,9 +134,10 @@ program
131
134
. option ( '-s, --space-id <space-id>' , 'Contentful space id' )
132
135
. option ( '-e, --environment-id <environment-id>' , 'Change the Contentful environment' )
133
136
. option ( '-p, --path <path/to/migrations>' , 'Change the path where the migrations are stored' )
134
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
135
137
. option ( '-v, --verbose' , 'Verbosity' )
136
138
. option ( '-y, --yes' , 'Assume "yes" as answer to all prompts and run non-interactively.' )
139
+ . option ( '--host <host>' , 'Management API host' )
140
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
137
141
. option ( '--bail' , 'Abort execution after first failed migration (default: true)' , true )
138
142
. option ( '--no-bail' , 'Ignore failed migrations' )
139
143
. description ( 'Execute all unexecuted migrations available.' )
@@ -156,9 +160,10 @@ program
156
160
. command ( 'execute <file>' )
157
161
. option ( '-s, --space-id <space-id>' , 'Contentful space id' )
158
162
. option ( '-e, --environment-id <environment-id>' , 'Change the Contentful environment' )
159
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
160
163
. option ( '-v, --verbose' , 'Verbosity' )
161
164
. option ( '-y, --yes' , 'Assume "yes" as answer to all prompts and run non-interactively.' )
165
+ . option ( '--host <host>' , 'Management API host' )
166
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
162
167
. description ( 'Execute a single migration.' )
163
168
. action (
164
169
actionRunner ( async ( file , options ) => {
@@ -179,8 +184,9 @@ program
179
184
. command ( 'version <file>' )
180
185
. option ( '-s, --space-id <space-id>' , 'Contentful space id' )
181
186
. option ( '-e, --environment-id <environment-id>' , 'Change the Contentful environment' )
182
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
183
187
. option ( '-v, --verbose' , 'Verbosity' )
188
+ . option ( '--host <host>' , 'Management API host' )
189
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
184
190
. option ( '--add' , 'Mark migration as migrated' )
185
191
. option ( '--remove' , 'Delete migration entry in Contentful' )
186
192
. description ( 'Manually mark a migration as migrated or not. (Only available with the Content-model storage)' )
@@ -211,8 +217,9 @@ program
211
217
program
212
218
. command ( 'environment <environment-id>' )
213
219
. option ( '-s, --space-id <space-id>' , 'Contentful space id' )
214
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
215
220
. option ( '-v, --verbose' , 'Verbosity' )
221
+ . option ( '--host <host>' , 'Management API host' )
222
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
216
223
. option ( '--create' , 'Create new contentful environment' )
217
224
. option ( '--remove' , 'Delete contentful environment' )
218
225
. option ( '--reset' , 'Reset contentful environment' )
@@ -243,9 +250,10 @@ program
243
250
. option ( '-s, --space-id <space-id>' , 'Contentful space id' )
244
251
. option ( '-e, --environment-id <environment-id>' , 'Change the Contentful environment' )
245
252
. option ( '-p, --path <path/to/docs>' , 'Change the path where the docs are stored' )
246
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
247
253
. option ( '-v, --verbose' , 'Verbosity' )
248
254
. option ( '-t, --template <path/to/template>' , 'Use custom template for docs' )
255
+ . option ( '--host <host>' , 'Management API host' )
256
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
249
257
. option ( '--extension <file-extension>' , 'Use custom file extension (default is `md`)' )
250
258
. description ( 'Generate offline docs from content-types' )
251
259
. action (
@@ -262,9 +270,10 @@ program
262
270
. requiredOption ( '--dest-environment-id <environment-id>' , 'Set the Contentful destination environment (to)' )
263
271
. option ( '-s, --space-id <space-id>' , 'Contentful space id' )
264
272
. option ( '-c, --content-type <content-type>' , 'Specify content-type' )
265
- . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
266
273
. option ( '-v, --verbose' , 'Verbosity' )
267
274
. option ( '-y, --yes' , 'Assume "yes" as answer to all prompts and run non-interactively.' )
275
+ . option ( '--host <host>' , 'Management API host' )
276
+ . option ( '--config <path/to/config>' , 'Config file path (disables auto detect)' )
268
277
. option ( '--diff' , 'Manually choose skip/overwrite for every conflict' )
269
278
. option ( '--force' , 'No manual diffing. Overwrites all conflicting entries/assets' )
270
279
. description ( 'Transfer content from source environment to destination environment' )
0 commit comments