Contentful Management API and JavaScript SDK 是做什么的?
Use the Contentful Management API and JavaScript SDK to create, update, validate, and publish entries, assets, content models, and environments in a headless CMS workflow. This skill gives an agent a concrete path for operating Contentful programmatically rather than treating it like a generic CMS.
Installation
Use the upstream install or setup path that matches your environment:
- npm install contentful-management
- yarn add contentful-management
- npm install contentful-management@canary
- Make sure to remove any credential from your code before sharing it.
Requirements and caveats from upstream:
- Node
- Browsers and Node.js:
- Node.js (LTS)
Basic usage or getting-started notes:
-
To get started with the Contentful Management JS library you'll need to install it, and then get credentials which will allow you to access your content in Contentful.
-
Source: https://github.com/contentful/contentful-management.js
-
Extracted from upstream docs: https://raw.githubusercontent.com/contentful/contentful-management.js/HEAD/README.md