Socket
Book a DemoInstallSign in
Socket

@stackbit/contentful-pull

Package Overview
Dependencies
Maintainers
11
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackbit/contentful-pull

Tool to fetch content from Contentful and save it as files

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
11
Created
Source

contentful-pull

Stackbit Contentful pull, is a build tool that fetches stackbit site data from contentful and prepares it for SSG build.

Usage:

Usage: contentful-pull [options]

Options:
  --ssg <ssg>                                       [required] Which SSG are you using [jekyll, hugo, gatbsby]
  --contentful-space-id <contentfulSpaceId>         [required] Contentful Space ID, can be also specified through CONTENTFUL_SPACE_ID environment variable
  --contentful-access-token <contentfulAccessToken> [required] Contentful access token, can be also specified through CONTENTFUL_ACCESS_TOKEN environment variable
  --contentful-environment <contentfulEnvironment>  [optional] Contentful environment, can be also specified through CONTENTFUL_ENVIRONMENT environment variable
  -h, --help                                        output usage information
  • ssg: Defines which file format should be used when creating pages and data for your site. Required
  • contentfulSpaceId: Contentful space id. Required. Can be also specified via CONTENTFUL_SPACE_ID environment variable.
  • contentfulAccessToken: Contentful delivery token, can be obtained from the API Keys page of your contentful space https://app.contentful.com/spaces/{space_id}/api/keys. Can be also specified via CONTENTFUL_ACCESS_TOKEN environment variable.
  • contentfulEnvironment: Contentful environment, optional. Uses master by default. Can be also specified via CONTENTFUL_ENVIRONMENT environment variable.

Examples

Using npx:

npx @stackbit/contentful-pull --ssg gatsby --contentful-space-id $CONTENTFUL_SPACE_ID --contentful-access-token $CONTENTFUL_ACCESS_TOKEN

FAQs

Package last updated on 11 May 2021

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