You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

contentstack-bulk-publish

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentstack-bulk-publish

# About this Package This is contentstack headless cms specific only Bulk publish Contenttype Entries and Assets

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Contentstack Bulk Publish

About this Package

This is contentstack headless cms specific only Bulk publish Contenttype Entries and Assets

New : added support for publising of all referenced/nested entries/assets

Install:

npm install contentstack-bulk-publish

An example

const publish = require('contentstack-bulk-publish').publish

publish({
  "api_key"     : "stack api key",
  "email"       : "contentstack login email",
  "password"    : "contentstack login password",
  "authtoken"   : "user auth token" // You do not need to add email and password if you are adding it
  "entries"     : { // Remove this if you do not want to publish any Contenttypes
    "locales"     : ["en-us"], // Mention all locales in array in which you want to publish
    "environments": ["local", "development"], // Mention all environments in which you want to publish 
    "contentTypes": ["states", "countries"] // Mention all contentypes to publish
    "nested"      : true // It will publish all nested Contenttypes/assets
  },
  "assets"      : { // Remove this if you do not want to publish any assets
    "folder"      : "eo92847dhuhdue38", // Folder uid, default - cs_root, it has all assets
    "locales"     :["en-us"],  // Mention all locales in array in which you want to publish
    "environments": ["local", "development"] // Mention all environments in which you want to publish 
  }
})
.then( () => console.log("We are done!"))
.catch( err => console.log(err))

Keywords

contentstack

FAQs

Package last updated on 12 Aug 2019

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