All Projects → jugglingthebits → contentful-clean-space

jugglingthebits / contentful-clean-space

Licence: MIT License
Delete all entries and content types from a contentful space

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to contentful-clean-space

the-example-app.py
Example app for Contentful in Python
Stars: ✭ 17 (-48.48%)
Mutual labels:  contentful
Portfolio
A Next.js & Material UI portfolio that stylizes markdown files from the GitHub API and Contentful CMS.
Stars: ✭ 18 (-45.45%)
Mutual labels:  contentful
the-example-app.swift
Example app for Contentful in Swift
Stars: ✭ 35 (+6.06%)
Mutual labels:  contentful
cf-content-types-generator-app
A Contentful App to generate typescript types based on contentful's content types.
Stars: ✭ 28 (-15.15%)
Mutual labels:  contentful
contentful-hugo
A CLI tool that pulls data from Contentful and turns it into markdown files for Hugo and other static site generators. It also includes an express server that can be used for local development and content previews
Stars: ✭ 31 (-6.06%)
Mutual labels:  contentful
hooked
Microservice for communicating between Contentful and Shopify
Stars: ✭ 17 (-48.48%)
Mutual labels:  contentful
contentful-text-search
🔎 Powerful, configurable, and extensible text search for your content
Stars: ✭ 16 (-51.52%)
Mutual labels:  contentful
contentfully
A simple but performant REST client for Contentful.
Stars: ✭ 13 (-60.61%)
Mutual labels:  contentful
gatsby-starter
Gatsby Starter for creating portfolio & blog.
Stars: ✭ 55 (+66.67%)
Mutual labels:  contentful
gatsby-portfolio
danielfr.com/
Stars: ✭ 36 (+9.09%)
Mutual labels:  contentful
contentful-migrate
🐎 Schema migration tooling for Contentful, with state management
Stars: ✭ 54 (+63.64%)
Mutual labels:  contentful
create-contentful-app
Bootstrap a Contentful App
Stars: ✭ 68 (+106.06%)
Mutual labels:  contentful
contentful-export
Extract Contentful to Hugo
Stars: ✭ 22 (-33.33%)
Mutual labels:  contentful
ContentfulBundle
Symfony Bundle for the Contentful SDK.
Stars: ✭ 29 (-12.12%)
Mutual labels:  contentful
contentful.net
.NET Library for Contentful's Content Delivery and Management API
Stars: ✭ 75 (+127.27%)
Mutual labels:  contentful
exo
EXO, the empathy-first framework for an accessible world.
Stars: ✭ 75 (+127.27%)
Mutual labels:  contentful
contentful-sdk-core
Core modules for the Contentful JS SDKs
Stars: ✭ 17 (-48.48%)
Mutual labels:  contentful
contentful-to-algolia
⚡️ Transmit content from any Contentful type to Algolia indexes
Stars: ✭ 50 (+51.52%)
Mutual labels:  contentful
contentful-ui-shopify
Integrate Shopify products with Contentful CMS
Stars: ✭ 28 (-15.15%)
Mutual labels:  contentful
contentful-wizard
Add walkthrough of contentful blocks to your application
Stars: ✭ 33 (+0%)
Mutual labels:  contentful

contentful-clean-space

Delete all entries from a contentful space.

Contentful CLI doesn't have a command to delete all entries from a space without deleting the space itself. However, this can be very useful, e.g. for user contract testing.

Installation

Using npm:

npm install -g contentful-clean-space

Usage

contentful-clean-space
Options:
      --help           Show help                                       [boolean]
      --space-id       Contentful space id                   [string] [required]
      --env            Contentful environment                [string] [required]
      --accesstoken    Contentful access token               [string] [required]
      --batch-size     Number of parallel contentful requests
                                                           [number] [default: 5]
      --content-types  Delete content types as well   [boolean] [default: false]
      --assets         Delete assets as well          [boolean] [default: false]
  -y, --yes            Auto-confirm delete prompt     [boolean] [default: false]
  -v, --verbose                                       [boolean] [default: false]

All parameters can be provided from environment variables, too. To do that, just set an environment variable using UPPER_CASE casing.

Example Usage

To delete all entries, content types, as well as assets in the "master" environment, and without the safety prompt, use contentful-clean-space --space-id [space id] --accesstoken [personal access token] --content-types=true --assets=true --env master --yes=true

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].