Skip to content

Node script to see all of the tags in Contentful, as well as what entry ID and type they are tagging

Notifications You must be signed in to change notification settings

shanonplace/Contentful-TagGrabber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Contentful-TagGrabber 🚀

Just a tool to find all of the public and private tags in Contentful and what entries and types they are used in.

📦 Installation

  1. Clone this repository:
    git clone https://github.com/shanonplace/Contentful-TagGrabber
  2. Navigate to the project directory:
    cd contentful-taggrabber
  3. Install the dependencies:
    npm install

⚙️ Configuration

This application uses environment variables for configuration. These need to be stored in a .env file at the root of the project. Here's the format:

CONTENTFUL_SPACE_ID=<Your Contentful Space ID>
CONTENTFUL_ENVIRONMENT=<Your Contentful Environment>
CONTENTFUL_CMA_ACCESS_TOKEN=<Your Contentful Management API Access Token>

🏃‍♀️ Usage

Run the application with the following command:

node index.js

📄 Output Format

The output format is as follows:

tagname, tagID, entryID, entryTypeID

To redirect the output into a CSV file, use the following command:

node index.js > output.csv

About

Node script to see all of the tags in Contentful, as well as what entry ID and type they are tagging

Topics

Resources

Stars

Watchers

Forks