contentful-to-sanity
This package liberates Contentful spaces, creating Sanity projects and schemas as it goes.
Installation
$ npm install -g contentful-to-sanity
Requirements
Requires node.js version >= 12
Usage
- Install the CLI tool (see Installation above)
- Install the Sanity CLI tool (if not already done) and log in
npm install -g @sanity/cli && sanity login
- Open Contentful and navigate to your space: https://app.contentful.com/
- Find the contentful space ID of your project (under Space settings → General)
- Create a content management token (under Space settings → API keys → Content management tokens → Generate personal token)
- Run the migration tool (see Commands)
Commands
contentful-to-sanity help [COMMAND]
Display help for contentful-to-sanity.
USAGE
$ contentful-to-sanity help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for contentful-to-sanity.
See code: @oclif/plugin-help