contentful-export 7.21.49 → 7.21.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -254,6 +254,21 @@ contentfulExport({
254
254
  })
255
255
  ```
256
256
 
257
+ ### Embargoed Assets
258
+
259
+ If a space is configured to use the [embargoed assets feature](https://www.contentful.com/help/media/embargoed-assets/), certain options will need to be set to use the export/import tooling. When exporting content, the `downloadAssets` option must be set to `true`. This will download the asset files to your local machine. Then, when importing content ([using `contentful-import`](https://github.com/contentful/contentful-import)), the `uploadAssets` option must be set to `true` and the `assetsDirectory` must be set to the directory that contains all of the exported asset folders.
260
+
261
+ ```javascript
262
+ const contentfulExport = require('contentful-export')
263
+
264
+ const options = {
265
+ spaceId: '<space_id>',
266
+ managementToken: '<content_management_api_key>',
267
+ downloadAssets: true
268
+ }
269
+
270
+ contentfulExport(options)
271
+ ```
257
272
 
258
273
  ## :card_file_box: Exported data structure
259
274
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "7.21.49",
3
+ "version": "7.21.50",
4
4
  "description": "this tool allows you to export a space to a JSON dump",
5
5
  "main": "dist/index.js",
6
6
  "types": "types.d.ts",