Just a tool to find all of the public and private tags in Contentful and what entries and types they are used in.
- Clone this repository:
git clone https://github.com/shanonplace/Contentful-TagGrabber
- Navigate to the project directory:
cd contentful-taggrabber
- Install the dependencies:
npm install
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>
Run the application with the following command:
node index.js
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