@jeff-tian/stackbit-pull
v0.4.4
Published
stackbit-pull build tool
Downloads
7
Readme
stackbit-pull
Stackbit pull, is a build tool that fetches data from CMS and prepares it for SSG build.
Usage:
Usage: stackbit-pull [options]
Options:
--stackbit-pull-api-url <stackbitPullApiUrl> [required] stackbit pull API URL
--stackbit-api-key <stackbitApiKey> [required] stackbit API key, can be also specified through STACKBIT_API_KEY environment variable
-h, --help output usage information
stackbitPullApiUrl
: Stackbit pull URL, takes following form: https://api.stackbit.com/pull/stackbitApiKey
: Stackbit API key, can be acquired in project's API Keys section in https://app.stackbit.com/dashboard. Can be also specified via STACKBIT_API_KEY environment variable.
Examples
Using npx
:
npx @stackbit/stackbit-pull --stackbit-pull-api-url=https://api.stackbit.com/pull/<stackbitProjectId> --stackbit-api-key=...
Using STACKBIT_API_KEY
:
export STACKBIT_API_KEY=...
./stackbit-pull.js --stackbit-pull-api-url=https://api.stackbit.com/pull/<stackbitProjectId>