Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contentful-import

Package Overview
Dependencies
Maintainers
1
Versions
383
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-import

this tool allows you to import JSON dump exported by contentful-export

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54K
decreased by-10.83%
Maintainers
1
Weekly downloads
 
Created
Source

Contentful-import

npm Build Status Coverage Status Dependency Status devDependency Status

semantic-release js-standard-style

Contentful is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit & manage content in the cloud and publish it anywhere via powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.

This node module uses the data provided by contentful-export to import it to contentful space

Changelog

Check out the releases page.

Install

npm install -g contentful-import

Usage

Usage: bin/contentful-import [options]

Options:
  --version                 Show version number [number]
  --space-id                ID of the destination space [string] [required]
  --management-token        Management API token for the destination space [string] [required]
  --content-file            json file that contains data to be import to your space [string] [required]
	--skip-content-model      Skips content types and locales. Copies only entries and assets [boolean]
	--skip-locales            Skips locales. Must be used with content-model-only. Copies only content-types [boolean]
  --config                  Configuration file with required values

Example usage

contentful-import \
  --space-id spaceID \
  --management-token managementToken \
	--content-file exported-file.json \

or

contentful-import --config example-config.json

You can create your own config file based on the example-config.json file.

Usage as a library

While this tool is mostly intended to be used as a command line tool, it can also be used as a Node library:

let spaceImport = require('contentful-import')
let options = {
	content: {entries:..., contentTypes:..., locales:...},
	spaceId: 'SPACE_ID',
	managementToken: 'MANAGEMENT_TOKEN'
}
spaceImport(options)
.then((output) => {
  console.log('Data Imported successfully')
})
.catch((err) => {
  console.log('oh no! errors occurred!', err)
})

Keywords

FAQs

Package last updated on 19 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc