Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shanonplace/contentful-taggrabber

Node script to see all of the tags in Contentful, as well as what entry ID and type they are tagging
https://github.com/shanonplace/contentful-taggrabber

contentful contentful-api contentful-management

Last synced: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 🚀 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:
```bash
git clone https://github.com/shanonplace/Contentful-TagGrabber
```
2. Navigate to the project directory:
```bash
cd contentful-taggrabber
```
3. Install the dependencies:
```bash
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:

```properties
CONTENTFUL_SPACE_ID=
CONTENTFUL_ENVIRONMENT=
CONTENTFUL_CMA_ACCESS_TOKEN=
```

## 🏃‍♀️ Usage

Run the application with the following command:

```bash
node index.js
```

## 📄 Output Format

The output format is as follows:

```bash
tagname, tagID, entryID, entryTypeID
```

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

```bash
node index.js > output.csv
```