shanonplace / Contentful-TagGrabber

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ 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


Languages

Language:JavaScript 100.0%