Skip to content

human-nyc/beni-contentful-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Starter package for creating node cli scripts. This is helpful for creating quick cli tools locally and running scripts to interact with apis.

Installation

git clone https://github.com/human-nyc/beni-contentful-scripts.git
cd node-cli-starter
mv .env.sample .env
npm install

Run

Create your script in bin/index.js. Then run:

Get Unlinked Variants

Finds all unlinked variants in Contentful and outputs their data to a static file in data/unlinked-variants.json.

npm run get-unlinked-variants

Delete Unlinked Variants

Gets a list of unlinked variants from data/unlinked-variants.json and deletes them

npm run delete-unlinked-variants

Get Unlinked Assets

Finds all unlinked assets in Contentful and outputs their data to a static file in data/unlinked-assets.json.

npm run get-unlinked-assets

Delete Unlinked Assets

Gets a list of unlinked assets from data/unlinked-assets.json and deletes them

npm run delete-unlinked-assets

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published