![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
contentful-import
Advanced tools
this tool allows you to import JSON dump exported by contentful-export
https://www.contentful.com 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 Command Line Tool (CLI) helps you to import files generated by the contentful-export tool to new and empty Contentful spaces.
We recommend you install the CLI via npm:
npm install -g contentful-import
Usage: contentful-import [options]
Options:
--version Show version number [boolean]
--space-id ID of the destination space [string] [required]
--management-token Contentful management API token for the destination
space [string] [required]
--content-file JSON file that contains data to be import to your
space [string] [required]
--content-model-only Import only content types[boolean] [default: false]
--skip-content-model Skip importing content types and locales
[boolean] [default: false]
--skip-locales Skip importing locales [boolean] [default: false]
--skip-content-publishing Skips content publishing. Creates content but does
not publish it [boolean] [default: false]
--error-log-file Full path to the error log file [string]
--proxy Proxy configuration in HTTP auth format: host:port
or user:password@host:port [string]
--config An optional configuration JSON file containing all
the options for a single run
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 configuration file based on the example-config.json file.
While this tool is intended for use as a command line tool, you can also use it 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)
})
The options
object can contain any of the CLI options, but written with a camelCase pattern instead and no dashes. For example --space-id
would become spaceId
.
Read the releases page for more information.
This project is licensed under MIT license
FAQs
this tool allows you to import JSON dump exported by contentful-export
The npm package contentful-import receives a total of 44,001 weekly downloads. As such, contentful-import popularity was classified as popular.
We found that contentful-import demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.