File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ Options:
2727 --management-token Management API token for the destination space [string] [required]
2828 --content-file json file that contains data to be import to your space [string] [required]
2929 --skip-content-model Skips content types and locales. Copies only entries and assets [boolean]
30+ --skip-content-publishing Skips content publishing. Creates content but does not publish it [boolean]
3031 --skip-locales Skips locales. Must be used with content-model-only. Copies only content-types [boolean]
3132 --config Configuration file with required values
3233```
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ export default function runContentfulImport (usageParams) {
5151 prePublishDelay : opts . prePublishDelay ,
5252 contentModelOnly : opts . contentModelOnly ,
5353 skipLocales : opts . skipLocales ,
54- skipContentModel : opts . skipContentModel
54+ skipContentModel : opts . skipContentModel ,
55+ skipContentPublishing : opts . skipContentPublishing
5556 } )
5657 . then ( ( responses ) => {
5758 log . info ( 'Successfully Imported all data' )
Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ const opts = yargs
3939 describe : 'Skips locales. Must be used with content-model-only. Copies only content-types' ,
4040 type : 'boolean'
4141 } )
42+ . option ( 'skip-content-publishing' , {
43+ describe : 'Skips content publishing. Creates content but does not publish it' ,
44+ type : 'boolean'
45+ } )
4246 . config ( 'config' , 'Configuration file with required values' )
4347 . check ( function ( argv ) {
4448 if ( ! argv . spaceId ) {
You can’t perform that action at this time.
0 commit comments